DNS Failures

NXDOMAIN vs SERVFAIL, TTL propagation, negative caching, Kubernetes CoreDNS failures, and split-horizon issues.

Overview

Overview

DNS failures show up as connection errors that look like network failures but are really name resolution failures. They are among the most common causes of production incidents because they stay invisible until they cause a cascading failure.

Every lookup passes through two kinds of server. A recursive resolver answers clients and keeps a cache whose entries live for their TTL (time to live). An authoritative server holds the zone itself, the ground truth. Most failures come from the gap between the two.

Key concepts

  • NXDOMAIN
  • SERVFAIL
  • Negative caching TTL
  • CoreDNS
  • ndots

Interview questions

  • After updating a DNS record, some services are working and some are not. Why and how do you fix it?

Sign up free to read the full topic

More Troubleshooting topics

Start free on Cariara · Coding problems · System design studio