Class DnsResponseHeader
The header section of a IDnsQueryResponse.
Inherited Members
Namespace: DnsClient
Assembly: DnsClient.dll
Syntax
public class DnsResponseHeader
Constructors
| Improve this Doc View SourceDnsResponseHeader(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 SourceAdditionalCount
Gets the number of additional records in the IDnsQueryResponse.
Declaration
public int AdditionalCount { get; }
Property Value
Type | Description |
---|---|
Int32 | The number of additional records. |
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. |
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. |
HasAuthorityAnswer
Gets a value indicating whether this instance has authority answers.
Declaration
public bool HasAuthorityAnswer { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
HasQuery
Gets a value indicating whether this instance has a query.
Declaration
public bool HasQuery { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Id
Gets the identifier.
Declaration
public int Id { get; }
Property Value
Type | Description |
---|---|
Int32 | The identifier. |
IsAuthenticData
Gets a value indicating whether the result is authentic data.
Declaration
public bool IsAuthenticData { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsCheckingDisabled
Gets a value indicating whether checking is disabled.
Declaration
public bool IsCheckingDisabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
NameServerCount
Gets the number of name servers.
Declaration
public int NameServerCount { get; }
Property Value
Type | Description |
---|---|
Int32 | The number of name servers. |
OPCode
Gets the kind of query defined by DnsOpCode.
Declaration
public DnsOpCode OPCode { get; }
Property Value
Type | Description |
---|---|
DnsOpCode | The query kind. |
QuestionCount
Gets the number of questions of the IDnsQueryResponse.
Declaration
public int QuestionCount { get; }
Property Value
Type | Description |
---|---|
Int32 | The number of questions. |
RecursionAvailable
Gets a value indicating whether recursion is available on the DNS server.
Declaration
public bool RecursionAvailable { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
RecursionDesired
Gets a value indicating whether recursion desired flag was set by the request.
Declaration
public bool RecursionDesired { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
ResponseCode
Gets the response code.
Declaration
public DnsHeaderResponseCode ResponseCode { get; }
Property Value
Type | Description |
---|---|
DnsHeaderResponseCode | The response code. |
ResultTruncated
Gets a value indicating whether the result was truncated.
Declaration
public bool ResultTruncated { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
| Improve this Doc View SourceToString()
Returns a String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents this instance. |