diff options
author | jhay <jhay@FreeBSD.org> | 2006-01-23 13:49:39 +0000 |
---|---|---|
committer | jhay <jhay@FreeBSD.org> | 2006-01-23 13:49:39 +0000 |
commit | 8873885f5e9fde0fe1848264ac58a69d86f17f98 (patch) | |
tree | 9e1f0376ecf7684402534b799f555c689dcaecae /usr.bin/whois/whois.c | |
parent | 0a7a2610c633cecec9e2e563268f54f98dbee2ae (diff) | |
download | FreeBSD-src-8873885f5e9fde0fe1848264ac58a69d86f17f98.zip FreeBSD-src-8873885f5e9fde0fe1848264ac58a69d86f17f98.tar.gz |
Add AfriNIC as a RIR.
PR: 80421
Submitted by: Adrian Frith <adrian at frith.homelinux.org>
MFC after: 6 days
Diffstat (limited to 'usr.bin/whois/whois.c')
-rw-r--r-- | usr.bin/whois/whois.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index c5bf9f4..9c4a03e 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -77,6 +77,7 @@ __FBSDID("$FreeBSD$"); #define NORIDHOST "whois.norid.no" #define IANAHOST "whois.iana.org" #define GERMNICHOST "de.whois-servers.net" +#define FNICHOST "whois.afrinic.net" #define DEFAULT_PORT "whois" #define WHOIS_SERVER_ID "Whois Server: " #define WHOIS_ORG_SERVER_ID "Registrant Street1:Whois Server:" @@ -86,7 +87,8 @@ __FBSDID("$FreeBSD$"); #define ishost(h) (isalnum((unsigned char)h) || h == '.' || h == '-') -const char *ip_whois[] = { LNICHOST, RNICHOST, PNICHOST, BNICHOST, NULL }; +const char *ip_whois[] = { LNICHOST, RNICHOST, PNICHOST, BNICHOST, + FNICHOST, NULL }; const char *port = DEFAULT_PORT; static char *choose_server(char *); @@ -108,7 +110,7 @@ main(int argc, char *argv[]) country = host = qnichost = NULL; flags = use_qnichost = 0; - while ((ch = getopt(argc, argv, "aAbc:dgh:iIklmp:QrR6")) != -1) { + while ((ch = getopt(argc, argv, "aAbc:dfgh:iIklmp:QrR6")) != -1) { switch (ch) { case 'a': host = ANICHOST; @@ -125,6 +127,9 @@ main(int argc, char *argv[]) case 'd': host = DNICHOST; break; + case 'f': + host = FNICHOST; + break; case 'g': host = GNICHOST; break; @@ -356,7 +361,7 @@ static void usage(void) { fprintf(stderr, - "usage: whois [-aAbdgiIklmQrR6] [-c country-code | -h hostname] " + "usage: whois [-aAbdfgiIklmQrR6] [-c country-code | -h hostname] " "[-p port] name ...\n"); exit(EX_USAGE); } |