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

View Source

EDNS0.Option.LLQ RFC8764

The DNS Long-Lived Queries (LLQ) option is used to enable DNS clients to receive asynchronous notifications when resource records change.

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 = 1 | OPTION-LENGTH = 18 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LLQ-Version | LLQ-Opcode | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LLQ-ID | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LLQ-LEASE-LIFE | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  • LLQ-Version: 2 octets, must be set to 1
  • LLQ-Opcode: 2 octets, identifies the LLQ operation
  • LLQ-ID: 8 octets, unique identifier for the LLQ
  • LLQ-LEASE-LIFE: 4 octets, lease duration in seconds

Summary

Types

t()

@type t() :: %DNS.Message.EDNS0.Option.LLQ{
  code: DNS.Message.EDNS0.OptionCode.t(),
  data:
    {version :: 0..65535, opcode :: 0..65535, id :: <<_::64>>,
     lease_life :: 0..4_294_967_295},
  length: 18
}

Functions

from_iodata(arg)

new(arg)

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