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

View Source

EDNS0.Option.Chain RFC7901

The CHAIN option is used to request DNSSEC chain responses from authoritative servers.

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 = 13 | OPTION-LENGTH = 2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | START-HASH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  • START-HASH: 2 octets, DNSSEC algorithm identifier for the start of the chain

Summary

Types

t()

@type t() :: %DNS.Message.EDNS0.Option.Chain{
  code: DNS.Message.EDNS0.OptionCode.t(),
  data: start_hash :: 0..65535,
  length: 2
}

Functions

from_iodata(arg)

new(start_hash)

@spec new(integer()) :: t()