This post explains how to restrict automatic NS resource record registration in Windows Server DNS using
Dnscmd. This prevents Windows Server DNS to automatically create NS records for zones that it hosts on the server.
Enable DisableNSRecordsAutoCreation with Dnscmd #
To enable DisableNSRecordsAutoCreation on the command line use the following command:
Dnscmd /config /DisableNSRecordsAutoCreation 1
Pro tip: enabling this DisableNSRecordsAutoCreation setting disables the auto creation of NS records zones that it hosts.
When you just want to know the current status of the setting, run:
Dnscmd /info /DisableNSRecordsAutoCreation
And you can always disable it:
Dnscmd /config /DisableNSRecordsAutoCreation 0
Please Support Saotn.org
Each post on Sysadmins of the North takes a significant amount of time to research, write, and edit. Therefore, your donation helps a lot! For example, a donation of $3 U.S. buys me a cup of coffee, and as you know: things jsut work better with coffee. A $10 U.S. donation buys me one month of web hosting (yes, hosting costs money). But seriously, thank you for any amount. Much appreciated!
Please donate to support this site if you found a post interesting or if it helped you solve a problem. Thanks! (Tip: no Paypal account required)