Hi,

I added the African Network Information Center (AfriNIC) whois server
to a new switch (-f) in the whois(1) utility.

A simple diff for whois.c and whois.1 is attached.

The new part of the manual says:


     -f      Use the African Network Information Center (AfriNIC) database.
             It contains network numbers registered on the African continent.


I'm not quite sure how to make whois(1) automatically follow referrals
to AfriNIC for African IPs in the way ARIN referrals to e.g. RIPE are
followed...


Regards,
Andreas



--
Andreas Kahari
--- whois.c.orig        Fri Aug 12 13:32:45 2005
+++ whois.c     Fri Aug 12 13:49:21 2005
@@ -48,6 +48,7 @@
 #define        INICHOST        "whois.networksolutions.com"
 #define        CNICHOST        "whois.corenic.net"
 #define        DNICHOST        "whois.nic.mil"
+#define AFNICHOST      "whois.afrinic.net"
 #define        GNICHOST        "whois.nic.gov"
 #define        ANICHOST        "whois.arin.net"
 #define        RNICHOST        "whois.ripe.net"
@@ -80,7 +81,7 @@
 
        country = host = server = NULL;
        flags = rval = 0;
-       while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:qQrR6")) != -1)
+       while ((ch = getopt(argc, argv, "aAc:dfgh:ilmp:qQrR6")) != -1)
                switch (ch) {
                case 'a':
                        host = ANICHOST;
@@ -93,6 +94,9 @@
                        break;
                case 'd':
                        host = DNICHOST;
+                       break;
+               case 'f':
+                       host = AFNICHOST;
                        break;
                case 'g':
                        host = GNICHOST;

--- whois.1.orig        Fri Aug 12 13:36:33 2005
+++ whois.1     Fri Aug 12 13:47:44 2005
@@ -87,6 +87,9 @@
 Use the US Department of Defense database.
 It contains points of contact for subdomains of
 .Tn \&.MIL .
+.It Fl f
+Use the African Network Information Center (AfriNIC) database.
+It contains network numbers registered on the African continent.
 .It Fl g
 Use the US non-military federal government database, which contains points of
 contact for subdomains of

Reply via email to