how to know the ldap server name in wondows code example Example: find ip of ldap server given domain name nslookup -type=srv _ldap._tcp.DOMAINNAME