DNS.Message.Record.Data.CAA (DNS v0.4.1)

View Source

DNS CAA Record (Type 257)

The CAA (Certification Authority Authorization) record allows domain owners to specify which certificate authorities are authorized to issue certificates for their domain.

RFC 6844 defines the CAA record format:

  • Flags: 1 octet
  • Tag Length: 1 octet
  • Tag: variable length
  • Value: variable length

Summary

Types

t()

@type t() :: %DNS.Message.Record.Data.CAA{
  data: {flags :: 0..255, tag :: binary(), value :: binary()},
  raw: bitstring(),
  rdlength: 0..65535,
  type: DNS.ResourceRecordType.t()
}

Functions

from_iodata(raw, message \\ nil)

@spec from_iodata(bitstring(), bitstring() | nil) :: t()

new(arg)

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