Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-03-03
4
Medium Priority
?
1,869 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

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…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
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…

719 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