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

I need to move some domains to a different DNS server, and I'm wondering if there's any way to obtain a complete copy of the zone file without going though the current DNS provider?

share|improve this question
up vote 9 down vote accepted

I agree w/ David re: most servers not being configured to allow zone transfers. Having said that, you can try giving a zone transfer a shot.

dig @nameserver axfr

Substitute in your nameserver's name and your domain name.

On Windows, you can use nslookup in interactive mode to do a zone transfer. From the nslookup prompt:

server nameserver

Again, substitute in your nameserver's name and your domain name.

Try all the nameservers-- sometimes I find that one of them will allow zone transfers.

share|improve this answer

Generally not.

If the DNS servers are configured to allow zone transfers to anywhere then you can read the whole zone file that way - but it is very unusual for servers to honour such requests unless they are from the providers other name servers or admin/monitoring machines.

share|improve this answer

You can list DNS servers using any DNS client nslookup, host, dig ... with dig run

dig domain.tld ns
If the DNS server allow the tranfert zone that is used generally for DNS database replication and backup, you can get the zone file using the dig utility like this:

dig @dns.server domain.tld axfr

share|improve this answer

protected by MadHatter Jun 20 '13 at 14:23

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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