summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2001-12-08 21:22:42 +0000
committermike <mike@FreeBSD.org>2001-12-08 21:22:42 +0000
commitd43f78304005450d8f53ea339e79d9ea90fc4c87 (patch)
treef5e02ed38bf54ea9fef24206c20eee29d4453aa7 /usr.bin
parent6e9238ff3fd767660925a0d7df24160a9d01fa5b (diff)
downloadFreeBSD-src-d43f78304005450d8f53ea339e79d9ea90fc4c87.zip
FreeBSD-src-d43f78304005450d8f53ea339e79d9ea90fc4c87.tar.gz
Add support for Brazilian IP Addresses. Example `whois 200.236.70.0'.
PR: 30676
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/whois/whois.c3
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 *);
OpenPOWER on IntegriCloud