SaltDns. Zones. Zone
(Salt v1.0.0)
A DNS zone owned by an organisation.
The name is stored lower-case, as A-labels, without a trailing dot. It cannot be changed after creation. The SOA timers are in seconds; the SOA serial belongs to the Knot bridge.
Ownership
Several organisations may prepare the same name, but only one may hold it
active: the database allows one active zone per name and one
not-disabled zone per name and organisation. A new zone is pending and
has a random verification_token; SaltDns.Ownership activates it when
the zone is delegated to Salt DNS or the token is published in
_salt-dns-challenge.<zone>. The other verification_* fields record how
and when, the last check and why a zone is not (or no longer) verified.
Summary
Functions
Changeset for a new zone of organisation. The name is normalised.
The unique-name constraints, for changesets that change a zone's name or status.
Changeset for changing a zone's settings. The name cannot change.
Types
@type t() :: %SaltDns.Zones.Zone{ __meta__: term(), default_ttl: term(), dnssec: term(), id: term(), inserted_at: term(), last_checked_at: term(), name: term(), organisation: term(), organisation_id: term(), ownership_lost_since: term(), rrsets: term(), soa_expire: term(), soa_minimum: term(), soa_refresh: term(), soa_retry: term(), status: term(), updated_at: term(), verification_detail: term(), verification_method: term(), verification_reason: term(), verification_started_at: term(), verification_token: term(), verified_at: term(), version: term() }
Functions
@spec create_changeset(t(), map(), SaltDns.Accounts.Organisation.t()) :: Ecto.Changeset.t()
Changeset for a new zone of organisation. The name is normalised.
@spec unique_names(Ecto.Changeset.t()) :: Ecto.Changeset.t()
The unique-name constraints, for changesets that change a zone's name or status.
@spec update_changeset(t(), map(), SaltDns.Accounts.Organisation.t()) :: Ecto.Changeset.t()
Changeset for changing a zone's settings. The name cannot change.