DnsOptRecord Class

Represents a DNS OPT pseudo-record for EDNS(0) (RFC 6891). This record appears in the additional section and carries extension information.

public sealed class DnsOptRecord : DnsRecord
Inheritance
DnsRecord DnsOptRecord

Constructors

NameDescription
DnsOptRecord()

DnsOptRecord()

DnsOptRecord.cs
public DnsOptRecord()

No documentation is available.

Properties

NameDescription
DnssecOkGets a value indicating whether the DNSSEC OK (DO) flag is set.
EdnsVersionGets the EDNS version.
ExtendedRCodeGets the extended RCODE (upper 8 bits, combined with the message header RCODE).
OptionsGets the EDNS options.
UdpPayloadSizeGets the requestor's UDP payload size (encoded in the CLASS field).

Gets a value indicating whether the DNSSEC OK (DO) flag is set.

public bool DnssecOk { get; }

Property value

bool

EdnsVersion

DnsOptRecord.cs

Gets the EDNS version.

public byte EdnsVersion { get; }

Property value

byte

ExtendedRCode

DnsOptRecord.cs

Gets the extended RCODE (upper 8 bits, combined with the message header RCODE).

public byte ExtendedRCode { get; }

Property value

byte

Gets the EDNS options.

public IReadOnlyList<DnsEdnsOption> Options { get; }

UdpPayloadSize

DnsOptRecord.cs

Gets the requestor's UDP payload size (encoded in the CLASS field).

public ushort UdpPayloadSize { get; }

Property value

ushort