Show / Hide Table of Contents

Class DnsMessage

Represents an answer to a DNS query, generated by a DNS server.

Inheritance
Object
DnsMessage
Implements
IDnsByteArrayReader
IDnsByteArrayWriter
Namespace: Ae.Dns.Protocol
Assembly: Ae.Dns.Protocol.dll
Syntax
public sealed class DnsMessage : IEquatable<DnsMessage>, IDnsByteArrayReader, IDnsByteArrayWriter

Properties

| Improve this Doc View Source

Additional

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

Equals(DnsMessage)

Declaration
public bool Equals(DnsMessage other)
Parameters
Type Name Description
DnsMessage other
Returns
Type Description
Boolean
| Improve this Doc View Source

Equals(Object)

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

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
| Improve this Doc View Source

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.

| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
| Improve this Doc View Source

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.

Implements

IDnsByteArrayReader
IDnsByteArrayWriter
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX