diff options
Diffstat (limited to 'usr.bin/whois/whois.c')
-rw-r--r-- | usr.bin/whois/whois.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index 54ee7d0..ad488e5 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -60,6 +60,7 @@ __FBSDID("$FreeBSD$"); #include <sysexits.h> #include <unistd.h> +#define ABUSEHOST "whois.abuse.net" #define NICHOST "whois.crsnic.net" #define INICHOST "whois.networksolutions.com" #define DNICHOST "whois.nic.mil" @@ -105,7 +106,7 @@ main(int argc, char *argv[]) country = host = qnichost = NULL; flags = use_qnichost = 0; - while ((ch = getopt(argc, argv, "aAc:dgh:iIlmp:QrR6")) != -1) { + while ((ch = getopt(argc, argv, "aAbc:dgh:iIlmp:QrR6")) != -1) { switch (ch) { case 'a': host = ANICHOST; @@ -113,6 +114,9 @@ main(int argc, char *argv[]) case 'A': host = PNICHOST; break; + case 'b': + host = ABUSEHOST; + break; case 'c': country = optarg; break; |