tags:

views:

75

answers:

3

I'm trying to find a list of TLD's to their corresponding whois server, for example

.com americanWhoisServer .net someOtherWhoisServer .au australianWhoisServer

In the end i'm aiming for something like a Dictionary where the key is the TLD and the value is the whois server address (eg whois.apnic.net).

Ah snap, i just realised that i am given the IP addresses and not domain names but a list could still come in handy.

How can i determine which whois server to use given a IP address? Guess and check?

A: 

Here you can find a rather long list: http://www.whois365.com/en/listtld/

I don’t know how complete it is.

toscho
A: 

Each whois client has its own way of getting this information, since no standard was ever adopted.

GNU whois (as used on Debian) has a hardwired list (not a configuration file, a file included at compile-time, named tld_serv_list).

The whois client on FreeBSD uses an online (unofficial) list, maintained in the DNS, at whois-servers.net:

% dig +short CNAME fr.whois-servers.net 
whois.nic.fr.
% dig +short CNAME in.whois-servers.net 
whois.inregistry.net.
bortzmeyer
A: 

You might find the official IANA (Internet Assigned Numbers Authority) list at http://www.iana.org/domains/root/db/ a good starting/jumping off point. It lists the WHOIS (and nameservers) for all allocated TLDs and it's the official list, but not available in an "easy to export format"

Richy C.