C# Question

How do I get my current DNS Server in C#?

How do I get my current DNS Server in C#?

Answer

See the MSDN on IPInterfaceProperties.DnsAddresses for sample code.

Comments