Module opt

Source
Expand description

Record data for OPT records.

Since DNS message headers are relatively short, the amount of information that can be conveyed through them is very limited. In order to provide an extensible means to transmit additional information, RFC 6891 introduces a resource record called OPT that can be added to the additional section of a message. The record data in turn consists of a sequence of options.

This module contains the types for working with both the OPT record and its record data. It defines types for each of the currently defined options. As with record data types in the rdata module, these are arranged in sub-modules according to the RFC that defined them and then re-exported here.

Re-exports§

pub use self::algsig::Dau;
pub use self::algsig::Dhu;
pub use self::algsig::N3u;
pub use self::chain::Chain;
pub use self::cookie::Cookie;
pub use self::expire::Expire;
pub use self::exterr::ExtendedError;
pub use self::keepalive::TcpKeepalive;
pub use self::keytag::KeyTag;
pub use self::nsid::Nsid;
pub use self::padding::Padding;
pub use self::subnet::ClientSubnet;

Modules§

algsig
EDNS options for signaling cryptographic algorithm understanding.
chain
EDNS option to request the complete DNSSEC validation chain.
cookie
EDNS Option for DNS cookies.
expire
EDNS Options for signalling zone expire times.
exterr
EDNS option for extended DNS errors.
keepalive
EDNS options to signal a variable TCP connection timeout.
keytag
EDNS options to signal the trust anchor key used in DNSSEC validation.
nsid
ENDS option to provide a Name Server Identifer.
padding
EDNS options for paddin message sizes.
subnet
EDNS option for carrying client subnet information.

Structs§

LongOptData
The octets sequence to be used for option data is too long.
Opt
OPT record data.
OptHeader
The header of an OPT record.
OptIter
An iterator over the options of an OPT record.
OptRecord
An entire OPT record.
OptionHeader
The header of an OPT option.
UnknownOptData
An OPT option in its raw form.

Enums§

AllOptData
BuildDataError
An error happened while constructing an SVCB value.

Traits§

ComposeOptData
An OPT option that can be written to wire format.
OptData
A type representing an OPT option.
ParseOptData
An OPT option that can be parsed from the record data.