Backup and Recovery
If you thought configuring DNS in the first place was difficult, you’ll find the backup and recovery procedures refreshingly simple. There are two locations in the Registry to back up the DNS service and one directory on the physical filesystem.
Tip
The following procedure won’t work with Active Directory-integrated zones, as the zone files are within the directory service and are not available on the filesystem.
Do as follows:
On the nameserver, stop the DNS service using the Services applet in the Control Panel or through the command-line.
Open the Registry Editor (select StartRun, type
regedit, and press Enter).Navigate to the
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNSkey.Right-click the DNS folder, and from the context menu, choose Export.
When prompted for a filename, enter
DNS-CCS, and choose an appropriate location that is off the server.Now, navigate to the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DNSserver key.Right-click the DNS Server folder, and from the context menu, choose Export.
Name this file
DNS-CV, and again choose a location that is not on the current server. These two files will beDNS-CCS.REGandDNS-CV.REG.Now, using Windows Explorer, navigate to the
%SystemRoot%\System32\dnsdirectory on the boot drive.Find all files with the
.DNSextension, select them, and then copy them to the same location that you exportedDNS-CCS.REGandDNS-CV.REG.
Your DNS service is now completely backed up. Restart the DNS service ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access