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
And I would add, unless you're writing a mail relay you almost certainly shouldn't be looking up MX records - you should be passing the mail on to a user-configured mail relay instead.