DisableNSRecordsAutoCreation with Dnscmd

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

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Hi! Join the discussion, leave a reply!