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

    The header section of a IDnsQueryResponse.

    Inheritance
    Object
    DnsResponseHeader
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: DnsClient
    Assembly: DnsClient.dll
    Syntax
    public class DnsResponseHeader

    Constructors

    | Improve this Doc View Source

    DnsResponseHeader(Int32, UInt16, Int32, Int32, Int32, Int32)

    Initializes a new instance of the DnsResponseHeader class.

    Declaration
    [CLSCompliant(false)]
    public DnsResponseHeader(int id, ushort flags, int questionCount, int answerCount, int additionalCount, int serverCount)
    Parameters
    Type Name Description
    Int32 id

    The identifier.

    UInt16 flags

    The flags.

    Int32 questionCount

    The question count.

    Int32 answerCount

    The answer count.

    Int32 additionalCount

    The additional count.

    Int32 serverCount

    The server count.

    Properties

    | Improve this Doc View Source

    AdditionalCount

    Gets the number of additional records in the IDnsQueryResponse.

    Declaration
    public int AdditionalCount { get; }
    Property Value
    Type Description
    Int32

    The number of additional records.

    | Improve this Doc View Source

    AnswerCount

    Gets the number of answer records in the IDnsQueryResponse.

    Declaration
    public int AnswerCount { get; }
    Property Value
    Type Description
    Int32

    The number of answer records.

    | Improve this Doc View Source

    FutureUse

    Gets a value indicating whether the future use flag is set.

    Declaration
    public bool FutureUse { get; }
    Property Value
    Type Description
    Boolean

    The future use flag.

    | Improve this Doc View Source

    HasAuthorityAnswer

    Gets a value indicating whether this instance has authority answers.

    Declaration
    public bool HasAuthorityAnswer { get; }
    Property Value
    Type Description
    Boolean

    true if this instance has authority answers; otherwise, false.

    | Improve this Doc View Source

    HasQuery

    Gets a value indicating whether this instance has a query.

    Declaration
    public bool HasQuery { get; }
    Property Value
    Type Description
    Boolean

    true if this instance has a query; otherwise, false.

    | Improve this Doc View Source

    Id

    Gets the identifier.

    Declaration
    public int Id { get; }
    Property Value
    Type Description
    Int32

    The identifier.

    | Improve this Doc View Source

    IsAuthenticData

    Gets a value indicating whether the result is authentic data.

    Declaration
    public bool IsAuthenticData { get; }
    Property Value
    Type Description
    Boolean

    true if the result is authentic; otherwise, false.

    | Improve this Doc View Source

    IsCheckingDisabled

    Gets a value indicating whether checking is disabled.

    Declaration
    public bool IsCheckingDisabled { get; }
    Property Value
    Type Description
    Boolean

    true if checking is disabled; otherwise, false.

    | Improve this Doc View Source

    NameServerCount

    Gets the number of name servers.

    Declaration
    public int NameServerCount { get; }
    Property Value
    Type Description
    Int32

    The number of name servers.

    | Improve this Doc View Source

    OPCode

    Gets the kind of query defined by DnsOpCode.

    Declaration
    public DnsOpCode OPCode { get; }
    Property Value
    Type Description
    DnsOpCode

    The query kind.

    | Improve this Doc View Source

    QuestionCount

    Gets the number of questions of the IDnsQueryResponse.

    Declaration
    public int QuestionCount { get; }
    Property Value
    Type Description
    Int32

    The number of questions.

    | Improve this Doc View Source

    RecursionAvailable

    Gets a value indicating whether recursion is available on the DNS server.

    Declaration
    public bool RecursionAvailable { get; }
    Property Value
    Type Description
    Boolean

    true if recursion is available; otherwise, false.

    | Improve this Doc View Source

    RecursionDesired

    Gets a value indicating whether recursion desired flag was set by the request.

    Declaration
    public bool RecursionDesired { get; }
    Property Value
    Type Description
    Boolean

    true if the recursion desired flag was set; otherwise, false.

    | Improve this Doc View Source

    ResponseCode

    Gets the response code.

    Declaration
    public DnsHeaderResponseCode ResponseCode { get; }
    Property Value
    Type Description
    DnsHeaderResponseCode

    The response code.

    | Improve this Doc View Source

    ResultTruncated

    Gets a value indicating whether the result was truncated.

    Declaration
    public bool ResultTruncated { get; }
    Property Value
    Type Description
    Boolean

    true if the result was truncated; otherwise, false.

    Methods

    | Improve this Doc View Source

    ToString()

    Returns a String that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A String that represents this instance.

    Overrides
    Object.ToString()
    • Improve this Doc
    • View Source
    © 2025 by Michael Conrad. All rights reserved. - MichaCo.net