title: Where can I find a C++ DNS Library?
body: <p>I know DNS is typically handled by the operating system, but I'm working under the assumption that DNS has been broken on the target system (this is a tool to diagnose DNS misconfiguration). I therefore need to implement DNS myself, to check the results I get back from the system against a known good DNS server. </p>
  
  <p>You can do this with the NSLookup or Dig tools, specifying a DNS server address manually, but it appears the Windows API calls for doing this (e.g. <a href="http://msdn.microsoft.com/en-us/library/ms738517.aspx">GetAddressByName</a>) don't allow me to specify a server to query, and use the system's configured target instead.</p>
  
  <p>I tried to look for the RFCs on DNS, but unfortunately they are clear as mud to me -- they make the HTTP spec look like the clearest and most well written spec ever produced.</p>
  
  <p>I also don't want to reinvent something that someone else has already done several times before.</p>