Karta.DNS.RRSet (Karta v1.0.0)

One RRset of a DNS zone (Karta.DNS.Zone): its absolute name in lower case, its type, its TTL, its contents in zone-file presentation form and its owner tag.

The owner tag says that Karta wrote the RRset: "karta:<domain id>". The tag is what a provider stores with the records (a PowerDNS comment, an entry in the RFC 2136 provider's inventory) and what keeps Karta from changing or removing a record someone else wrote, including another domain's records in the same zone. nil means Karta did not write it.

Summary

Functions

True when Karta wrote the RRset for this domain.

The owner tag Karta writes with a domain's records.

Types

t()

@type t() :: %Karta.DNS.RRSet{
  name: String.t(),
  owner: String.t() | nil,
  records: [String.t()],
  ttl: non_neg_integer() | nil,
  type: String.t(),
  zone: String.t() | nil
}

Functions

owned?(rr_set, domain_id)

@spec owned?(t(), String.t()) :: boolean()

True when Karta wrote the RRset for this domain.

owner(domain_id)

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

The owner tag Karta writes with a domain's records.