version 1.41, 2007/08/29 08:59:18 |
version 1.42, 2010/03/04 18:17:03 |
|
|
#define MNICHOST "whois.ra.net" |
#define MNICHOST "whois.ra.net" |
#define LNICHOST "whois.lacnic.net" |
#define LNICHOST "whois.lacnic.net" |
#define AFNICHOST "whois.afrinic.net" |
#define AFNICHOST "whois.afrinic.net" |
#define SNICHOST "whois.6bone.net" |
|
#define BNICHOST "whois.registro.br" |
#define BNICHOST "whois.registro.br" |
#define QNICHOST_TAIL ".whois-servers.net" |
#define QNICHOST_TAIL ".whois-servers.net" |
|
|
|
|
|
|
country = host = NULL; |
country = host = NULL; |
flags = rval = 0; |
flags = rval = 0; |
while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:qQrR6")) != -1) |
while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:qQrR")) != -1) |
switch (ch) { |
switch (ch) { |
case 'a': |
case 'a': |
host = ANICHOST; |
host = ANICHOST; |
|
|
break; |
break; |
case 'R': |
case 'R': |
host = RUNICHOST; |
host = RUNICHOST; |
break; |
|
case '6': |
|
host = SNICHOST; |
|
break; |
break; |
default: |
default: |
usage(); |
usage(); |