Verifying Nameserver Installation from the Command Line
Is there a way to check if my domain is configured correctly in the nameservers? Ideally I would like to run the command from the command line and also use a third party tool.
For example, I am trying to register a domain to be hosted on godaddy.com. I created a domain and can see it in my DNS list. The servers that need to be configured are ns51.domaincontrol.com and ns52.domaincontrol.com, however my registration jumps up saying "No Nameservers" was found for "my new domain".
source to share
If you are on a Mac or Unix computer, you can do the following from the command line:
whois site.com
By the end, it should provide you with a list of DNS servers.
You can filter the list by specifying only nameserver information with:
whois site.com | grep "Name S"
Note that www.site.com and site.com are two different endpoints and you need to set them up for both.
source to share
Zonecheck is free software and can be run from the command line:
% zonecheck stackoverflow.com ZONE: stackoverflow.com. NS <=: ns51.domaincontrol.com. [216.69.185.26] NS: ns52.domaincontrol.com. [208.109.255.26] _______________ , ---------------. | ~~~~ | warning || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ `--------------- ' w> Nameservers are all part of the same AS | Adv: ZoneCheck | To avoid loosing all connectivity with the authoritative DNS in case | of a routing problem inside your Autonomous System, it is advised to | host the DNS on different AS. `----- - - - - - : All the nameservers are part of the same Autonomous System (AS number : 26496), try to have some of them hosted on another AS. `..... .. ... ... ... => generic ==> SUCCESS (but 1 warning (s))
source to share
There is a built-in command line for this: nslookup
Submit it, then write set type=ANY
and hit enter. Then enter the domain you want and you will get what you are looking for. Alternatively, enter ?
and review additional command line parameters nslookup
.
PS: While this answer comes with a delay, I hope it is helpful to others who want to test their nameserver / DNS setup from the command line.
source to share