Solved

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

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
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…

911 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