Class EdnsOption
Contains some information on an Extended DNS option.
Inheritance
EdnsOption
Inherited Members
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public abstract class EdnsOption
Remarks
EdnsOptions are found in the OPTRecord.
The EdnsOptionRegistry contains the metadata on known EDNS options. When reading, if the registry does not contain the record, then an UnknownEdnsOption is used.
Properties
| Improve this Doc View SourceType
The option type.
Declaration
public EdnsOptionType Type { get; set; }
Property Value
Type | Description |
---|---|
EdnsOptionType | A code to specify the type of EDNS option. |
Remarks
Codes are specified in IANA - DNS EDNS0 Option Codes.
Methods
| Improve this Doc View SourceReadData(WireReader, Int32)
Read the data that is specific to the option Type.
Declaration
public abstract void ReadData(WireReader reader, int length)
Parameters
Type | Name | Description |
---|---|---|
WireReader | reader | The source of the option's data. |
Int32 | length | The length, in bytes, of the data. |
Remarks
Derived classes must implement this method.
WriteData(WireWriter)
Write the data that is specific to the resource record Type.
Declaration
public abstract void WriteData(WireWriter writer)
Parameters
Type | Name | Description |
---|---|---|
WireWriter | writer | The destination for the option's data. |
Remarks
Derived classes must implement this method.