DNS design#
Every record in the zone, why it is there, and — more interestingly — the records that are deliberately absent.
The zone as deployed#
The table below is generated from tofu output -json site_facts at build time. It is not a hand-maintained list, so it cannot describe a zone that no longer exists.
| Name | Type | Specification | Why it exists |
|---|---|---|---|
| testz.dev | A | RFC 1035 | IPv4 alias to the CloudFront distribution. |
| www.testz.dev | A | RFC 1035 | IPv4 alias to the CloudFront distribution. |
| testz.dev | AAAA | RFC 3596 | IPv6 alias to the same distribution. Dual-stack from day one. |
| www.testz.dev | AAAA | RFC 3596 | IPv6 alias to the same distribution. Dual-stack from day one. |
| testz.dev | HTTPS | RFC 9460 | Service binding. Advertises alpn=h2,h3 at resolution time so QUIC can be used on the first connection instead of after an Alt-Svc upgrade. |
| www.testz.dev | HTTPS | RFC 9460 | Service binding. Advertises alpn=h2,h3 at resolution time so QUIC can be used on the first connection instead of after an Alt-Svc upgrade. |
| testz.dev | CAA | RFC 8659 | Restricts certificate issuance to Amazon's CAs and forbids wildcards entirely. No iodef: there is no mailbox or IODEF receiver to report to. |
| testz.dev | MX | RFC 7505 | Null MX. Declares that the domain accepts no mail, so senders fail fast instead of falling back to the A record. |
| testz.dev | TXT | RFC 7208 | SPF authorising no sender at all (-all, a hard fail). |
| *._domainkey.testz.dev | TXT | RFC 6376 | Empty DKIM key, revoking every possible selector. |
| _dmarc.testz.dev | TXT | RFC 7489 | DMARC p=reject with strict alignment and sp=reject for subdomains. No rua= because there is no mailbox to receive reports. |
Addressing#
A and AAAA, both aliases to CloudFront. Route 53 alias records are a proprietary extension that gives CNAME-like behaviour at the zone apex, which plain DNS forbids — a CNAME at the apex would conflict with the mandatory SOA and NS records. The alternative on other providers is either a CNAME-flattening hack or hardcoding IP addresses.
IPv6 is not an afterthought. CloudFront serves it at no extra cost, and a v6-only client cannot reach a v4-only origin. evaluate_target_health is false because CloudFront is globally distributed — there is no single endpoint whose health could be meaningfully checked.
The HTTPS record (RFC 9460)#
The most interesting record in the zone, and the newest.
HTTPS is a specialisation of SVCB, both defined in RFC 9460. It moves connection metadata into the DNS response, which collapses a multi-round-trip discovery problem into the lookup you were already doing.
Without it, discovering HTTP/3 goes: resolve A/AAAA → TCP handshake → TLS handshake → HTTP/2 request → read Alt-Svc: h3=":443" (RFC 7838) → remember it → use QUIC on a later visit. First-time visitors never get HTTP/3 at all.
With it, the resolver returns alpn="h2,h3" alongside the addresses and a supporting client opens QUIC immediately.
It is published as a Route 53 alias targeting the distribution, so CloudFront populates the service parameters and keeps them current. Hardcoding alpn="h3,h2" in this repository would mean maintaining by hand a list that AWS is better placed to maintain — and it would rot silently.
The same record type is the delivery mechanism for Encrypted Client Hello keys, which is why ECH sits on the tech radar under Assess rather than being merely a performance tweak.
Certificate issuance policy: CAA#
0 issue "amazon.com"
0 issue "amazontrust.com"
0 issue "awstrust.com"
0 issue "amazonaws.com"
0 issuewild ";"
CAA (RFC 8659) is a real control rather than a decoration: publicly trusted CAs are contractually obliged to check it and refuse issuance that violates it. So a mis-issuance by any CA other than Amazon's becomes a policy violation with consequences, not merely an embarrassment.
issuewild ";" forbids wildcard certificates outright. This is only possible because the certificate names every host explicitly — see TLS for why no wildcard is used.
There is no iodef. It tells a CA where to report a refused issuance, and the target must be a mailbox or an https:// IODEF receiver (RFC 6546). This domain has neither, by the same decision as the section below, and a reporting address that silently goes nowhere is worse than none. Route 53 also rejected the first attempt, which pointed it at security.txt. Set caa_iodef_url if a real receiver ever exists.
Email: saying "no mail here" four times#
A domain with no mail records is more spoofable than one that forbids mail. With no MX, a sending server falls back to the A record and tries to deliver there; with no SPF or DMARC, a receiver has no policy to consult when someone forges From: you@yourdomain. Silence is not a default-deny.
So the absence is made explicit, four ways:
| Record | Value | Effect |
|---|---|---|
MX | 0 . | RFC 7505 null MX. A sending MTA stops immediately with a permanent failure instead of falling back to the A record. |
TXT @ apex | v=spf1 -all | Authorises zero senders (RFC 7208). -all is a hard fail, not ~all softfail — there is no legitimate sender to be lenient about. |
TXT @ *._domainkey | v=DKIM1; p= | An empty public key revokes every possible selector (RFC 6376 §3.6.1), so a forged signature cannot validate against a selector that was never published. |
TXT @ _dmarc | v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s; pct=100 | The policy statement (RFC 7489) tying the other three together. sp=reject covers subdomains without needing their own records. |
Note the SPF record is a TXT record, not the SPF resource record type. RFC 7208 §3.1 deprecated the dedicated type; Route 53 still offers it, and using it would be a mistake.
There is deliberately no rua= in the DMARC record. Aggregate reports need a mailbox to be delivered to, and this domain has none. A reporting address that black-holes is worse than no reporting address, because it looks like it works.
Records deliberately absent#
MTA-STS — a genuine contradiction#
RFC 8461 requires an MTA-STS policy file to list at least one mx host. This domain publishes a null MX under RFC 7505, declaring it has no MX hosts. There is no way to publish both honestly.
Publishing MTA-STS anyway — with a fabricated mx entry, or an empty policy that fails validation — would be worse than omitting it: it would advertise a capability that does not exist. See ADR-0008.
TLSRPT — nothing to report#
SMTP TLS Reporting (RFC 8460) describes the TLS quality of inbound SMTP connections. A null-MX domain accepts no SMTP connections. The record is available behind enable_tlsrpt for completeness but is off by default, because publishing a record that describes nothing is decoration rather than configuration.
OPENPGPKEY — not supported by Route 53#
Route 53's supported record types are A, AAAA, CAA, CNAME, DS, HTTPS, MX, NAPTR, NS, PTR, SOA, SPF, SRV, SSHFP, SVCB, TLSA and TXT. OPENPGPKEY (type 61, RFC 7929) is not among them, so this is a hard platform limitation rather than a choice.
If a PGP key is ever needed, it would be published via Web Key Directory over HTTPS instead, at /.well-known/openpgpkey/hu/<z-base-32 hash>. That is what GnuPG queries by default, and it is more widely implemented than the DNS record — so the workaround is arguably the better mechanism. Today no key is published, because the domain has no contact address (see security posture). Tracked on the tech radar.
TLSA / DANE — deferred, with a reason#
ACM rotates certificate keys automatically and offers no way to pin or pre-publish the next key. A TLSA 3 1 1 record (RFC 6698) committing to a specific public key would therefore break at the next renewal, taking the site down for any DANE-validating client.
Browsers do not validate DANE for HTTPS anyway, so the immediate benefit is close to zero while the breakage risk is real. It becomes viable if a self-managed TLS endpoint is ever added, where key rotation is under our control. See the roadmap.
SSHFP — nothing to point at#
SSHFP (RFC 4255) publishes SSH host key fingerprints. There is no host accepting SSH yet. This arrives with the first one.
TTLs#
Non-alias records use 300 seconds. Long enough to be cached usefully, short enough that a mistake is recoverable in five minutes rather than a day. Alias records ignore the setting — Route 53 fixes them at 60 seconds.
The one place a longer TTL would help is the DS record at the registry, which is not ours to set.