The Day Facebook Deleted Itself From the Internet

In October 2021 Facebook didn't get hacked or DDoSed. It ran one maintenance command, and its own safety mechanisms erased it from the internet's map — then locked the engineers out of the room where the fix lived.

At 15:39 UTC on October 4, 2021, Facebook told the rest of the internet to forget where it lived — and then couldn’t tell it the address again for almost six hours.

There was no hacker. No record-breaking DDoS, no zero-day, no ransomware note. Facebook, Instagram, WhatsApp, Messenger, and Oculus went dark for roughly a third of the planet because of a single command run during routine maintenance, and — this is the part worth sitting with — because of safety mechanisms working exactly as designed. The interesting failure here isn’t that someone fat-fingered a config. It’s that a company with some of the best network engineers alive built a system that could disconnect itself and then physically could not be reconnected, because every road back ran through the thing that was down.

One command, one whole backbone

Facebook’s data centers around the world are stitched together by a private backbone — a global network carrying traffic between facilities so that a photo uploaded in one region and a friend viewing it in another meet somewhere in the middle. During a routine job, according to Facebook’s own postmortem, an engineer issued a command intended to assess the available capacity of that backbone. The command instead took down all the connections in the backbone network, disconnecting Facebook’s data centers globally from each other and from the internet.

There was supposed to be a guardrail. Facebook runs an audit tool whose entire job is to catch commands like this and stop them before they execute. The tool had a bug. It didn’t flag the command, so nothing stood in the way, and in one motion the backbone went silent.

That alone would have been a bad afternoon. What made it a legendary one was the second-order effect nobody in the room could see coming, because it happened out on the public internet.

The DNS servers withdrew themselves — on purpose

Here is the mechanism that turned a backbone outage into a disappearance, and it is genuinely elegant, which is what makes it awful.

Facebook’s authoritative DNS servers — the machines that answer “what IP is facebook.com?” — don’t live in the data centers. They sit closer to the network edge, and they advertise their own presence to the rest of the internet using BGP, the Border Gateway Protocol, the routing system that every network on Earth uses to tell every other network which IP ranges it can reach.

These DNS servers run a health check. If one of them loses its connection back to Facebook’s data centers — where the real source of truth lives — it concludes something is wrong with itself, and it does the responsible thing: it stops advertising its BGP routes. The logic is sound. A DNS server that can’t reach the mothership shouldn’t keep confidently answering questions; better to pull yourself out of rotation than to hand out answers you can’t stand behind.

Except this time every DNS server lost its connection to the data centers at once, because the backbone that connected them had just evaporated. So every one of them, independently and correctly, decided to withdraw. Cloudflare, watching from the outside, logged the flood of BGP withdrawals starting at 15:39 UTC — and the withdrawn routes included the prefixes holding Facebook’s nameservers. In the span of a few minutes, Facebook’s DNS didn’t return errors. It ceased to exist. There was no server to ask, because the servers had told the internet to stop routing to them.

By 15:50 UTC, facebook.com had aged out of every major public resolver’s cache. Before that moment, a cached answer here or there was keeping fragments alive. After it, the name resolved nowhere. As far as the global DNS was concerned, Facebook had never had an address.

The internet noticed, loudly

When a domain that serves billions of requests suddenly stops resolving, the clients don’t shrug and move on. Every phone with the app open, every browser tab, every service with a “Login with Facebook” button starts retrying — and each retry is a fresh DNS query fired at the world’s recursive resolvers. The resolvers, getting no answer, retry too. Public DNS providers reported a surge of traffic as the entire installed base of Facebook software hammered a name that had gone dark.

This is the quiet lesson tucked inside the loud one: a single company’s outage became everyone’s DNS load spike, because the DNS system’s failure mode under “no answer” is “ask again, harder.” Facebook’s disappearance taxed infrastructure it didn’t own.

The locked room

Now the engineers had to fix it. And they discovered the trap.

The tools they would normally use to diagnose and repair the backbone — the dashboards, the remote access, the internal communications — all ran on the same network that was down, and depended on the same DNS that no longer resolved. The people trying to coordinate the fix reportedly couldn’t reliably reach each other, because the internal tooling was as gone as the public site. You cannot remote into a network to fix the reason you can’t remote into it.

So they fell back to physical access, and the trap had one more layer. Getting into the data centers and the server cages meant badge readers and access-control systems — which were, of course, electronic, and on the affected network. Reports from the day describe engineers needing physical tools to get through doors and cages that would normally open to a keycard. And even that gap between “who can physically get to the hardware” and “who knows how to authenticate to it and what to type” cost time; the two groups weren’t the same people, and weren’t in the same place.

The fix, in the end, was almost comically low-tech for a company that operates at Facebook’s scale: a team on site, laptops connected directly to the console ports of the backbone routers, bypassing the dead network entirely to bring it back by hand. And they had to bring it back slowly — flipping everything on at once risked a surge of power draw and traffic that could have tripped the whole thing again. BGP announcements resumed a little before 21:00 UTC, the domain became resolvable again around 21:05, and services were broadly back by roughly 22:45.

What the story is actually about

It’s tempting to file this under “human error” and move on. That’s the wrong lesson, because it lets you believe better discipline would have saved you. The command was a mistake, sure. But mistakes are constant; the job of a resilient system is to survive them. Two design decisions, both individually reasonable, are what turned a mistake into a six-hour vanishing.

The first is the DNS self-withdrawal. It’s a good safety mechanism — don’t serve answers you can’t verify — and it’s exactly the kind of health check any careful engineer would add. It also became the amplifier that converted “the backbone is down” into “we no longer exist on the internet.” Safety mechanisms that all trigger on the same underlying condition don’t add up to more safety; they add up to a single, correlated failure that fires everywhere at once.

The second, and the one worth tattooing somewhere, is that Facebook’s recovery path was not actually out of band. An out-of-band channel is one that shares nothing with the system it’s meant to recover — not the network, not the DNS, not the auth, not the door locks. Facebook’s did. The monitoring, the comms, the remote access, and the physical access controls all leaned, somewhere down the stack, on the infrastructure they were supposed to be independent of. When it went, it took the ladder down with it.

Every organization running anything important has a version of this graph, and almost nobody has actually traced it to the bottom. Ask the uncomfortable question: if your primary network disappeared right now, is the path to fix it genuinely separate — or does the recovery plan quietly assume the thing you’re recovering is already working? Facebook found out the answer the hard way, in front of everyone, on a Monday afternoon. The rest of us got to learn it for free.

Continue the conversation

← Back to Blog