Checking Nameserver setup from command line

Joshua picture Joshua · Sep 2, 2009 · Viewed 17k times · Source

Is there a way to check if my domain is setup correctly on the nameservers? Ideally I'd like to run a command from command line, alternatively can use a third party tool.

for example, I'm trying to register a domain that's to be hosted on godaddy.com. I have set up the domain and can see it in my DNS list. The servers that are supposed to be setup are ns51.domaincontrol.com and ns52.domaincontrol.com, however my registration is bouncing saying that there are "No Nameservers found for {my new domain}".

Answer

Jesús Carrera picture Jesús Carrera · Oct 11, 2015

I think this is the shortest and quickest command to list your nameservers:

host -t ns yourdomain.com