Class DnsMessage
Represents an answer to a DNS query, generated by a DNS server.
Namespace: Ae.Dns.Protocol
Assembly: Ae.Dns.Protocol.dll
Syntax
public sealed class DnsMessage : IEquatable<DnsMessage>, IDnsByteArrayReader, IDnsByteArrayWriter
Properties
| Improve this Doc View SourceAdditional
The list of additional DNS resources returned by the server.
Declaration
public IList<DnsResourceRecord> Additional { get; set; }
Property Value
Type | Description |
---|---|
IList<DnsResourceRecord> | Gets or sets the list representing DnsResourceRecord values returned by the DNS server. |
Answers
The list of DNS resources returned by the server.
Declaration
public IList<DnsResourceRecord> Answers { get; set; }
Property Value
Type | Description |
---|---|
IList<DnsResourceRecord> | Gets or sets the list representing DnsResourceRecord values returned by the DNS server. |
Header
The DnsHeader section of this answer.
Declaration
public DnsHeader Header { get; set; }
Property Value
Type | Description |
---|---|
DnsHeader | Gets or sets the DnsHeader, which describes the original DNS query. |
Nameservers
The list of name server DNS resources returned by the server.
Declaration
public IList<DnsResourceRecord> Nameservers { get; set; }
Property Value
Type | Description |
---|---|
IList<DnsResourceRecord> | Gets or sets the list representing DnsResourceRecord values returned by the DNS server. |
Methods
| Improve this Doc View SourceEquals(DnsMessage)
Declaration
public bool Equals(DnsMessage other)
Parameters
Type | Name | Description |
---|---|---|
DnsMessage | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
ReadBytes(ReadOnlyMemory<Byte>, ref Int32)
Read from the specified byte array, starting at the specified offset.
Declaration
public void ReadBytes(ReadOnlyMemory<byte> bytes, ref int offset)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyMemory<Byte> | bytes | The byte array to read from. |
Int32 | offset | The offset to start at. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
WriteBytes(Memory<Byte>, ref Int32)
Write to the the specified byte array.
Declaration
public void WriteBytes(Memory<byte> bytes, ref int offset)
Parameters
Type | Name | Description |
---|---|---|
Memory<Byte> | bytes | The byte array to read from. |
Int32 | offset | The offset to start at. |