Windows Server 2003: How to Remove All DNS Records for a Domain Controller

Posted August 2, 2006 by Rob Rogers in Windows networking

Each DC registers a number of DNS records that clients and other services use to “find” the DC and its services (e.g., LDAP, Kerberos, and Global Catalog).


These records are listed in each DC’s local netlogon.dns file in the %systemroot%\system32\config folder. If you want to remove the records for a DC, you can use the Nltest tool, which is part of the Windows Server 2003 support tools, to remove all records relating to the specified DC.

Use the Nltest tool with this syntax: nltest /dsderegdns:

For example, to remove all records for miscdc02.miscx.com, you would use this command:

C:\>nltest /dsderegdns:miscdc02.miscx.com

Be aware that there is no confirmation dialog box, so use the command with care.

 

About Rob Rogers

Once a prolific author here on Tech-Recipes, Rob has moved on to greener pastures.
View more articles by Rob Rogers

The Conversation

Follow the reactions below and share your own thoughts.