CNAME chain resolves, but the final name returns NXDOMAIN for some users.
AdvancedTroubleshootingDNS resolution failures
Answer
Likely causes → The CNAME target (e.g. a CDN or SaaS hostname) was deleted or is regional; dangling CNAME after deprovisioning; or resolvers cached a negative answer for the target.
Diagnose →
dig www.example.com +noall +answer # follow each hop
dig <target-hostname> @8.8.8.8
Fix → Point the CNAME at a live target or remove it immediately. A dangling CNAME to a released cloud resource is a subdomain takeover risk.
Prevent → Delete DNS records in the same change that removes the resource; scan for dangling records.
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