How to find the DNS Name of a domain

The following knowledgebase will tell you the procedure you can use to retrieve the DNS name of a domain from registry.

The following registry location is the best place to find the DNS name of a domain controller.

HKLM\Software\Microsoft\Windows\CurrentVersion\Group Policy\History.

In the right pane, you will see an entry by name DCName=

The above entry will contain the DNS name of the domain. This DNS name of domain is stored in registry key after Winlogon retrieves the Domain controller by using the DcGetDCName API call.

Leave a Reply

Your email address will not be published. Required fields are marked *