TechRepublic : A ZDNet Tech Community

Network Administrator

Host: Selena Frye
Contact

Managing DNS zones is easy enough until something goes wrong. In this TechRepublic Network Administrator blog, tech ninja Rick Vanover shows a way to make DNS zone data more accessible in lieu of a restore.
——————————————————————————————————————-

Many of the more powerful network commands in Windows Server can be done with the command line. Netsh is one that I have covered a bit, and dnscmd is another that can give administrators a lot of functionality in protecting their DNS zones.

Before the naysayers light up the comments below I must mention that I’m not suggesting this as a replacement for a backup of your Windows-integrated DNS servers. I’m proposing an export of the DNS zones (ideally as a scheduled task) to a flat file that you can see what the zones contained in a point of time. This can be to accommodate what was changed, added, or deleted when looking through oddities that come up with administering a Windows Active Directory integrated DNS server.

To get started with dnscmd, this command may need to be installed on your server depending on its current configuration. It is most frequently installed with the server support tools pack for the server version you are using. Default installations put the command in the C:\Program Files\Support Tools path. In the example I will use, I will put the DNS zones to the C:\zonex folder locally on the DNS server. To export a DNS zone to a text file, run the following commands:


dnscmd 10.187.187.200 /ZoneExport RWVDEV.INTRA rwvdev-dot-intra.txt
move c:\windows\system32\dns\rwvdev-dot-intra.txt c:\zonex /Y

This will export the zone RWVDEV.INTRA from server 10.187.187.200 to the file rwvdev-dot-intra.txt. The next line moves it to the zonex path where I would like to keep these for archival and review.

A little tweaks for your environment and you can be ready to go quite quickly with this script. This can be easier for DNS forensics as well as possibly more attractive than a restore if you know what changed by reviewing the export.

What tricks do you do to protect and record your DNS entries? Share your comments below.

Rick VanoverRick Vanover is an IT Infrastructure Manager for Alliance Data in Columbus, Ohio. Rick has years of IT experience and focuses on virtualization, Windows-based server administration, and system hardware. You can catch Rick on Twitter and read his full profile.

Print/View all Posts Comments on this blog

Dig could to the trick too tor.rogstad@... | 06/23/09
RE: Export DNS zones to a text file Vinay.Srivastava@... | 06/23/09
Didn't find ZoneExport option on 2000 techr@... | 06/24/09

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



500 Things Every Technology Professional Needs to Know
Did you know Microsoft's RegClean does not work with XP but you can use shareware to clean your registry? Did you know most wireless access points don't have encryption enabled by default? Did you know there are 500 tidbits of information contained in TechRepublic's 500 Things Every Technology Professional Needs to Know that will help you become a successful IT professional.
Buy Now
Administrator's Guide to TCP/IP, Second Edition
Maintain your critical TCP/IP system and ensure reliable, safe remote access. Get the expert advice and solutions to handle Windows networking, Cisco routing, documentation, and troubleshooting.
Buy Now

SmartPlanet

Click Here