Hello,

During recent services(5)-related threads, I glanced over the file
and noticed a duplicate - namely(sic!), "nameserver" is being used
both as the a service name, as well as an alias for "domain".

        nameserver      42/tcp          name            # IEN 116
        domain          53/tcp          nameserver      # name-domain server
        domain          53/udp          nameserver

The above entries had remained unchanged since the file has been
imported into the tree[0]. As I found out some minutes later, NetBSD
have removed the duplicate in 1999[1].

As you can see from their commit[1], there is another duplicate
which has been removed from that file - "readnews". There, they
have removed it from:

        netnews         532/tcp

and, even nowadays, still have it as a local alias[2]:

        readnews        119/tcp untp

on top of the usual[2]:

        nntp            119/tcp    # Network News Transfer
        nntp            119/udp    # Network News Transfer

while IANA entries look as follows[3]:

        nntp            119     tcp     Network News Transfer
        nntp            119     udp     Network News Transfer
        netnews         532     tcp     readnews
        netnews         532     udp     readnews

FreeBSD[4] and DragonFly BSD[5]:

        nntp            119/tcp    usenet       #Network News Transfer Protocol
        nntp            119/udp    usenet       #Network News Transfer Protocol
        netnews         532/tcp    readnews
        netnews         532/udp    readnews

To sum it up, I wasn't sure whether to remove it from:

        nntp            119/tcp         readnews untp

or:

        netnews         532/tcp         readnews

Perhaps add "usenet" alias to the "nntp" entry while there...?

Either way, I'm leaving it "as is", at least for now.

In terms of the actual diff, I've also taken the liberty to update
the comment to the more modern/familiar - "Domain Name Server" -
as, nowadays, it is being used universally[2][3][4][5].

[0] https://cvsweb.openbsd.org/~checkout~/src/etc/services?rev=1.1
[1] 
http://cvsweb.netbsd.org/bsdweb.cgi/src/etc/services.diff?r1=1.30&r2=1.31&only_with_tag=MAIN&f=h
[2] http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/etc/services?rev=1.103
[3] 
https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt
[4] https://cgit.freebsd.org/src/plain/usr.sbin/services_mkdb/services
[5] https://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/etc/services

Regards,

Raf

Index: etc/services
===================================================================
RCS file: /cvs/src/etc/services,v
retrieving revision 1.102
diff -u -p -r1.102 services
--- etc/services        12 May 2021 06:50:33 -0000      1.102
+++ etc/services        16 May 2021 17:46:38 -0000
@@ -33,8 +33,8 @@ nameserver    42/tcp          name            # IEN 116
 whois          43/tcp          nicname
 tacacs         49/tcp          tacas+          # Login Host Protocol (TACACS)
 tacacs         49/udp          tacas+          # Login Host Protocol (TACACS)
-domain         53/tcp          nameserver      # name-domain server
-domain         53/udp          nameserver
+domain         53/tcp                          # Domain Name Server
+domain         53/udp                          # Domain Name Server
 mtp            57/tcp                          # deprecated
 bootps         67/tcp                          # BOOTP server
 bootps         67/udp

Reply via email to