DnsMessage Class
Represents a unified DNS message used for both incoming queries and outgoing responses.
public sealed class DnsMessageConstructors
| Name | Description |
|---|---|
| DnsMessage() |
DnsMessage()
DnsMessage.cspublic DnsMessage()No documentation is available.
Properties
| Name | Description |
|---|---|
| AdditionalRecords | Gets the additional records section. |
| Answers | Gets the answer section. |
| AuthenticatedData | Gets or sets a value indicating whether the data has been authenticated (DNSSEC). |
| Authorities | Gets the authority section. |
| CheckingDisabled | Gets or sets a value indicating whether checking is disabled (DNSSEC). |
| EdnsOptions | Gets or sets the EDNS options. Null if EDNS is not used. |
| Id | Gets or sets the message identifier. |
| IsAuthoritative | Gets or sets a value indicating whether this is an authoritative answer. |
| IsResponse | Gets or sets a value indicating whether this message is a response. |
| IsTruncated | Gets or sets a value indicating whether the message was truncated. |
| OpCode | Gets or sets the operation code. |
| Questions | Gets the question section. |
| RecursionAvailable | Gets or sets a value indicating whether recursion is available. |
| RecursionDesired | Gets or sets a value indicating whether recursion is desired. |
| ResponseCode | Gets or sets the response code. |
AdditionalRecords
DnsMessage.csGets the additional records section.
public IList<DnsResourceRecord> AdditionalRecords { get; }Property value
Answers
DnsMessage.csAuthenticatedData
DnsMessage.csAuthorities
DnsMessage.csCheckingDisabled
DnsMessage.csEdnsOptions
DnsMessage.csGets or sets the EDNS options. Null if EDNS is not used.
public DnsEdnsOptions? EdnsOptions { get; set; }