• 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 LookupClientOptions

    The options used to configure defaults in LookupClient and to optionally use specific settings per query.

    Inheritance
    Object
    DnsQueryOptions
    DnsQueryAndServerOptions
    LookupClientOptions
    Inherited Members
    DnsQueryAndServerOptions.NameServers
    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 LookupClientOptions : DnsQueryAndServerOptions

    Constructors

    | Improve this Doc View Source

    LookupClientOptions()

    Creates a new instance of LookupClientOptions with default settings.

    Declaration
    public LookupClientOptions()
    | Improve this Doc View Source

    LookupClientOptions(NameServer[])

    Creates a new instance of LookupClientOptions.

    Declaration
    public LookupClientOptions(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

    LookupClientOptions(IPAddress[])

    Creates a new instance of LookupClientOptions.

    Declaration
    public LookupClientOptions(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

    LookupClientOptions(IPEndPoint[])

    Creates a new instance of LookupClientOptions.

    Declaration
    public LookupClientOptions(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

    AutoResolveNameServers

    Gets or sets a flag indicating whether the name server collection should be automatically resolved. Default is True.

    Declaration
    public bool AutoResolveNameServers { get; set; }
    Property Value
    Type Description
    Boolean
    Remarks

    If name servers are configured manually via the constructor, this flag is set to false. If you want both, your manually configured servers and auto resolved name servers, you can use both (ctor or) NameServers and AutoResolveNameServers set to True.

    | Improve this Doc View Source

    MaximumCacheTimeout

    Gets a TimeSpan which can override the TTL of a resource record in case the TTL of the record is higher than this maximum value. Default is Null.

    Declaration
    public TimeSpan? MaximumCacheTimeout { get; set; }
    Property Value
    Type Description
    Nullable<TimeSpan>
    Remarks

    This setting gets igonred in case UseCache is set to False, or the value is set to Null, Infinite or Zero. The maximum value is 24 days (which shouldn't be used).

    | Improve this Doc View Source

    MinimumCacheTimeout

    Gets or sets a TimeSpan which can override the TTL of a resource record in case the TTL of the record is lower than this minimum value. Default is Null.

    This is useful in case the server retruns records with zero TTL.

    Declaration
    public TimeSpan? MinimumCacheTimeout { get; set; }
    Property Value
    Type Description
    Nullable<TimeSpan>
    Remarks

    This setting gets igonred in case UseCache is set to False, or the value is set to Null or Zero. The maximum value is 24 days or Infinite (choose a wise setting).

    • Improve this Doc
    • View Source
    © 2025 by Michael Conrad. All rights reserved. - MichaCo.net