Finding the MX Record using C#?

后端 未结 3 916
一向
一向 2020-12-16 05:04

How can I find the MX record for a mail server in C#?

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-16 05:16

    Take a look at this DNS resolver project on codeproject.com. The library has a Resolver class that contains a method named Query which can be used to go after the MX record.

提交回复
热议问题