Méthode | Description | |
---|---|---|
SetNameservers ( LocalNetworkInterface localNetworkInterface, List |
Set's the IPv4 or IPv6 DNS Servers of an interface. Win32_NetworkAdapter class is deprecated. https://msdn.microsoft.com/en-us/library/windows/desktop/hh968170(v=vs.85).aspx (only on windows 8+) |
Méthode | Description | |
---|---|---|
GetDnsServerList ( string localNetworkInterface, NetworkInterfaceComponent networkInterfaceComponent ) : List |
Get the nameservers of an interface.
|
|
GetLocalNetworkInterfaces ( bool showHiddenCards = false, bool showOnlyOperationalUp = true ) : List |
Get a list of the local network interfaces.
|
|
IsUsingDnsCrypt ( LocalNetworkInterface localNetworkInterface ) : bool |
Simple check if the network interface contains any of resolver addresses.
|
public static SetNameservers ( LocalNetworkInterface localNetworkInterface, List |
||
localNetworkInterface | LocalNetworkInterface | The interface to work with. |
dnsServers | List |
List of dns servers to set. |
networkInterfaceComponent | NetworkInterfaceComponent | IPv4 or IPv6. |
Résultat | bool |