Rust

validator

Module

Validators for DNS record names, CAA record values, and records as a DNS server serves them.

Contents

use utopia_dns::validator::Caa;
Rust
pub struct Caa

A 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.

Also implements Validator.
use utopia_dns::validator::Dns;
Rust
pub struct Dns

Whether 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;
Rust
pub struct DnsCheck

What a Dns validation found.

use utopia_dns::validator::Name;
Rust
pub struct Name

A 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.

Also implements Validator.