Storage

Byte.com

Microsoft How To...

Recently I had come across a need to find out which server host LDAP in the Windows Domain.  To do this I had to use the following steps:

Go to Start and type CMD in the search box.  This will bring up the command line.


Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation.  All rights reserved.


C:>


Once the Command line is open type the following:


C:>nslookup

Default Server:  server.mydomain.local

Address:  192.168.0.109


Now type the following


> set types=all


And the last command that will actually query for the LDAP server


> _ldap._tcp.mydomain.local


This will then show you the results of the query


Server:  server.mydomain.local

Address:  192.168.0.109


_ldap._tcp.mydomain.local         SRV service location:

          priority       = 0

          weight         = 100

          port           = 389

          svr hostname   = server.mydomain.local

server.mydomain.local       internet address = 192.168.0.109

>




OU=ADMINISTRATORS,DC=mydomain,DC=local


administrator@mydomain.local