When performing a domain name whois lookup, whois(1) performs a DNS lookup on <tld>.whois-servers.net to discover the authoritative whois server address. This does not cater for some TLD registries that do not operate a TLD whois server, but operate one or many SLD whois servers below said TLD. For example:
$ host za.whois-servers.net
Host za.whois-servers.net not found: 3(NXDOMAIN)
$ host co.za.whois-servers.net
co.za.whois-servers.net is an alias for whois.coza.net.za.
$ whois test.co.za
whois: za.whois-servers.net: hostname nor servname provided, or not known
The attached patch resolves this by first attempting to resolve co.za.whois-servers.net and using it if it resolves. If not found, it will attempt za.whois-servers.net as normal.
In addition I have also integrated PR bin/128725 into my patch so that whois treats IPv6 address lookups the same as IPv4 addresses (sending the query to ARIN's whois server).
Fix: Patch attached with submission follows:
Anyone had a look at this?
Anyone care to take this? It is a useful feature, really. :)
Let me ponder on this for a week.
For bugs matching the following criteria:
Status: In Progress Changed: (is less than) 2014-06-01
Reset to default assignee and clear in-progress tags.
Mail being skipped