Runbook: publish the DS record at an external registrar#
Completes the DNSSEC chain of trust. The zone is signed by Route 53, but until the DS record exists in the .dev registry, validating resolvers treat the zone as unsigned.
This state is safe. Signed-but-unvalidated means no DNSSEC protection and no outage. It is a fine place to sit while confirming the zone answers correctly.
Prerequisites#
The nameserver delegation must already be live and propagated:
dig +short NS testz.dev @1.1.1.1
If this does not return the Route 53 nameservers, stop. Publishing DS before the delegation is correct guarantees an outage.
1. Get the values#
make ds-record
This prints the key tag, algorithm, digest type and digest, plus the presentation-format single line and the DNSKEY equivalent — registrar forms ask for these in inconsistent ways.
For the raw values:
tofu -chdir=terraform/environments/prod output -json dnssec_ds_record
2. Enter it at the registrar#
Find the DNSSEC or DS Records section. You will be asked for either:
DS record fields (most common):
| Field | Value |
|---|---|
| Key tag | the number from step 1 |
| Algorithm | 13 (ECDSAP256SHA256) |
| Digest type | 2 (SHA-256) |
| Digest | the long hex string |
Or a DNSKEY (some registrars): flags 257, algorithm 13, and the base64 public key.
Or one presentation-format line: paste the ds_record output directly.
Registrar-specific notes:
- Cloudflare Registrar — Domain → DNSSEC → "DS Record". Takes the four fields.
- Porkbun — Domain Management → DNSSEC. Four fields.
- Namecheap — Advanced DNS → DNSSEC. Four fields.
- Squarespace / former Google Domains — Security → DNSSEC. May want the DNSKEY.
3. Verify#
Registry propagation takes minutes to a few hours.
# The DS record must appear in the .dev registry.
dig +short DS testz.dev @1.1.1.1
# Once it has, responses should carry RRSIG records...
dig +dnssec A testz.dev @1.1.1.1 | grep RRSIG
# ...and a validating resolver should set the "ad" flag.
dig +dnssec A testz.dev @1.1.1.1 | grep -E '^;;.*flags'
# Trace the full chain, showing each validation step.
delv @1.1.1.1 testz.dev A +rtrace
Confirm your resolver actually validates, or the tests above prove nothing:
# This must SERVFAIL. If it returns an answer, your resolver is not validating.
dig @1.1.1.1 dnssec-failed.org A
Independent checks worth running: DNSViz for a visual chain graph, and Verisign's DNSSEC debugger.
4. Confirm the alarms are live#
Once DS is published, the DNSSEC alarms become the most important monitoring in the stack — a signing failure now means an outage rather than a degradation.
aws cloudwatch describe-alarms \
--alarm-names testz-prod-dnssec-internal-failure testz-prod-dnssec-ksk-action-needed \
--query 'MetricAlarms[].[AlarmName,StateValue,ActionsEnabled]' --output table
INSUFFICIENT_DATA is expected and correct — those metrics are only published once the condition first occurs. What matters is that ActionsEnabled is true and the SNS subscription is confirmed.
If something goes wrong#
Symptoms of a broken chain: the domain resolves for you but not for others; some networks fail while others work; SERVFAIL from 1.1.1.1 or 8.8.8.8 but answers from a non-validating resolver.
Go to the emergency runbook. The fastest safe fix is almost always removing the DS record at the registrar, not changing anything in AWS.
After a transfer into Route 53 Domains#
This entire runbook becomes unnecessary. Set:
manage_registrar_ds = true
Terraform then publishes DS via aws_route53domains_delegation_signer_record, correctly ordered after zone signing, and the whole chain of trust is codified.