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

View Source

DNS TLSA Record (Type 52)

The TLSA record is used to associate a TLS server certificate or public key with the domain name where the record is found, using DNSSEC for authenticity.

RFC 6698 defines the TLSA record format:

  • Usage: 1 octet
  • Selector: 1 octet
  • Matching Type: 1 octet
  • Certificate Association Data: variable length

Summary

Types

t()

@type t() :: %DNS.Message.Record.Data.TLSA{
  data:
    {usage :: 0..255, selector :: 0..255, matching_type :: 0..255,
     cert_data :: 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(), integer(), integer(), binary()}) :: t()