How might I perform DNS lookups using C/C++ on Linux?

后端 未结 7 1666
太阳男子
太阳男子 2020-12-19 01:57

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

7条回答
  •  庸人自扰
    2020-12-19 02:52

    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.

提交回复
热议问题