Interview Prep/Networking/DNS resolution failures

`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.

All Networking questions Roadmap: Networking for DevOps

More on DNS resolution failures