A DNS change was made 2 hours ago, but some users still reach the old IP.
BeginnerTroubleshootingDNS resolution failures
Answer
Likely causes → Resolvers cached the old record for its previous TTL; some clients (JVM, browsers, app-level caches) cache longer; or the change wasn't made on all authoritative servers.
Diagnose →
for ns in $(dig NS example.com +short); do dig @$ns app.example.com +short; done
dig app.example.com @8.8.8.8 +noall +answer # remaining TTL shown in the answer
Fix → Wait out the old TTL, flush what you control (resolvectl flush-caches, restart the JVM), and keep the old endpoint running until traffic drains.
Prevent → Lower the TTL to 60 s a day before planned changes.
More on DNS resolution failures
`dig app.example.com` returns `status: NXDOMAIN`.Beginner`dig` returns `status: SERVFAIL` for one domain while other domains resolve fine.Intermediate`curl: (6) Could not resolve host: api.example.com` inside a container but it resolves on the host.BeginnerJava service keeps connecting to an old IP long after the DNS record changed.IntermediateIn Kubernetes, external lookups from pods are slow and CoreDNS logs show many NXDOMAIN queries like `api.stripe.com.default.svc.cluster.local`.IntermediatePods intermittently log `dial tcp: lookup orders on 10.96.0.10:53: i/o timeout`, about 5 seconds per failure.Advanced