Class OPTRecord
An extension mechanism for DNS (EDNS(0)).
Inherited Members
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public class OPTRecord : ResourceRecord, IWireSerialiser, ICloneable, IPresentationSerialiser
Remarks
An OPT record does not carry any DNS data. It is used only to contain control information pertaining to the question-and-answer sequence of a specific transaction. OPT RRs MUST NOT be cached, forwarded, or stored in or loaded from master files.
The OPTRecord can be present in the AdditionalRecords section.
note
The Class property is repurposed to specify the requestor's payload size.
Constructors
| Improve this Doc View SourceOPTRecord()
Creates a new instance of the OPTRecord class.
Declaration
public OPTRecord()
Properties
| Improve this Doc View SourceDO
The DNSSEC OK bit as defined by RFC3225.
Declaration
public bool DO { get; set; }
Property Value
Type | Description |
---|---|
Boolean | Defaults to false. |
Remarks
The TTL property is repurposed to specify the version.
See Also
| Improve this Doc View SourceOpcode8
The most significant 8 bits of the opcode.
Declaration
public byte Opcode8 { get; set; }
Property Value
Type | Description |
---|---|
Byte | Defaults to zero. |
Remarks
The TTL property is repurposed to specify the opcode's most significant bits.
See Also
| Improve this Doc View SourceOptions
The extended DNS options.
Declaration
public List<EdnsOption> Options { get; set; }
Property Value
Type | Description |
---|---|
List<EdnsOption> | The EDNS option sequence. |
RequestorPayloadSize
The maximimum packet size that can be received by the requestor.
Declaration
public ushort RequestorPayloadSize { get; set; }
Property Value
Type | Description |
---|---|
UInt16 | Specified in number of bytes. Defaults to 1280, which is reasonable over Ethernet. |
Remarks
The Class property is repurposed to specify the requestor's payload size.
See Also
| Improve this Doc View SourceVersion
The EDNS version.
Declaration
public byte Version { get; set; }
Property Value
Type | Description |
---|---|
Byte | Defaults to zero. |
Remarks
The TTL property is repurposed to specify the version.
Methods
| Improve this Doc View SourceReadData(WireReader, Int32)
Read the data that is specific to the resource record Type.
Declaration
public override void ReadData(WireReader reader, int length)
Parameters
Type | Name | Description |
---|---|---|
WireReader | reader | The source of the resource record's data. |
Int32 | length | The length, in bytes, of the data. |
Overrides
Remarks
Derived classes must implement this method.
ToString()
Returns the textual representation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The presentation format of this resource record. |
Overrides
| Improve this Doc View SourceWriteData(WireWriter)
Write the data that is specific to the resource record Type.
Declaration
public override void WriteData(WireWriter writer)
Parameters
Type | Name | Description |
---|---|---|
WireWriter | writer | The destination for the DNS object's data. |
Overrides
Remarks
Derived classes must implement this method.