Unix & Wire Protocol Digest

Independent technical notebook on POSIX tooling, compilers, and engineering videos.

Infrastructure2026-10-31

Serving Stale DNS Records During Upstream Authoritative Outages

Aggressively short 30–60 second DNS TTLs are popular for traffic steering, but they amplify blast radius whenever an authoritative DNS provider experiences a brief route leak or DDoS event.

RFC 8767 codifies serving expired cached records with a bounded staleness window when upstream resolution times out. In practice, most service IP addresses have not changed during the outage window.

Configuring Unbound or CoreDNS with serve-expired and a 1500–1800 ms upstream timeout keeps internal RPCs healthy while background refresh continues.

server:
  serve-expired: yes
  serve-expired-ttl: 86400
  serve-expired-client-timeout: 1800

← Back to Posts