Solved

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

Posted on 2011-03-03
4
1,609 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 500 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Learn about cloud computing and its benefits for small business owners.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now