Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How do I get the DNS zone records from BIND in a BIND format file?

Is it possible to export those?

share|improve this question
-1 - please specify if server that runs bind is under your control, and mention that you have 3000 domains in the question itself. –  Sandman4 Dec 7 '11 at 20:22
are zones dynamically updated ? –  Sandman4 Dec 7 '11 at 20:22

2 Answers 2

Aside from.. copying the zone file?

Well, if you've got zone transfers enabled, then you can pull it with dig via a device that's authorized to do the transfer:

dig @nameserver axfr yourdomain.com
share|improve this answer
And if you have 3000 domains? –  Jean Dec 7 '11 at 18:42

you need access to the DNS server in case you cant do what Shane mentioned, your zones might be located as per in /etc/bind/named.conf, then simply tar -zcvf the dir.....

share|improve this answer
tar the dns directory and the zone files? –  Jean Dec 7 '11 at 18:43
do you have access to the server? –  krisdigitx Dec 8 '11 at 10:01

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.