Dangling records and subdomain takeover. A CNAME or alias left pointing at a deleted S3 website bucket, a terminated Elastic Beanstalk environment or a released Elastic IP is a dangling record. Whoever claims that resource next serves content under your name. AWS’s guidance (Security Blog, 2026-06-16) is to delete the DNS record first, wait for its TTL, then delete the resource. S3 buckets created in account regional namespaces, available since March 2026, can’t be claimed by another account. Route 53 protects one case itself: it won’t give a deleted zone’s name servers to another customer while the parent zone still lists them.
DNS Firewall across an organization. Deploy rule groups with AWS Firewall Manager or inside a Route 53 Profile. A VPC takes up to five rule groups, and a group holds 100 rules. Start each rule in ALERT, read the logs, then switch it to BLOCK. A rule can match a single query type, such as TXT, which tunnels favour, and it can inspect every name in a CNAME chain. DNS Firewall Advanced, launched 2024-11-15, detects algorithm-generated domains and tunnelling by behaviour, at $0.16 an hour per rule group per VPC. Fail open is a per-VPC setting for when availability outranks filtering.
DNSSEC operations. Route 53 signs with algorithm 13, ECDSA P-256 with SHA-256. A zone holds at most two key-signing keys, and you rotate by adding the second, publishing its DS record, then retiring the first. TTLs are capped at one week in a signed zone. Before enabling signing, lower the zone’s longest TTL to an hour and wait that long. Private hosted zones can’t be signed. The VPC resolver validates signed public names when the VPC’s setting is on, but it returns no signatures to clients and doesn’t validate forwarded queries.
GuardDuty’s DNS findings. GuardDuty reads the VPC resolver’s query stream whether or not query logging is on. Its finding types include Backdoor:EC2/C&CActivity.B!DNS, Trojan:EC2/DNSDataExfiltration, Trojan:EC2/DGADomainRequest.B, CryptoCurrency:EC2/BitcoinTool.B!DNS and Impact:EC2/MaliciousDomainRequest.Reputation. Use of outside resolvers shows up from flow logs instead: DefenseEvasion:EC2/UnusualDNSResolver, UnusualDoHActivity and UnusualDoTActivity.
Hijack and flooding. Keep transfer lock on the domain and the registrar account behind MFA, because whoever can change the name servers at the registrar controls every answer. Shield Standard protects Route 53 at no charge, and Shield Advanced adds hosted zones as protected resources.
On the exam
- “prevent data exfiltration over DNS”→DNS Firewall allow list with a block-all rule, plus network rules against other resolvers
- “block known-malicious domains in every account”→AWS managed domain lists deployed with Firewall Manager
- “DNS filtering must never take the application down”→fail open
- “DNS filtering must never be bypassed by a failure”→fail closed, the default
- “protect a public domain against forged answers”→DNSSEC signing and a DS record at the registrar
- “which KMS key for DNSSEC”→customer managed, asymmetric ECC_NIST_P256, in us-east-1
- “validate DNSSEC for workloads in a VPC”→turn on validation for that VPC
- “a decommissioned site’s subdomain now shows someone else’s content”→dangling record; delete DNS before the resource
- “detect hosts using outside or encrypted DNS”→GuardDuty UnusualDNSResolver and UnusualDoHActivity