title: How can i find LDAP server address?
body: <p>Im trying to figure out how to retrieve LDAP server adrdress in C#, there is a way on NSLOOKUP like: </p>
  
  <pre><code>C:\&gt;nslookup _ldap._tcp.domain
  Server:  rctr201.server.corp
  Address:  10.10.10.10
  </code></pre>
  
  <p>Can you help-me please?</p>
  
  <p>I tried to find some solution by topics here but i did not have a success :(</p>
  
  <p>I will use the LDAP server to authenticate users on windows on my ASP.NET page.
  If i put manually the correct LDAP Server on my code, its ok! Works but i need to find how get the LDAP Adress to make this automatic on code</p>