How to get mx records for a dns name with System.Net.DNS? [closed]

Update 2018/5/23: Check out MichaC’s answer for a newer library that has .NET standard support. Original Answer: The ARSoft.Tools.Net library by Alexander Reinert seems to do the job pretty well. It’s available from NuGet: PM> Install-Package ARSoft.Tools.Net Import the namespace: using ARSoft.Tools.Net.Dns; Then making a synchronous lookup is as simple as: var resolver = new … Read more