• DnsClient
  • Readme
  • Api Docs
  • MichaCo.net
This site uses "cookies" - small data files stored locally on your computer - to save information about your preferences when using this site. Learn More.

    Show / Hide Table of Contents

    Class DnsQueryAndServerOptions

    The options used to override the defaults of LookupClient per query.

    Inheritance
    Object
    DnsQueryOptions
    DnsQueryAndServerOptions
    LookupClientOptions
    Inherited Members
    DnsQueryOptions.MinimumBufferSize
    DnsQueryOptions.MaximumBufferSize
    DnsQueryOptions.EnableAuditTrail
    DnsQueryOptions.UseCache
    DnsQueryOptions.Recursion
    DnsQueryOptions.Retries
    DnsQueryOptions.ThrowDnsErrors
    DnsQueryOptions.UseRandomNameServer
    DnsQueryOptions.ContinueOnDnsError
    DnsQueryOptions.ContinueOnEmptyResponse
    DnsQueryOptions.Timeout
    DnsQueryOptions.UseTcpFallback
    DnsQueryOptions.UseTcpOnly
    DnsQueryOptions.ExtendedDnsBufferSize
    DnsQueryOptions.RequestDnsSecRecords
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: DnsClient
    Assembly: DnsClient.dll
    Syntax
    public class DnsQueryAndServerOptions : DnsQueryOptions

    Constructors

    | Improve this Doc View Source

    DnsQueryAndServerOptions()

    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()
    | Improve this Doc View Source

    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 nameServers is null.

    | Improve this Doc View Source

    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 nameServers is null.

    | Improve this Doc View Source

    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 nameServers is null.

    Properties

    | Improve this Doc View Source

    NameServers

    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 Source

    Implicit(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
    • Improve this Doc
    • View Source
    © 2025 by Michael Conrad. All rights reserved. - MichaCo.net