title: nslookup for C# and C++ to resolve a host using a specific Server
body: <p>I need to resolve a hostname using a specific DNS server like you would in nslookup</p>
  
  <pre><code>C:\&gt;nslookup hotname 192.100.10.10
  Server:  UnKnown
  Address:  192.100.10.10
  
  Name:    hostname.host
  Address:  192.100.10.14
  </code></pre>
  
  <p>But of course in return I don't just want the address I want all the values for <code>Server</code>, <code>Address</code>, <code>Name</code> and <code>Address</code></p>
  
  <p>I have looked at the <code>System.Net.Dns</code> Class but that only gives me the Resolved IP Address and doesn't let me select the DNS Server of my choosing</p>
  
  <p>If any one has done this before and you can help me with this.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Found One for C# : <a href="http://www.simpledns.com/dns-client-lib.aspx" rel="nofollow noreferrer">http://www.simpledns.com/dns-client-lib.aspx</a></p>
  
  <p>Here is a snippet of my code just for some entertainment</p>
  
  <pre><code>//Buy him Cookies and Strippers
  using JHSoftware;
  </code></pre>