What is the default whois server queried when using the whois
command?
I use a /etc/whois.conf
file to manage servers queried for the whois
command. The contents of the file are based on this Super User answer. If I use the server listed in the answer for .com (whois.verisign-grs.com
), all queries to domains registered with GoDaddy return an incomplete record.
However, if I comment out the entry in the file for .com, then the full whois record for a GoDaddy registered domain will be returned.
So I want to figure out what server is being queried when whois
is using the default lookup settings.
You may use
strace
which is a debugging tool to find what was really used:whois.strace.log
When pulling up the man page on whois it has the follow description:
From
man whois
:And:
So, depending on
/etc/whois.conf
andWHOIS_SERVER
:First of all your request your local whois client is contacting the central registry ( IANA ) and asking for the responsible domain registrar. The client is following the hierarchical references down to the registrar which can you provide the desired information. Source: https://whois.icann.org/en/dns-and-whois-how-it-works