Question : Globally change zone transfer server address

We host DNS for about 75 companies and have recently changed the address scheme of one of our DNS servers.

Is there is any way to avoid going into each Foward Lookup Zone, going to zone transfers tab and changing the IP address of the server on every domain?

Thanks,

Answer : Globally change zone transfer server address


Indeed you can, Zone Transfers is a composite of two values:

SecureSecondaries - Correlates to the three radio buttons and tick box that defines whether a transfer is allowed or not and to what.
SecondaryServers - A list of servers permitted to transfer the zone if SecureSecondaries is set to 2

You may have to restart the DNS Service for it to see the configuration change if done that way.

If you were to use DNSCMD it would be:

dnscmd <DNSServer> /ZoneResetSecondaries <ZoneName> /SecureList <IPAddresses>

Excel is rather useful for making a script. For example, if you have a list of zones all you need do is put that in Column B, then the first part of DNSCMD in Column A, and the end in Column C and drag it down. Paste that into Notepad, instant script.

Chris
Random Solutions  
 
programming4us programming4us