Skip to content

GetSystemDnsServers Method ​

Definition ​

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

IReadOnlyList<IPAddress> GetSystemDnsServers() ​

csharp
IReadOnlyList<IPAddress> GetSystemDnsServers()

Returns the DNS server addresses configured on the local operating system.

Returns ​

The configured DNS server addresses, or an empty list when none are configured.

Remarks ​

Loopback interfaces and IPv6 link-local and site-local addresses are excluded.