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

View Source

EDNS0.Option.UpdateLease [RFC-ietf-dnssd-update-lease-08]

The Update Lease option is used in DNS-SD (DNS Service Discovery) to indicate the lease duration for resource record updates.

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 = 2 | OPTION-LENGTH = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LEASE-LIFETIME | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  • LEASE-LIFETIME: 4 octets, lease duration in seconds

Summary

Types

t()

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

Functions

from_iodata(arg)

new(lease_lifetime)

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