Solved

script to backup all DNS ADI zones on 2003 DC.

Posted on 2015-01-23
4
160 Views
Last Modified: 2015-01-26
Hi, I need a script to backup all DNS ADI zones on 2003 DNS. Will this do the job on 2003 DC?

https://gallery.technet.microsoft.com/scriptcenter/5931a49f-e7d0-4d5d-aff4-cb799213b29f
0
Comment
Question by:creative555
4 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 40567355
Since your DNS is Active Directory Integrated, it's backed up when you back up Active Directory using Microsoft's backup utility.
0
 
LVL 25

Expert Comment

by:Mohammed Khawaja
ID: 40567395
Use NTBACKUP and perform System State Backup on one of your DCs.  Microsoft's recommendation is to have backups from 2 DCs and they support NTBACKUP only as it is built-in with Windows.
0
 
LVL 24

Accepted Solution

by:
VB ITS earned 500 total points
ID: 40567796
That script should work fine. Just note that it states it will back up all DNS zones, not just Active Directory Integrated ones.

I may be old school here but I'd personally rather back up my DNS zones manually using the good ol' dnscmd.exe tool. You will need to download and install the Windows Server 2003 Support Tools to get access to this tool if you don't already have it installed: http://www.microsoft.com/en-us/download/details.aspx?id=15326

- Change Directory in Command Prompt to the Support Tools folder:
cd "C:\Program Files\Support Tools"
- Run the below command to back up your AD Integrated zone:
dnscmd ServerName /ZoneExport dns.zone.com dns.zone.com.bak
- Browse to %windir%\system32\dns to locate the .bak file and move it elsewhere as required

Using the above process, you can look at creating your own batch file to back up your zones then copy them to a network share (for example).
cd "C:\Program Files\Support Tools"
dnscmd ServerName /ZoneExport zone1.company.com zone1.company.com.bak
dnscmd ServerName /ZoneExport zone2.company.com zone2.company.com.bak
dnscmd ServerName /ZoneExport zone2.company.com zone3.company.com.bak

xcopy /i %windir%\system32\dns\*.bak "\\server\dnsbackups"
pause

Open in new window

Copy and paste the above into a new batch file, edit it where necessary, then run it.

Let me know how you go
0
 

Author Closing Comment

by:creative555
ID: 40571629
THank you very much!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
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 configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

770 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