On Fri, Apr 02, 2010 at 07:11:07PM +0200, Sebastian Rother wrote: > This diff removes nic.mil because the US military does not provide > whois informations anymore for serval years. > > Except this it adds the functionality to lookup IPv6 adresses > using "whois %IP_v6%" which was not possible before. > For this I use the ARIN server as default (inspired by changes made in > fBSD and their "whois"). > > > Kind regards, > Sebastian > > --- whois.new.c Fri Apr 2 19:02:10 2010 > +++ whois.c Fri Apr 2 19:02:47 2010 > @@ -47,6 +47,7 @@ > #define NICHOST "whois.crsnic.net" > #define INICHOST "whois.networksolutions.com" > #define CNICHOST "whois.corenic.net" > +#define DNICHOST "whois.nic.mil" > #define GNICHOST "whois.nic.gov" > #define ANICHOST "whois.arin.net" > #define RNICHOST "whois.ripe.net" > @@ -91,6 +92,9 @@ > case 'c': > country = optarg; > break; > + case 'd': > + host = DNICHOST; > + break; > case 'g': > host = GNICHOST; > break; > @@ -283,8 +287,6 @@ > else if ((strncasecmp(name, "AS", 2) == 0) && > strtol(name + 2, &ep, 10) > 0 && *ep == '\0') > return (MNICHOST); > - else if (strchr(name, ':')) > - return (ANICHOST); > else > return (NICHOST); > } else if (isdigit(*(++qhead))) > @@ -304,7 +306,7 @@ > extern char *__progname; > > fprintf(stderr, > - "usage: %s [-AagilmQRr] [-c country-code | -h host] " > + "usage: %s [-AadgilmQRr] [-c country-code | -h host] " > "[-p port] name ...\n", __progname); > exit(1); > }
They may not provide it externally. Do you know they don't provide it internally amoungst themselves? .... Ken