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

View Source

DNS DNSKEY Record (Type 48)

The DNSKEY record contains a public key used in DNSSEC to verify signatures. It is used to authenticate records in DNSSEC-signed zones.

RFC 4034 defines the DNSKEY record format:

  • Flags: 2 octets
  • Protocol: 1 octet (must be 3 for DNSSEC)
  • Algorithm: 1 octet
  • Public Key: variable length (base64 encoded)

Summary

Types

t()

@type t() :: %DNS.Message.Record.Data.DNSKEY{
  data:
    {flags :: 0..65535, protocol :: 0..255, algorithm :: 0..255,
     public_key :: 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()