> ## Content Index
> Fetch the complete content index at: https://www.techielass.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Configuring Zone Transfers using DNSCMD
- URL: https://www.techielass.com/configuring-zone-transfers-using-dnscmd/
- Published: 2017-01-30T06:00:00.000Z
- Updated: 2022-09-14T13:05:11.000Z
- Description: In this blog post I share how you use DNSCMD to configure Zone Transfers.
- Author: Sarah Lean
- Tags: PowerShell

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