Runbook: DNS (Route 53 / Cloudflare)¶
Template (#17). There are no DNS tools built in (tracked in #75). The agent investigates with the evidence you send and read-only commands, and suggests changes for a human to apply.
How incidents arrive¶
- Synthetic or blackbox alerts (
probe_dns_lookup_time_seconds,probe_success == 0) through Alertmanager or Grafana, labelledcategory="dns". - Or
/webhook/manualwith{"type": "server", "description": "DNS: <name> fails to resolve", "raw_logs": "<dig output>"}.
Environment facts (fill in)¶
- Hosted zones and who owns them:
<example.com → Route 53 zone Z123, owned by platform> - Cloudflare-proxied records:
<…> - TTL policy and the change process (PR to
<infra repo>, Terraform<path>):<…>
Diagnosis order¶
dig +short <name> @1.1.1.1and@8.8.8.8, compared with the authoritative answer:dig <name> @<ns from dig NS>.- NXDOMAIN or wrong IP? Check the record in the zone (
aws route53 list-resource-record-setsor the Cloudflare API, read-only) and recent changes (CloudTrailChangeResourceRecordSets, Cloudflare audit log). - Correct record but stale answers: TTL or a resolver cache. Give the expected time to clear.
- Domain expiry or a delegation problem:
whois, and the parent zone's NS records. - DNSSEC failures (
SERVFAILonly on validating resolvers):dig +dnssec, DS record vs DNSKEY.
Allowed actions¶
suggest_fixwith the exact record change (Terraform diff preferred) and how to roll it back.- Never change DNS records directly. A DNS mistake can take everything down at once.
Escalate when¶
- Apex or NS records are involved, the domain is near expiry, or more than one zone is affected.