`dig +short` returns the right answer, but `dig @8.8.8.8` returns a different (old) IP.
BeginnerTroubleshootingDNS resolution failures
Answer
Likely causes → Your local resolver has the new answer; Google's cache still holds the old one until its TTL expires. Or split-horizon: your local resolver serves an internal view.
Diagnose →
dig app.example.com @8.8.8.8 +noall +answer # check remaining TTL
dig app.example.com @<authoritative-ns> +short
Fix → Wait for the TTL, or use Google's cache flush page for public names. If it's split-horizon, that's expected behaviour.
Prevent → Lower TTLs before migrations.
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.BeginnerA DNS change was made 2 hours ago, but some users still reach the old IP.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`.Intermediate