To verify DNS registration for domain controllers using the nslookup command
nslookup
set q=rr_type
where rr_type is the resource record (RR) type to apply as a filter for subsequent lookups.
For example, in this instance, because you want to limit subsequent name queries to filter and return only service location (SRV) RRs that use a specified name, type:
set q=srv.
_ldap._tcp.dc._msdcs.Active_Directory_domain_name
where Active_Directory_domain_name is the DNS name configured for use with your Active Directory domain and any of its associated domain controllers.
For example, if the DNS domain name of your Active Directory domain is example.microsoft.com, type:
_ldap._tcp.dc._msdcs.example.microsoft.com.
For more information, see Notes and Related Topics.
Note
C:\>nslookup
Default Server: dc1.example.microsoft.com
Address: 10.0.0.14
> set type=srv
> _ldap._tcp.dc._msdcs.example.microsoft.com
Server: dc1.example.microsoft.com
Address: 10.0.0.14
_ldap._tcp.dc._msdcs.example.microsoft.com SRV service location:
priority = 0
weight = 0
port = 389
svr hostname = dc1.example.microsoft.com
_ldap._tcp.dc._msdcs.example.microsoft.com SRV service location:
priority = 0
weight = 0
port = 389
svr hostname = dc2.example.microsoft.com
dc1.example.microsoft.com internet address = 10.0.0.14
dc2.example.microsoft.com internet address = 10.0.0.15
In some cases, you might need to manually add or verify registration of the service location (SRV) resource records used to support Windows 2000 domain controllers.
To add the SRV resource records that have been created for a domain controller, open and view the Netlogon.dns file, created by the Active Directory Installation wizard when a server computer is promoted to a domain controller. It can be found at:
systemroot\System32
_ldap._tcp.Active_Directory_domain_name IN SRV 0 0 389 ldap_server_name
_ldap._tcp.dc._msdcs.Active_Directory_domain_name IN SRV 0 0 389 domain_controller_name
In some cases, you might need to modify the Lightweight Directory Access Protocol (LDAP) server name if you are using a non-domain controller as an LDAP server for your network.