NETWORK INCIDENTS

When DNS Answers With Nothing: Replaying the AWS DynamoDB Outage in a Lab

Network+ 3.4 Name resolution: DNSNetwork+ 5.1 Troubleshooting methodologyNetwork+ 5.5 Command-line tools: dig

On the 19th and 20th of October 2025, AWS's us-east-1 Region was disrupted from 11:48 PM to 2:20 PM the next day. AWS traces the start to a race condition in DynamoDB's DNS automation, which left the service's regional endpoint with an empty DNS record. This lab isn't AWS's system. It rebuilds that failure pattern, so we can watch it happen and fix it.

A planner makes a new DNS plan for db.homelab.test every second; two enactors apply the newest plan to a small DNS service, each checking once beforehand that it's newer, then clean up old plans. Two load balancers sit behind the name.

Incident replay: a lab model of the failure pattern in AWS's post-event summary of the 19-20 October 2025 us-east-1 disruption (https://aws.amazon.com/message/101925/), not AWS's systems.

The symptom. From the client, curl http://db.homelab.test can't resolve the name, but the load balancers (10.0.20.11, 10.0.20.12) answer by address.

The lab

In the lab, an application server needs a database service called db dot homelab dot test, which should point at two load balancers. A planner writes a new DNS plan every second: which load balancers the name should use. Two enactors apply the newest plan to the DNS service, then clean up old plans. AWS's summary describes the same roles, with three enactors in three Availability Zones. The lab uses two, and runs much faster.

The symptom

on client
curl -sS -m 3 http://db.homelab.test
curl: (6) Could not resolve host: db.homelab.test (DNS server returned answer with no data)
What this shows

The application asks for the database service's page. curl fails before it connects to anything: could not resolve host. And it adds why: the DNS server returned an answer with no data.

Narrowing it down

on client
dig db.homelab.test
; <<>> DiG 9.20.23 <<>> db.homelab.test
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25583
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;db.homelab.test.               IN      A

;; AUTHORITY SECTION:
homelab.test.           5       IN      SOA     dns.homelab.test. admin.homelab.test. 2025102001 7200 3600 1209600 5

;; Query time: 0 msec
;; SERVER: 10.0.20.53#53(10.0.20.53) (UDP)
;; WHEN: Sun Oct 25 19:43:07 UTC 2026
;; MSG SIZE  rcvd: 115
What this shows

dig shows exactly what DNS said. The status is NOERROR, so the server answered, and the name exists. But ANSWER: zero. There are no addresses for it. The SERVER line shows the lab's DNS service answered. So this isn't NXDOMAIN, and it isn't a server that never replied. The name is there, and it's empty.

on client
curl -s http://10.0.20.11
<!doctype html>
<title>db</title>
<h1>db: ok (lb1)</h1>
What this shows

Is the database service itself down? Ask the first load balancer by its address: db, ok.

on client
curl -s http://10.0.20.12
<!doctype html>
<title>db</title>
<h1>db: ok (lb2)</h1>
What this shows

The second one answers too. The service is fine. Only its DNS record is empty.

Finding the cause

on dns
dnsctl show
db.homelab.test  plan 106  addresses: (none)  NEEDS REPAIR
What this shows

On the DNS service, dnsctl show lists each name, the plan it came from, and its addresses. db dot homelab dot test is on plan 106, with no addresses, and it needs repair.

on dns
tail -n 3 /var/log/r53.log
19:42:58 enactor-b: db.homelab.test -> plan 117 (10.0.20.11 10.0.20.12)
19:42:59 enactor-a: db.homelab.test -> plan 106 (10.0.20.11 10.0.20.12)
19:42:59 clean-up: deleted plan 106; db.homelab.test used it and now has no addresses
What this shows

The DNS service logs every change. enactor-b had applied plan 117. One second later, enactor-a wrote plan 106 over it: a much older plan. And in that same second, the clean-up deleted plan 106, because it was more than five generations old. It was also the plan the name was using, so the name lost its addresses.

on enactor-a
head -n 4 /var/log/enactor.log
19:42:47 plan 106: newer than plan 105, applying
19:42:47 plan 106: db.homelab.test busy, retry 1 of 3 in 4s
19:42:51 plan 106: db.homelab.test busy, retry 2 of 3 in 4s
19:42:55 plan 106: db.homelab.test busy, retry 3 of 3 in 4s
What this shows

Why did enactor-a write such an old plan? It checked once, at the start, that plan 106 was newer than the plan already applied, 105, and it was. Then the name was busy, and it retried three times, four seconds apart. By the time it wrote, that check was twelve seconds old, and plans had moved on to 117. AWS's summary describes the same thing: a one-time check that was stale by the time an unusually delayed enactor applied its plan.

on enactor-b
tail -n 3 /var/log/enactor.log
19:43:27 plan 146: not applied: db.homelab.test: its plan 106 was deleted, needs repair
19:43:28 plan 147: not applied: db.homelab.test: its plan 106 was deleted, needs repair
19:43:29 plan 148: not applied: db.homelab.test: its plan 106 was deleted, needs repair
What this shows

And the automation can't fix it on its own. Every second enactor-b gets a new plan, and every time it's refused: the name's plan 106 was deleted, so it needs repair. AWS's system was left in a state that blocked new plans too, and needed an operator to step in.

The fix

on dns
dnsctl repair db.homelab.test
db.homelab.test -> plan 154  addresses: 10.0.20.11 10.0.20.12
What this shows

So, as an operator, repair it by hand. dnsctl repair points the name at the planner's newest plan. It has both load balancers again.

on dns
dnsctl show
db.homelab.test  plan 155  addresses: 10.0.20.11 10.0.20.12  ok
What this shows

And the plan number keeps climbing: the enactors are applying new plans again.

on client
dig +short db.homelab.test
10.0.20.11
10.0.20.12
What this shows

From the application server, dig plus short returns both addresses.

on client
curl -s http://db.homelab.test
<!doctype html>
<title>db</title>
<h1>db: ok (lb1)</h1>
What this shows

And the page loads by name: db, ok.

Keeping it from happening again

on dns
dnsctl guard on
guard on: older plans and deleting a plan in use are refused
What this shows

But the same race can happen again. So turn on two protections in the DNS service. First, refuse any plan older than the one a name is already using: that's the check, made right before the write instead of seconds earlier. Second, never delete a plan a name is still using.

on enactor-a
enactorctl slow 3 4
next plan: 3 retries, 4 s apart
What this shows

Now make enactor-a slow again, exactly as before: three retries, four seconds apart.

on dns
grep refused /var/log/r53.log
19:44:03 enactor-a: plan 170 refused for db.homelab.test: older than its plan 182
What this shows

Twelve seconds later, enactor-a tries to write its stale plan, and this time the DNS service refuses it: older than the plan the name already has.

on dns
dnsctl show
db.homelab.test  plan 185  addresses: 10.0.20.11 10.0.20.12  ok
What this shows

And the name still has both addresses. The race happened, and nothing broke.

Why it broke

So why did the record go empty? Each piece did something safe on its own. The enactor checked that its plan was newer. The clean-up only deleted old plans. But the check came long before the write, and the clean-up deleted by age, without asking whether a name was still using that plan. AWS turned the automation off worldwide, and says it will fix the race and add protections against applying incorrect plans before it turns it back on.

Check right before you change it

When automation checks early and acts late, check again right before the change. And never let a clean-up delete something that's still in use.

Try it yourself

The whole lab runs on your own computer with Docker and containerlab: get it on GitHub, then ./lab.sh up and ./lab.sh break. Setup steps are on Run the labs.