DnsRecord Class

Base class for all DNS resource records.

public abstract class DnsRecord

Constructors

NameDescription
DnsRecord()

DnsRecord()

DnsRecord.cs
protected DnsRecord()

No documentation is available.

Properties

NameDescription
DataLengthGets the length of the resource data in bytes.
NameGets the domain name this record belongs to.
RecordClassGets the record class.
RecordTypeGets the record type.
TimeToLiveGets the time to live in seconds.

DataLength

DnsRecord.cs

Gets the length of the resource data in bytes.

public ushort DataLength { get; }

Property value

ushort

Gets the domain name this record belongs to.

public string Name { get; }

Property value

string

RecordClass

DnsRecord.cs

Gets the record class.

public DnsQueryClass RecordClass { get; }

Property value

DnsQueryClass

RecordType

DnsRecord.cs

Gets the record type.

public DnsQueryType RecordType { get; }

Property value

DnsQueryType

TimeToLive

DnsRecord.cs

Gets the time to live in seconds.

public uint TimeToLive { get; }

Property value

uint