title: How might I perform DNS lookups using C/C++ on Linux?
body: <p>How do I get similar functionality to the <code>host</code> command using a c api (or any other language for that matter)? I need more information than just an IP address given by <code>gethostbyname()</code>; specifically, the SMTP-related data.</p>