version 1.51, 2015/11/02 17:16:35 |
version 1.52, 2015/11/02 20:39:37 |
|
|
#define AFNICHOST "whois.afrinic.net" |
#define AFNICHOST "whois.afrinic.net" |
#define BNICHOST "whois.registro.br" |
#define BNICHOST "whois.registro.br" |
#define PDBHOST "whois.peeringdb.com" |
#define PDBHOST "whois.peeringdb.com" |
|
#define IANAHOST "whois.iana.org" |
#define QNICHOST_TAIL ".whois-servers.net" |
#define QNICHOST_TAIL ".whois-servers.net" |
|
|
#define WHOIS_PORT "whois" |
#define WHOIS_PORT "whois" |
|
|
|
|
country = host = NULL; |
country = host = NULL; |
flags = rval = 0; |
flags = rval = 0; |
while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:PqQrR")) != -1) |
while ((ch = getopt(argc, argv, "aAc:dgh:iIlmp:PqQrR")) != -1) |
switch (ch) { |
switch (ch) { |
case 'a': |
case 'a': |
host = ANICHOST; |
host = ANICHOST; |
|
|
case 'i': |
case 'i': |
host = INICHOST; |
host = INICHOST; |
break; |
break; |
|
case 'I': |
|
host = IANAHOST; |
|
break; |
case 'l': |
case 'l': |
host = LNICHOST; |
host = LNICHOST; |
break; |
break; |
|
|
extern char *__progname; |
extern char *__progname; |
|
|
fprintf(stderr, |
fprintf(stderr, |
"usage: %s [-AadgilmPQRr] [-c country-code | -h host] " |
"usage: %s [-AadgIilmPQRr] [-c country-code | -h host] " |
"[-p port] name ...\n", __progname); |
"[-p port] name ...\n", __progname); |
exit(1); |
exit(1); |
} |
} |