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

How do I backup the Windows DNS (AD) content, in a form that enables simple restore?

Partial restore, e.g. a sub-domain, is also nice to have. I am not looking for solutions involving full Windows system backup.

share|improve this question

You can use dnscmd to dump the zone files to disk (although I think it excludes the glue records). Here's the batch file I run on our DC to back up our internal zones:

dnscmd /zoneprint <ZoneName> > C:\path\to\zone\file
<Lather, rinse, repeat>

xcopy /s /e /y c:\DNSBackup \\<Backup server>\path\
share|improve this answer
How would I restore a zone? – gimel Jul 14 '09 at 9:40
dnscmd /zoneadd <Zone name> /primary /file <filename> /load – RainyRat Jul 14 '09 at 9:52
@gimel: describes the dnscmd app. I've managed to miss this app and embarrassingly it's been around for years. Now on my list of useful applets! – John Rennie Jul 14 '09 at 9:54

I don't know of an elegant way to do this. You could do it by setting the zone back to a zone file instead of AD Integrated, then you can back up the zone file. However you'd have to manually set up replication from one of the DCs to all the others. I have seen this done, but if it were my network I'd be feeling uneasy with this solution. It would be OK if you only had one DC.

Could you enable zone transfers and back it up by doing selected "ls mydomain.local" comamnds in nslookup?


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.