validator
ModuleValidators for DNS record names, CAA record values, and records as a DNS server serves them.
Contents
use utopia_dns::validator::Caa;pub struct CaaA CAA record value: <flags> <tag> "<value>", flags a number in
0..=255, the value quoted and not empty.
A valid value leaves the description as it was; an invalid one sets it to the reason.
Validator.use utopia_dns::validator::Dns;pub struct DnsWhether a domain's records of one type, as a DNS server answers them,
include a target value. For CAA the target is the issuer domain
(letsencrypt.org), and a domain without CAA records inherits its
parent's, up to the apex, where none means anyone may issue.
Validation queries the server, so it is async and reports what it
found (DnsCheck) for Dns::describe.
use utopia_dns::validator::DnsCheck;pub struct DnsCheckWhat a Dns validation found.
use utopia_dns::validator::Name;pub struct NameA record owner name: labels of letters, digits and hyphens (not at
either end), a leading * wildcard label, @ for the zone apex, and a
trailing dot. Underscores (RFC 8552) are allowed except for A and
AAAA owners, which must be host names.
A valid value leaves the description as it was; an invalid one sets it to the reason.
Validator.