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

Is it possible to export those?

link|improve this question

25% accept rate
-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
feedback

2 Answers

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
link|improve this answer
And if you have 3000 domains? – Jean Dec 7 '11 at 18:42
feedback

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.....

link|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
feedback

Your Answer

 
or
required, but never shown

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