diff options
author | bms <bms@FreeBSD.org> | 2004-06-14 14:03:10 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2004-06-14 14:03:10 +0000 |
commit | d01943f8ff8deb5a03cd1b9919f176cb0d092195 (patch) | |
tree | f659c1f0fd2c400be62d938ce0a72499fae0cb46 /usr.bin/whois/whois.c | |
parent | e0216af91bff091678e2783dfb06bfd6a336f874 (diff) | |
download | FreeBSD-src-d01943f8ff8deb5a03cd1b9919f176cb0d092195.zip FreeBSD-src-d01943f8ff8deb5a03cd1b9919f176cb0d092195.tar.gz |
Add whois.iana.org to the whois(1) utility, under the -I option.
PR: bin/48914
Submitted by: James Raftery
Diffstat (limited to 'usr.bin/whois/whois.c')
-rw-r--r-- | usr.bin/whois/whois.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index 729c2e2..54ee7d0 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -73,6 +73,7 @@ __FBSDID("$FreeBSD$"); #define SNICHOST "whois.6bone.net" #define BNICHOST "whois.registro.br" #define NORIDHOST "whois.norid.no" +#define IANAHOST "whois.iana.org" #define DEFAULT_PORT "whois" #define WHOIS_SERVER_ID "Whois Server: " #define WHOIS_ORG_SERVER_ID "Registrant Street1:Whois Server:" @@ -104,7 +105,7 @@ main(int argc, char *argv[]) country = host = qnichost = NULL; flags = use_qnichost = 0; - while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:QrR6")) != -1) { + while ((ch = getopt(argc, argv, "aAc:dgh:iIlmp:QrR6")) != -1) { switch (ch) { case 'a': host = ANICHOST; @@ -127,6 +128,9 @@ main(int argc, char *argv[]) case 'i': host = INICHOST; break; + case 'I': + host = IANAHOST; + break; case 'l': host = LNICHOST; break; @@ -338,7 +342,7 @@ static void usage(void) { fprintf(stderr, - "usage: whois [-aAdgilmQrR6] [-c country-code | -h hostname] " + "usage: whois [-aAdgiIlmQrR6] [-c country-code | -h hostname] " "[-p port] name ...\n"); exit(EX_USAGE); } |