Class DNSConfig
Represents DNS configuration.
Inheritance
System.Object
DNSConfig
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System.Network.Config
Assembly: Cosmos.System2.dll
Syntax
public class DNSConfig
Fields
| Improve this Doc View SourceDNSNameservers
The list of known DNS nameserver addresses.
Declaration
public static readonly List<Address> DNSNameservers
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<Address> |
Methods
| Improve this Doc View SourceAdd(Address)
Registers a given DNS server.
Declaration
public static void Add(Address nameserver)
Parameters
Type | Name | Description |
---|---|---|
Address | nameserver | The IP address of the target DNS server. |
Remove(Address)
Removes the given DNS server from the list of registered nameservers.
Declaration
public static void Remove(Address nameserver)
Parameters
Type | Name | Description |
---|---|---|
Address | nameserver | The IP address of the target DNS server. |