Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transfer zone files

Status
Not open for further replies.

bcardona

Programmer
May 10, 2001
103
US
is there a way to transfer all zone files from one windows box to another, i have to replace my secondary dns server, and would like to copy all the zones from the current secondary to the new one, just not sure how. they are 2000 server boxes.
 
The simple way of doing that is to create secondaries on the new box. make sure that everything is fine with the server and zones. and than convert these zones type to primary on new server and secondary on the old one.

to do it quick you can use dnscmd.exe

sample steps are:

-dnscmd y.y.y.y /enumzones > zones.txt
-clean zones.txt to have only zonenames per line
-for /F %i (filename) do -createzone- %i
where -createzone- a batch file with commands like
dnscmd x.x.x.x /zoneadd %1 /secondary y.y.y.y /file %1.dns

etc
 
that is a little confusing, i guess what i just need is .

ex. primary dns has 100 zone files, i want to either be able to sync the secondary with the primary instead of creating the secondary zones one at a time etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top