DNS.Message.EDNS0.Option.ExtendedDNSError (DNS v0.4.1)

View Source

EDNS0.Option.ExtendedDNSError RFC8914

The Extended DNS Error (EDE) option provides additional error information beyond the basic DNS RCODE.

Option Format:

                  1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTION-CODE = 15 | OPTION-LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | INFO-CODE | EXTRA-TEXT | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  • INFO-CODE: 2 octets, extended error code
  • EXTRA-TEXT: Variable length, human-readable error text (UTF-8)

Summary

Types

t()

@type t() :: %DNS.Message.EDNS0.Option.ExtendedDNSError{
  code: DNS.Message.EDNS0.OptionCode.t(),
  data: {info_code :: 0..65535, extra_text :: binary()},
  length: 2..65535
}

Functions

from_iodata(arg)

new(arg)

@spec new({integer(), binary()}) :: t()