Solved

script to backup all DNS ADI zones on 2003 DC.

Posted on 2015-01-23
4
175 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
[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
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
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 the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
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…

623 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