How can I remove all DNS records for a domain controller (DC)?

John Savill

July 23, 2006

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. 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--GC). These records are listed in each DC's local netlogon.dns file in the %systemroot%system32config 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 savdaldc02.savilltech.com, I would use this command:

C:>nltest /dsderegdns:savdaldc02.savilltech.com 

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

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like