DnsResponseHeader Class

Represents the header of a DNS response message.

public sealed class DnsResponseHeader

Constructors

NameDescription
DnsResponseHeader()

DnsResponseHeader()

public DnsResponseHeader()

No documentation is available.

Properties

NameDescription
AdditionalCountGets the number of additional records.
AnswerCountGets the number of answer records.
AuthenticatedDataGets a value indicating whether the response data has been authenticated by the server (DNSSEC).
AuthorityCountGets the number of authority records.
CheckingDisabledGets a value indicating whether checking was disabled (DNSSEC).
IdGets the query identifier.
IsAuthoritativeGets a value indicating whether the responding server is authoritative for the queried domain.
IsResponseGets a value indicating whether this is a response (true) or query (false).
IsTruncatedGets a value indicating whether the message was truncated.
OpCodeGets the operation code.
QuestionCountGets the number of questions.
RecursionAvailableGets a value indicating whether recursion is available on the server.
RecursionDesiredGets a value indicating whether recursion was desired in the query.
ResponseCodeGets the response code.

AdditionalCount

DnsResponseHeader.cs

Gets the number of additional records.

public ushort AdditionalCount { get; }

Property value

ushort

Gets the number of answer records.

public ushort AnswerCount { get; }

Property value

ushort

AuthenticatedData

DnsResponseHeader.cs

Gets a value indicating whether the response data has been authenticated by the server (DNSSEC).

public bool AuthenticatedData { get; }

Property value

bool

AuthorityCount

DnsResponseHeader.cs

Gets the number of authority records.

public ushort AuthorityCount { get; }

Property value

ushort

CheckingDisabled

DnsResponseHeader.cs

Gets a value indicating whether checking was disabled (DNSSEC).

public bool CheckingDisabled { get; }

Property value

bool

Gets the query identifier.

public ushort Id { get; }

Property value

ushort

IsAuthoritative

DnsResponseHeader.cs

Gets a value indicating whether the responding server is authoritative for the queried domain.

public bool IsAuthoritative { get; }

Property value

bool

Gets a value indicating whether this is a response (true) or query (false).

public bool IsResponse { get; }

Property value

bool

Gets a value indicating whether the message was truncated.

public bool IsTruncated { get; }

Property value

bool

Gets the operation code.

public DnsOpCode OpCode { get; }

Property value

DnsOpCode

Gets the number of questions.

public ushort QuestionCount { get; }

Property value

ushort

RecursionAvailable

DnsResponseHeader.cs

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

public bool RecursionAvailable { get; }

Property value

bool

RecursionDesired

DnsResponseHeader.cs

Gets a value indicating whether recursion was desired in the query.

public bool RecursionDesired { get; }

Property value

bool

Gets the response code.

public DnsResponseCode ResponseCode { get; }

Property value

DnsResponseCode