diff options
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 def4fdf..51ca8c8 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -67,6 +67,7 @@ __FBSDID("$FreeBSD$"); #define GNICHOST "whois.nic.gov" #define ANICHOST "whois.arin.net" #define LNICHOST "whois.lacnic.net" +#define KNICHOST "whois.krnic.net" #define RNICHOST "whois.ripe.net" #define PNICHOST "whois.apnic.net" #define MNICHOST "whois.ra.net" @@ -107,7 +108,7 @@ main(int argc, char *argv[]) country = host = qnichost = NULL; flags = use_qnichost = 0; - while ((ch = getopt(argc, argv, "aAbc:dgh:iIlmp:QrR6")) != -1) { + while ((ch = getopt(argc, argv, "aAbc:dgh:iIklmp:QrR6")) != -1) { switch (ch) { case 'a': host = ANICHOST; @@ -136,6 +137,9 @@ main(int argc, char *argv[]) case 'I': host = IANAHOST; break; + case 'k': + host = KNICHOST; + break; case 'l': host = LNICHOST; break; @@ -351,7 +355,7 @@ static void usage(void) { fprintf(stderr, - "usage: whois [-aAbdgiIlmQrR6] [-c country-code | -h hostname] " + "usage: whois [-aAbdgiIklmQrR6] [-c country-code | -h hostname] " "[-p port] name ...\n"); exit(EX_USAGE); } |