Why Nginx Caches DNS for Weeks and How to Fix It
In production, Nginx cached DNS lookups for up to a month, causing requests to stale IPs after CDN changes; this article explains the root cause, demonstrates how to configure upstream health checks and the built‑in resolver to ensure timely DNS updates and avoid prolonged outages.
