title: Using Java for 'nslookup -type=srv'
body: <p>Is there a way in Java to do a Nslookup search on SRV records?</p>
  
  <p>I need to bind to Active Directory and would like to use the SRV records to help determine which of the ADs in the cluster are live.</p>
  
  <p>In command line the nslookup search string is: 'nslookup -type=srv _ ldap._tcp.ActiveDirectory domain name'</p>
  
  <p>Thanks.</p>