Link to home
Start Free TrialLog in
Avatar of Michael Leonard
Michael LeonardFlag for United States of America

asked on

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

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.
Avatar of dmf415
dmf415

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.
Avatar of Michael Leonard

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of IamTheMorsa
IamTheMorsa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks!