diff options
author | joe <joe@FreeBSD.org> | 1999-12-05 22:43:36 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 1999-12-05 22:43:36 +0000 |
commit | d754df97260a7e78d5e49e384c49f42562968ad2 (patch) | |
tree | 5d7541a9532a8f92f4cb797f90629fc994ba55f4 /usr.bin/whois/whois.c | |
parent | c4981853cb4ee1265e9aa4dc0cf794bbda0c4d5e (diff) | |
download | FreeBSD-src-d754df97260a7e78d5e49e384c49f42562968ad2.zip FreeBSD-src-d754df97260a7e78d5e49e384c49f42562968ad2.tar.gz |
Added a -6 option to lookup information using the whois.6bone.net
database.
PR: misc/10803 misc/10804
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 2aba8f2..32f0f7d 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -67,6 +67,7 @@ static const char rcsid[] = #define RUNICHOST "whois.ripn.net" #define MNICHOST "whois.ra.net" #define QNICHOST_TAIL ".whois-servers.net" +#define SNICHOST "whois.6bone.net" #define WHOIS_PORT 43 #define WHOIS_RECURSE 0x01 @@ -97,7 +98,7 @@ main(argc, argv) qnichost = NULL; flags = 0; use_qnichost = 0; - while ((ch = getopt(argc, argv, "adgh:impQrR")) != -1) + while ((ch = getopt(argc, argv, "adgh:impQrR6")) != -1) switch((char)ch) { case 'a': host = ANICHOST; @@ -129,6 +130,9 @@ main(argc, argv) case 'R': host = RUNICHOST; break; + case '6': + host = SNICHOST; + break; case '?': default: usage(); @@ -276,6 +280,6 @@ static void usage() { (void)fprintf(stderr, - "usage: whois [-adgimpQrR] [-h hostname] name ...\n"); + "usage: whois [-adgimpQrR6] [-h hostname] name ...\n"); exit(EX_USAGE); } |