Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

script to backup all DNS ADI zones on 2003 DC.

Posted on 2015-01-23
4
Medium Priority
?
194 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
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 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…

926 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