Show / Hide Table of Contents

Class DnsResourceRecord

Represents metadata around a DNS resource record returned by a DNS server.

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

Properties

| Improve this Doc View Source

Class

The class of DNS query.

Declaration
public DnsQueryClass Class { get; set; }
Property Value
Type Description
DnsQueryClass
| Improve this Doc View Source

Host

The host name associated with this record.

Declaration
public string Host { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

Resource

The value of this DNS record, which should be cast to the appropriate resource record type class depending on the Type.

Declaration
public IDnsResource Resource { get; set; }
Property Value
Type Description
IDnsResource
| Improve this Doc View Source

TimeToLive

The time to live entry for this record, in seconds.

Declaration
public uint TimeToLive { get; set; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

Type

The type of DNS query.

Declaration
public DnsQueryType Type { get; set; }
Property Value
Type Description
DnsQueryType

Methods

| Improve this Doc View Source

Equals(DnsResourceRecord)

Declaration
public bool Equals(DnsResourceRecord other)
Parameters
Type Name Description
DnsResourceRecord 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