diff options
author | mike <mike@FreeBSD.org> | 2001-12-08 21:22:42 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2001-12-08 21:22:42 +0000 |
commit | d43f78304005450d8f53ea339e79d9ea90fc4c87 (patch) | |
tree | f5e02ed38bf54ea9fef24206c20eee29d4453aa7 | |
parent | 6e9238ff3fd767660925a0d7df24160a9d01fa5b (diff) | |
download | FreeBSD-src-d43f78304005450d8f53ea339e79d9ea90fc4c87.zip FreeBSD-src-d43f78304005450d8f53ea339e79d9ea90fc4c87.tar.gz |
Add support for Brazilian IP Addresses. Example `whois 200.236.70.0'.
PR: 30676
-rw-r--r-- | usr.bin/whois/whois.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index a6b6c02..9adc7f3 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -69,6 +69,7 @@ static const char rcsid[] = #define MNICHOST "whois.ra.net" #define QNICHOST_TAIL ".whois-servers.net" #define SNICHOST "whois.6bone.net" +#define BNICHOST "whois.registro.br" #define DEFAULT_PORT "whois" #define WHOIS_SERVER_ID "Whois Server: " @@ -77,7 +78,7 @@ static const char rcsid[] = #define ishost(h) (isalnum((unsigned char)h) || h == '.' || h == '-') -const char *ip_whois[] = { RNICHOST, PNICHOST, NULL }; +const char *ip_whois[] = { RNICHOST, PNICHOST, BNICHOST, NULL }; const char *port = DEFAULT_PORT; static char *choose_server(char *); |