Class DnsQueryAndServerOptions
The options used to override the defaults of LookupClient per query.
Inherited Members
Namespace: DnsClient
Assembly: DnsClient.dll
Syntax
public class DnsQueryAndServerOptions : DnsQueryOptions
Constructors
| Improve this Doc View SourceDnsQueryAndServerOptions()
Creates a new instance of DnsQueryAndServerOptions without name servers. If no nameservers are configured, a query will fallback to the nameservers already configured on the LookupClient instance.
Declaration
public DnsQueryAndServerOptions()
DnsQueryAndServerOptions(NameServer[])
Creates a new instance of DnsQueryAndServerOptions.
Declaration
public DnsQueryAndServerOptions(params NameServer[] nameServers)
Parameters
Type | Name | Description |
---|---|---|
NameServer[] | nameServers | A collection of name servers. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If |
DnsQueryAndServerOptions(IPAddress[])
Creates a new instance of DnsQueryAndServerOptions.
Declaration
public DnsQueryAndServerOptions(params IPAddress[] nameServers)
Parameters
Type | Name | Description |
---|---|---|
IPAddress[] | nameServers | A collection of name servers. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If |
DnsQueryAndServerOptions(IPEndPoint[])
Creates a new instance of DnsQueryAndServerOptions.
Declaration
public DnsQueryAndServerOptions(params IPEndPoint[] nameServers)
Parameters
Type | Name | Description |
---|---|---|
IPEndPoint[] | nameServers | A collection of name servers. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If |
Properties
| Improve this Doc View SourceNameServers
Gets a list of name servers which should be used to query.
Declaration
public IReadOnlyList<NameServer> NameServers { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<NameServer> |
Operators
| Improve this Doc View SourceImplicit(DnsQueryAndServerOptions to DnsQueryAndServerSettings)
Converts the query options into readonly settings.
Declaration
public static implicit operator DnsQueryAndServerSettings(DnsQueryAndServerOptions fromOptions)
Parameters
Type | Name | Description |
---|---|---|
DnsQueryAndServerOptions | fromOptions | The options. |
Returns
Type | Description |
---|---|
DnsQueryAndServerSettings |