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

View Source

EDNS0.Option.Expire RFC7314

The EDNS EXPIRE option is used to communicate the remaining time until a cached resource record expires.

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 = 9 | OPTION-LENGTH = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | EXPIRE-TIME | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  • EXPIRE-TIME: 4 octets, remaining time until expiration in seconds

Summary

Types

t()

@type t() :: %DNS.Message.EDNS0.Option.Expire{
  code: DNS.Message.EDNS0.OptionCode.t(),
  data: expire_time :: 0..4_294_967_295,
  length: 4
}

Functions

from_iodata(arg)

new(expire_time)

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