`dig app.example.com` returns `status: NXDOMAIN`.
BeginnerTroubleshootingDNS resolution failures
Answer
Likely causes → The name doesn't exist in the zone: typo, record not created, record in the wrong zone (e.g. private hosted zone not associated), or delegation pointing to servers that don't have it.
Diagnose →
dig app.example.com +noall +answer +authority
dig NS example.com +short
dig @$(dig NS example.com +short | head -1) app.example.com # ask authoritative directly
Fix → Create the record in the zone that the registrar actually delegates to. Compare registrar NS with the hosted zone's NS set.
Prevent → Manage records in Terraform/OctoDNS and check delegation in CI.
More on DNS resolution failures
`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`.IntermediatePods intermittently log `dial tcp: lookup orders on 10.96.0.10:53: i/o timeout`, about 5 seconds per failure.Advanced