Server Fault is a question and answer site for system and network administrators. 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

Is it possible to get all DNS records off a remote server?

share|improve this question

migrated from Mar 4 '10 at 2:07

This question came from our site for professional and enthusiast programmers.

Normally you can't, but if the DNS server allows zone tranfers to anyone (unlikely) you can do it.

share|improve this answer
+1 That's the definitive answer. Without a zone transfer you cannot even know if you have obtained all the records for a given zone. – John Gardeniers Mar 4 '10 at 2:45

Try Zonetransfer on unix shell:

$ dig axfr sld.tld. @nameserver

get a list of nameservers delegated for your zone:

$ dig soa sld.tld. +trace
share|improve this answer

Zone transfers are always available to slave nameservers. This will be at all the listed nameservers except the master nameserver. Higher security configuration hide the master nameserver and may not allow public access to it.

dig axfr sld.tld. @nameserver

Once upon a time zone transfers were frequently available to everyone. Today's best practices discourage allowing them to everyone. This helps limit information leakage. The axfr command above will get the data if it is available.

share|improve this answer

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.