Cloudflare

The benefits of serving stale DNS entries when using Consul

Mar 8, 2021André Cruz
The benefits of serving stale DNS entries when using Consul
SummaryAI, from the source post

This post details the implementation and benefits of serving stale DNS entries from cache using Unbound, improving resilience and reducing latency for Consul service discovery. The configuration of Unbound with `serve-expired: yes`, `serve-expired-ttl: 3600`, and `serve-expired-client-timeout: 500` addresses issues with low TTLs and network blips, ensuring faster recovery times and a more robust service discovery experience. It also addresses previous concerns about Unbound serving indefinite stale records or incomplete information, confirming that current versions and configurations mitigate these issues.

More from the DNS Infrastructure & Naming Conventions trail