Class DnsResourceRecord
Represents metadata around a DNS resource record returned by a DNS server.
Inheritance
DnsResourceRecord
Assembly: Ae.Dns.Protocol.dll
Syntax
public sealed class DnsResourceRecord : IEquatable<DnsResourceRecord>, IDnsByteArrayReader, IDnsByteArrayWriter
Properties
|
Improve this Doc
View Source
Class
Declaration
public DnsQueryClass Class { get; set; }
Property Value
|
Improve this Doc
View Source
Host
The host name associated with this record.
Declaration
public string Host { get; set; }
Property Value
|
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
|
Improve this Doc
View Source
TimeToLive
The time to live entry for this record, in seconds.
Declaration
public uint TimeToLive { get; set; }
Property Value
|
Improve this Doc
View Source
Type
Declaration
public DnsQueryType Type { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(DnsResourceRecord)
Declaration
public bool Equals(DnsResourceRecord other)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
|
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
|
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