On 4 October 2021, Facebook, Instagram and WhatsApp vanished from the internet for roughly six hours. No server was hacked and no data centre lost power. A single maintenance command disconnected the company's private backbone, and a safety feature in its DNS servers then removed the routes the rest of the world used to find them. It is one of the clearest real examples of how BGP and DNS depend on each other, which is why it turns up so often in networking interviews.
The company was still called Facebook at the time and renamed itself Meta later that month. This post uses Facebook for the network and services, and Meta for the engineering team that published the explanation.
What users saw
Apps did not show a neat error page. They simply could not connect. A browser asked for the IP address of facebook.com and got back a DNS failure, because the name servers that hold the answer could not be reached.
Cloudflare, which runs the public resolver 1.1.1.1, published what this looked like from outside. Lookups for facebook.com and whatsapp.com returned SERVFAIL, the DNS response code that means the resolver tried and could not get an answer. Google's 8.8.8.8 returned the same.
The effect spread beyond Facebook's own products. Apps and people kept retrying, and Cloudflare reported that 1.1.1.1 was handling about 30 times its usual query volume. It also saw DNS queries rise for Twitter, Signal and other messaging services as people looked for somewhere else to talk.
Inside the company things were worse. Meta said the same failure took down many of the internal tools its engineers normally use to investigate and fix outages.
Timeline
Meta's posts do not give minute-level timings, so the times below are what Cloudflare observed from outside. Times are in UTC, with Indian Standard Time alongside.
| Time (UTC) | Time (IST) | What was observed |
|---|---|---|
| About 15:40 | 21:10 | A burst of BGP routing changes from Facebook's network, which is normally quiet |
| 15:50 | 21:20 | Successful lookups of facebook.com on 1.1.1.1 start to fall |
| 15:51 | 21:21 | Cloudflare opens an internal incident, at first suspecting its own resolver |
| 15:58 | 21:28 | Cloudflare notes that Facebook has stopped announcing routes to its DNS prefixes |
| About 21:00 | 02:30, 5 Oct | BGP activity from Facebook's network resumes |
| 21:17 | 02:47 | The renewed BGP activity peaks |
| 21:20 | 02:50 | facebook.com resolves again on 1.1.1.1 |
Notice the ten-minute gap between the routes disappearing and lookups failing. That gap is DNS caching at work, and it is explained below.
The root cause, step by step
Step 1: a command meant to measure capacity
Facebook's data centres are linked by a private backbone, a network of routers and tens of thousands of miles of fibre. The network has two kinds of site. Large data centres hold the machines that store data and run the services. Smaller edge facilities sit close to users and connect the backbone to the public internet. A request from your phone lands at a nearby edge facility, rides the backbone to a data centre, and the reply comes back the same way.

Engineers routinely take parts of the backbone out of service to repair fibre, add capacity or update router software. During one such routine job, a command was issued that was meant to assess how much capacity the global backbone had available. Instead it took down every backbone connection, cutting the data centres off from each other and from the edge.
Step 2: the audit tool had a bug
Meta's systems are designed to audit commands like this before they run, so that a mistake of this kind is stopped. According to Meta, a bug in that audit tool meant the command was not blocked. The safeguard existed, but it did not work on the one occasion it mattered.
Step 3: the DNS servers took themselves off the internet
This is the part worth studying. Facebook's authoritative DNS servers live in the edge facilities. Their IP addresses are announced to the rest of the internet using BGP, the protocol that networks use to tell each other which address ranges they can reach.
Those DNS servers follow a sensible rule. If an edge site cannot reach the data centres, it is probably unhealthy, so it should stop attracting traffic. It does that by withdrawing its BGP announcement. Other sites keep announcing the same addresses, and traffic flows to them instead.
The rule assumes that only some sites fail at once. When the whole backbone went down, every edge site lost contact with the data centres at the same moment. Every one of them concluded it was unhealthy, and every one withdrew its routes. The DNS servers were still running, but no router on the internet had a path to them.
Cloudflare confirmed this from outside. Two of the prefixes that held Facebook's name servers, 129.134.30.0/23 and 185.89.218.0/23, were no longer in the global routing table. Some other Facebook address space was still being announced, but that did not help anyone: without DNS, clients had no way to learn which address to connect to, and the backbone behind the edge was down anyway.
Step 4: caches ran out
Resolvers cache DNS answers for a period set by the record's time to live. For a few minutes after the withdrawal, resolvers that already held Facebook's records kept answering from cache. As those entries expired, resolvers went back to the authoritative servers, found no route, timed out and returned SERVFAIL. That fits the roughly ten-minute gap between the routing changes and the first failed lookups.
Why recovery took hours
Restoring a few BGP announcements sounds like a quick job. It was not, because the failure removed the tools needed to fix it.
- Remote access was gone. Engineers normally reach data centre equipment over the network. Meta said both the primary network and the out-of-band network, the separate path kept for emergencies, were down.
- Internal tools depended on DNS. The loss of DNS broke many of the internal systems used to diagnose and repair problems.
- Physical access was deliberately hard. Meta sent engineers to the data centres in person. The buildings are designed to be difficult to enter, and the hardware is designed to be difficult to modify even for someone standing in front of it. Getting through those protections took time.

Meta was open about the trade-off. It had hardened its systems against unauthorised access, and that hardening slowed down the recovery from a failure caused by its own mistake. Its stated view was that stronger everyday security is worth a slower recovery from a rare event.
Bringing it back without breaking it again
Once the backbone was repaired, the team could not just switch everything on. Meta said individual data centres were reporting drops in power use in the range of tens of megawatts. Reversing that suddenly, with a huge number of devices reconnecting together, risked overloading electrical systems and hitting cold caches with a wall of requests.
This is the thundering herd problem at the largest scale. Meta said it leaned on experience from its "storm" drills, exercises in which it deliberately takes a service, a data centre or a whole region offline to practise recovery. Load was brought back gradually, and services returned without a second failure.
What Meta said it would change
Meta's public post is short on specifics here, and it is worth being clear about what is and is not public.
- It said it had never run a storm drill that simulated the entire backbone going offline, and that it would look for ways to simulate such events in future.
- It said it would strengthen its testing, drills and overall resilience, and that a wider review was under way.
- It did not publish the exact command, the nature of the audit tool bug, or detailed fixes to the DNS health-check logic.
- It stated that the cause was its own faulty configuration change, that there was no malicious activity, and that it had no evidence of user data being compromised.
The computer science underneath
BGP is how networks announce reachability. The internet is a collection of independently run networks called autonomous systems. Facebook's is AS32934. Each one uses BGP to tell its neighbours which IP prefixes it can deliver traffic to, and those announcements spread from network to network. A withdrawal is the opposite message: stop sending me traffic for this prefix. BGP has no idea whether a withdrawal is wise. It simply does what it is told, which is why a correct protocol carried out an incorrect decision so efficiently. The lesson on BGP and how the internet routes itself covers announcements, withdrawals and path selection.
No route means the packet is dropped. A router forwards each packet by finding the most specific matching prefix in its table. Once the DNS prefixes were withdrawn, routers had no matching entry for those addresses and discarded the packets. The servers at the other end were healthy and never saw a single query. See longest prefix match and the routing table.
DNS is a hierarchy with caching. A recursive resolver walks from the root to the .com servers to the domain's authoritative name servers, then caches the answer for the record's TTL. The .com servers were still correctly pointing at Facebook's name servers throughout. The delegation was fine. The final hop was unreachable. The lesson on DNS, zones and delegation explains each step of that walk.
One address, many locations. Announcing the same IP prefix from many sites, so that each user reaches the nearest one, is called anycast. It gives low latency and automatic failover: when one site withdraws, routers pick another. The weakness is a health check that every site can fail simultaneously, which is what happened here. Read more in unicast, broadcast, multicast and anycast and in DNS and global traffic management.
What an interviewer could ask from this
1. Facebook's servers were running. Why could nobody reach them? Reachability needs two things: a name that resolves to an address, and a route to that address. The DNS servers withdrew their BGP routes, so resolvers could not reach them, so names stopped resolving. Healthy servers are useless if clients cannot find them.
2. Why did the DNS servers withdraw their own routes? It was a health check. An edge site that cannot reach the data centres should stop attracting traffic so that a healthy site can take over. The design did not account for all sites failing the check together.
3. Why did the outage not hit everyone at the same instant? Resolvers cache records until the TTL expires. Clients served from cache kept working for a few minutes. A longer TTL would have delayed the failure a little, but could not have covered a six-hour outage.
4. How would you design the health check differently? Make it fail open when the failure is global. For example, a site could keep announcing its routes if it can see that most or all of its peers are also failing, since withdrawing then helps nobody. Serving stale or degraded answers is usually better than serving nothing.
5. What is out-of-band management and why did it matter here? It is a separate network path to reach equipment when the main network is broken. It only helps if it shares no dependency with the thing it is meant to rescue. Here, Meta said the out-of-band access was down as well.
6. Why bring services back gradually? A cold system facing full traffic sees empty caches, a rush of reconnections and a sudden jump in load. Ramping up in stages lets caches warm and prevents a second collapse.
Takeaways
- A name on the internet needs both DNS and routing. Losing either one makes a healthy service unreachable.
- Automatic safety mechanisms must be tested against the case where every instance triggers together, not just one.
- Recovery tools should not depend on the system they are meant to recover. That includes DNS and remote access.
- Security hardening and fast recovery pull in opposite directions. Meta chose security and said so openly.
- Practise the failure you fear most. Meta drilled for regional failures, but had not drilled for losing the whole backbone.












