views:

227

answers:

3

Is there any built in method in the .NET library that will return all of the MX records for a given domain? I see how you get CNAMES, but not MX records.

A: 

See this blog post - the guy wrote an MX client using raw UDP ports. Single file class, so you should be able to use it as is.

Oded
Thanks everyone, i went with this class.
Segfault
A: 

.NET does not have anything that I know of. Here is a Code Project article that you can take a look at that I believe could be helpful.

http://www.codeproject.com/KB/IP/DNS_NET_Resolver.aspx

Chris Taylor
A: 

There is nothing built into .NET, but you can use a free library like http://www.simpledns.com/dns-client-lib.aspx

Jesper