Karta.DNS.Records (Karta v1.0.0)

The zone-file presentation form of the records Karta publishes, shared by the publishers and the providers:

  • a TXT value as one RR's content: strings of at most 255 octets, quoted and separated by spaces, as PowerDNS writes them;
  • a name in absolute form: lower case with the final dot.

Karta.DNS.Wire understands the same escapes when it encodes a record.

Summary

Functions

A name in absolute form: lower case, with the final dot.

A value split into strings of at most 255 octets (RFC 1035 §3.3).

TXT character-strings as one RR's content, quoted and separated by spaces.

A TXT value as one RR's content, quoted as PowerDNS writes it.

A TXT value's character-strings, from its presentation content.

The value of a TXT RR as PowerDNS writes it: its strings joined.

Functions

absolute(name)

@spec absolute(String.t()) :: String.t()

A name in absolute form: lower case, with the final dot.

chunks(value)

@spec chunks(String.t()) :: [String.t()]

A value split into strings of at most 255 octets (RFC 1035 §3.3).

quote_strings(strings)

@spec quote_strings([String.t()]) :: String.t()

TXT character-strings as one RR's content, quoted and separated by spaces.

txt(value)

@spec txt(String.t()) :: String.t()

A TXT value as one RR's content, quoted as PowerDNS writes it.

txt_strings(content)

@spec txt_strings(String.t()) :: [String.t()]

A TXT value's character-strings, from its presentation content.

txt_value(content)

@spec txt_value(String.t()) :: String.t()

The value of a TXT RR as PowerDNS writes it: its strings joined.