Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We currently have a domain which has custom nameservers. Our host has their own nameservers.

I'd like to switch our domain to use our host's nameservers for a while. Our host tells me that their nameservers hold a replica of our dns zone, but I'd like to confirm this before I switch.

Is there a command line tool I can use that I can use to answer the question "does this nameserver know the dns zone of this domain?"

Hope that makes sense!

Thanks, Adam

share|improve this question
up vote 3 down vote accepted

Assuming you're using Linux/OS X, you can do dig @nameserver.to.test a www.mydomain.com on the command line, which should do what you want.

share|improve this answer
Thanks Dan, that's just what I want. And welcome. – adam Apr 5 '12 at 15:50

Not a command line tool, but if you visit http://www.gwebtools.com/ns-spy/ and add your nameserver after the trailing slash e.g.

and then select the domain you need to view, you'll be able to see that information.

share|improve this answer
Thanks. Hard to see, as there are 37 pages of hosts and no ordering! Useful tool though – adam Apr 5 '12 at 15:50
@adam I agree it's tough to find your way! But it's very handy if you're on a non linux box or don't like the command line. – toomanyairmiles Apr 5 '12 at 15:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.