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

View Source

DNS DS Record (Type 43)

The DS (Delegation Signer) record is used in DNSSEC to establish a chain of trust between parent and child zones. It contains a hash of a DNSKEY record.

RFC 4034 defines the DS record format:

  • Key Tag: 2 octets
  • Algorithm: 1 octet
  • Digest Type: 1 octet
  • Digest: variable length

Summary

Types

t()

@type t() :: %DNS.Message.Record.Data.DS{
  data:
    {key_tag :: 0..65535, algorithm :: 0..255, digest_type :: 0..255,
     digest :: 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()