While setting up a lab within Azure I've done some work on DNS and how to script parts of during setup and apply changes after setup. Although DNSCMD is marked as a something Microsoft might remove in future versions of Windows I've been using it to make some changes within my environment. In my examples below I've used "azurelab.com" as my zone name, please replace accordingly for your use. The following command will allow zone transfers to happen to any server [powershell] dnscmd /zoneresetsecondaries azurelab.com /nonsecure [/powershell] This command will stop any transfers of the zone from happening [powershell] dnscmd /zoneresetsecondaries azurelab.com /noxfr [/powershell] This command will allow transfer to the servers within the zone transfer list only [powershell] dnscmd /zoneresetsecondaries azurelab.com /secure [/powershell]

Blog Comments powered by Disqus.

Next Post Previous Post