SaltDns. Zones. Rdata
(Salt v1.0.0)
Parsing, canonical presentation form and wire encoding of record data for the record types Salt DNS manages.
Input is the presentation (zone file) form of the rdata. Names inside rdata are always absolute; a missing trailing dot is accepted and means the same thing. The canonical form has lower-case absolute names with a trailing dot, upper-case hex, canonical IP text, and TXT as quoted strings of at most 255 bytes separated by one space.
Parsing yields dns_erlang rdata tuples, which to_wire/2 encodes with
dns_erlang. Everything here is pure.
Summary
Functions
Parses rdata and returns its canonical presentation form.
Decodes uncompressed wire-format rdata to its canonical presentation form.
Parses presentation-form rdata into a dns_erlang rdata tuple.
Renders a dns_erlang rdata tuple in canonical presentation form.
Encodes presentation-form rdata to uncompressed wire format with dns_erlang.
The numeric type code of a mnemonic.
The record types this module handles, as upper-case mnemonics.
Types
Functions
Parses rdata and returns its canonical presentation form.
Decodes uncompressed wire-format rdata to its canonical presentation form.
Parses presentation-form rdata into a dns_erlang rdata tuple.
Renders a dns_erlang rdata tuple in canonical presentation form.
Encodes presentation-form rdata to uncompressed wire format with dns_erlang.
@spec type_code(String.t()) :: {:ok, non_neg_integer()} | :error
The numeric type code of a mnemonic.
@spec types() :: [String.t()]
The record types this module handles, as upper-case mnemonics.