Domain Detective

API Reference

Class

EdnsOption

Namespace DnsClientX
Assembly DnsClientX
Modifiers abstract

Base class for EDNS options.

Inheritance

  • Object
  • EdnsOption

Remarks

All specific EDNS option implementations derive from this type.

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

Constructors

EdnsOption(System.UInt16 code) #

Initializes a new instance of the EdnsOption class.

Parameters

code System.UInt16 required
EDNS option code.

Methods

GetData() #

Retrieves the option data portion.

Returns

Raw option data without the code and length.

ToByteArray() #

Serializes the option to a byte array.

Returns

Byte array containing the serialized option.

Properties

public UInt16 Code { get; } #

Gets the option code as defined in RFC 6891.

{{ include "footer" }}