From 3334b16966d6fc47b43b739bdf87214d3fc1092e Mon Sep 17 00:00:00 2001 From: Mike Barcroft Date: Sat, 8 Dec 2001 21:22:42 +0000 Subject: [PATCH] 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 a6b6c02e1550..9adc7f3d727d 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 *);