Solved

script to backup all DNS ADI zones on 2003 DC.

Posted on 2015-01-23
4
157 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 33

Expert Comment

by:paulmacd
Comment Utility
Since your DNS is Active Directory Integrated, it's backed up when you back up Active Directory using Microsoft's backup utility.
0
 
LVL 24

Expert Comment

by:Mohammed Khawaja
Comment Utility
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
Comment Utility
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
Comment Utility
THank you very much!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Are you looking to recover an email message or a contact you just deleted mistakenly? Or you are searching for a contact that you erased from your MS Outlook ‘Contacts’ folder and now realized that it was important.
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
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 steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now