How do I get similar functionality to the host command using a c api (or any other language for that matter)? I need more information than just an IP address gi
host
I'd suggest FireDNS. It's a very fast C library for all kinds of dns queries.