Configuring Zone Transfers using DNSCMD
In this blog post I share how you use DNSCMD to configure Zone Transfers.
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