From d43f78304005450d8f53ea339e79d9ea90fc4c87 Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 8 Dec 2001 21:22:42 +0000 Subject: Add support for Brazilian IP Addresses. Example `whois 200.236.70.0'. PR: 30676 --- usr.bin/whois/whois.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 *); -- cgit v1.1