Add support for Brazilian IP Addresses. Example `whois 200.236.70.0'.

PR:	30676
This commit is contained in:
Mike Barcroft 2001-12-08 21:22:42 +00:00
parent a4233d5dc3
commit 3334b16966
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87536

View File

@ -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 *);