Show / Hide Table of Contents

Class EdnsOption

Contains some information on an Extended DNS option.

Inheritance
Object
EdnsOption
EdnsDAUOption
EdnsDHUOption
EdnsKeepaliveOption
EdnsN3UOption
EdnsNSIDOption
EdnsPaddingOption
UnknownEdnsOption
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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 Source

Type

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 Source

ReadData(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.

| Improve this Doc View Source

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.

See Also

OPTRecord
IANA - DNS EDNS0 Option Codes
  • Improve this Doc
  • View Source
Back to top Generated by DocFX