Catalogue / bunny-2021-dns-collapse

A corrupted routing data file crashed almost all of bunny.net's DNS fleet, and the rollback path ran through the CDN it took down

bunny.net, 2021. DNS fleet and SmartEdge routing for the CDN.

Organisation
bunny.net
Evidence
Incident report
Source
The stack overflow of death. How we lost DNS and what we're doing to prevent this in the future.

bunny.net blog, published 2021-06-23

Records

Failure#f1

A corrupted data file made a serialization library overflow the stack and kill DNS servers across the fleet, in a crash loop

Failure#f2

During recovery, corrupted GeoDNS databases sent all traffic to one of the smallest points of presence

Decision#d1

Stop distributing internal deployments through bunny.net's own CDN and storage; use an independent third party

Decision#d2

Switch the routing data from JSON to a binary serialization library to cut memory and garbage collection

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.