Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How can i export all zones on our DNS server for backup purposes?

Posted on 2011-03-03
4
Medium Priority
?
1,920 Views
Last Modified: 2012-05-11
we have over 300 DNS zones created on our primary DNS server. is there an easy way using dnscmd.exe to backup all zones and records, without having to list each zone specifically in the script?

thanks in advance,

S.
0
Comment
Question by:siber1
  • 2
4 Comments
 
LVL 3

Expert Comment

by:dmf415
ID: 35030406
If the zone is an Active Directory-integrated zone type (which was introduced in Microsoft Windows 2000), there is no corresponding .dns file for the zone. However, in Windows Server, the files can be sent by using the updated Dnscmd tool. To extract a copy of the zone, run the following command:
dnscmd /ZoneExport FQDN_of_zonename Zone_export_file
Examples of using the command:

    * dnscmd /ZoneExport Microsoft.local MSzone.txt

      This exports the Microsoft.local zone on the local server to a file called MSzone.txt in the %SystemRoot%\System32\Dns folder.
    * dnscmd centurion /ZoneExport reskit.Microsoft.com reskit.dns

      This export the reskit.Microsoft.com zone on the server named Centurion to a file named Reskit.dns in the %SystemRoot%\System32\Dns folder on the server named Centurion.
0
 

Author Comment

by:siber1
ID: 35030445
these are all primary zones, none are AD Integrated zones.
again, I'm looking for a way to run a script to capture all zones and associated records, without having to list each zone individually. there are 300+

thx

S.
0
 
LVL 3

Accepted Solution

by:
IamTheMorsa earned 2000 total points
ID: 35030583
All of your zones should be kept in c:\Windows\System32\dns\ if you are 32bit.

Can also export the registry keys too

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\DNS\Zones - export zones folder
0
 

Author Closing Comment

by:siber1
ID: 35030649
thanks!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you looking to recover an email message or a contact you just deleted mistakenly? Or you are searching for a contact that you erased from your MS Outlook ‘Contacts’ folder and now realized that it was important.
"Any files you do not have backed up in at least two [other] places are files you do not care about."
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question