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

    The response returned by any query performed by IDnsQuery with all answer sections, header and message information.

    Inheritance
    Object
    DnsQueryResponse
    Implements
    IDnsQueryResponse
    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: DnsClient
    Assembly: DnsClient.dll
    Syntax
    public class DnsQueryResponse : IDnsQueryResponse

    Properties

    | Improve this Doc View Source

    Additionals

    Gets a list of additional records.

    Declaration
    public IReadOnlyList<DnsResourceRecord> Additionals { get; }
    Property Value
    Type Description
    IReadOnlyList<DnsResourceRecord>
    | Improve this Doc View Source

    AllRecords

    Gets a list of all answers, addtional and authority records.

    Declaration
    public IEnumerable<DnsResourceRecord> AllRecords { get; }
    Property Value
    Type Description
    IEnumerable<DnsResourceRecord>
    | Improve this Doc View Source

    Answers

    Gets a list of answer records.

    Declaration
    public IReadOnlyList<DnsResourceRecord> Answers { get; }
    Property Value
    Type Description
    IReadOnlyList<DnsResourceRecord>
    | Improve this Doc View Source

    AuditTrail

    Gets the audit trail if EnableAuditTrail. as set to true, null otherwise.

    Declaration
    public string AuditTrail { get; }
    Property Value
    Type Description
    String

    The audit trail.

    | Improve this Doc View Source

    Authorities

    Gets a list of authority records.

    Declaration
    public IReadOnlyList<DnsResourceRecord> Authorities { get; }
    Property Value
    Type Description
    IReadOnlyList<DnsResourceRecord>
    | Improve this Doc View Source

    ErrorMessage

    Returns a string value representing the error response code in case an error occured, otherwise 'NoError'.

    Declaration
    public string ErrorMessage { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    HasError

    A flag indicating if the header contains a response codde other than NoError.

    Declaration
    public bool HasError { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Header

    Gets the header of the response.

    Declaration
    public DnsResponseHeader Header { get; }
    Property Value
    Type Description
    DnsResponseHeader
    | Improve this Doc View Source

    MessageSize

    Gets the size of the message.

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

    The size of the message.

    | Improve this Doc View Source

    NameServer

    Gets the name server which responded with this result.

    Declaration
    public NameServer NameServer { get; }
    Property Value
    Type Description
    NameServer

    The name server.

    | Improve this Doc View Source

    Questions

    Gets the list of questions.

    Declaration
    public IReadOnlyList<DnsQuestion> Questions { get; }
    Property Value
    Type Description
    IReadOnlyList<DnsQuestion>
    | Improve this Doc View Source

    Settings

    Gets the settings used to produce this response.

    Declaration
    public DnsQuerySettings Settings { get; }
    Property Value
    Type Description
    DnsQuerySettings

    Methods

    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    Implements

    IDnsQueryResponse

    See Also

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