Skip to content

Tutorial · Performance · Advanced · 1 min read

DNS outages and single points of failure

When DNS fails, a healthy website becomes unreachable. Lessons from the 2016 Dyn attack and the 2021 Facebook outage, and how to make your DNS more resilient.

DNS turns your domain name into the addresses browsers connect to. If nobody can resolve the name, your servers can be perfectly healthy and still unreachable. Because DNS sits in front of everything, its failures tend to be total and to affect many services at once.

Two outages worth knowing

  • On 21 October 2016, a large denial-of-service attack by the Mirai botnet on the DNS provider Dyn made sites including Twitter, GitHub, Netflix and Reddit unreachable for many users in the United States and Europe.
  • On 4 October 2021, a configuration change withdrew the network routes to Facebook's own DNS servers. Facebook, Instagram and WhatsApp were unreachable for around six hours, and the internal tools needed to fix it depended on the same network.

Reduce the blast radius

  1. Know exactly which provider hosts your DNS, who can change it and how changes are reviewed.
  2. For critical domains, consider a secondary DNS provider that serves the same zone.
  3. Keep sensible record TTLs, so a planned change takes effect quickly and caches still help during short provider problems.
  4. Protect the registrar account with strong two-factor sign-in and a registrar lock, and keep the domain's renewal automatic.
  5. Make sure the tools and runbooks you need during an outage do not depend on the domain that is down.

Monitoring from outside your network is the quickest way to learn that a domain has stopped resolving. Zenith's uptime checks treat an unreachable homepage as an incident, whatever the cause.

Glossary

DNS
The Domain Name System, which maps domain names to the network addresses of servers.
TTL
Time to live: how long resolvers may cache a DNS answer before asking again.