Windows Server 2003: How to remove all DNS records for a domain controller

Contributor Icon Contributed by shamanstears Date Icon August 2, 2006  
Tag Icon Tagged: 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’s no confirmation dialog box, so use the command with care.

Previous recipe | Next recipe |
 
blog comments powered by Disqus