ayi <p>For Linux, this command should return the DNS record for the LDAP server</p> <pre><code class="lang-auto">host -t srv ldap.tcp.DOMAINNAME </code></pre> <p>(found at <a href="https://stackoverflow.com/questions/3091984" rel="noopener nofollow ugc">Authenticating from Java (Linux) to Active Directory using LDAP WITHOUT servername</a>)</p> <p>How could I get the same on the Windows command line using nslookup?</p> <p>I tried</p> <pre><code class="lang-auto">nslookup -type srv ldap.tcp.DOMAINNAME </code></pre> <p>(following <a href="http://support.microsoft.com/kb/200525" rel="noopener nofollow ugc">http://support.microsoft.com/kb/200525</a>), would this be correct?</p> <hr> <p><em>Source : <a href="https://stackoverflow.com/questions/3091984" rel="noopener nofollow ugc"></a></em></p>
ayi_2 <p>You need to use an <code>=</code> after <code>-type</code>:</p> <pre><code class="lang-auto">nslookup -type=srv ldap.tcp.DOMAINNAME </code></pre> <p>Replace <code>DOMAINNAME</code> with the actual name of the domain.</p>