Configuring Zone Transfers using DNSCMD

PowerShell Jan 30, 2017

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:

dnscmd /zoneresetsecondaries azurelab.com /nonsecure

This command will stop any transfers of the zone from happening:
dnscmd /zoneresetsecondaries azurelab.com /noxfr

This command will allow transfer to the servers within the zone transfer list only: dnscmd /zoneresetsecondaries azurelab.com /secure 192.168.1.200 192.168.1.201

Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.