version 1.15, 2002/05/29 18:33:40 |
version 1.16, 2002/09/05 17:22:16 |
|
|
#define PNICHOST "whois.apnic.net" |
#define PNICHOST "whois.apnic.net" |
#define RUNICHOST "whois.ripn.net" |
#define RUNICHOST "whois.ripn.net" |
#define MNICHOST "whois.ra.net" |
#define MNICHOST "whois.ra.net" |
|
#define LNICHOST "whois.lacnic.net" |
#define QNICHOST_TAIL ".whois-servers.net" |
#define QNICHOST_TAIL ".whois-servers.net" |
#define WHOIS_PORT 43 |
#define WHOIS_PORT 43 |
|
|
|
|
qnichost = NULL; |
qnichost = NULL; |
flags = 0; |
flags = 0; |
use_qnichost = 0; |
use_qnichost = 0; |
while ((ch = getopt(argc, argv, "adgh:impqQrR")) != -1) |
while ((ch = getopt(argc, argv, "adgh:ilmpqQrR")) != -1) |
switch((char)ch) { |
switch((char)ch) { |
case 'a': |
case 'a': |
host = ANICHOST; |
host = ANICHOST; |
|
|
case 'i': |
case 'i': |
host = INICHOST; |
host = INICHOST; |
break; |
break; |
|
case 'l': |
|
host = LNICHOST; |
|
break; |
case 'm': |
case 'm': |
host = MNICHOST; |
host = MNICHOST; |
break; |
break; |
|
|
{ |
{ |
|
|
(void)fprintf(stderr, |
(void)fprintf(stderr, |
"usage: whois [-adgimpqQrR] [-h hostname] name ...\n"); |
"usage: whois [-adgilmpqQrR] [-h hostname] name ...\n"); |
exit(EX_USAGE); |
exit(EX_USAGE); |
} |
} |