I've accidentally overwritten my named.conf. I haven't restarted named, yet.

Is it possible to get a complete copy of all the zones that it is currently serving so that I can replace the configuration file?

link|improve this question
7  
Just restore from backup. – Chris S Oct 5 '11 at 18:21
1  
Don't you have the corresponding settings on your DNS slave? – andol Oct 5 '11 at 18:30
Backups. BACKUPS! – JohnThePro Apr 19 at 18:55
feedback

1 Answer

You can do an AXFR with dig @localhost example.com axfr to get the contents of a specific zone (assuming that you've allowed AXFR transfers), but I don't think that there's a way to list the configured zones. You should probably be using etckeeper and be making backups for situations like this though ;-)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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