Interview Prep/Networking/DNS resolution failures

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

All Networking questions Roadmap: Networking for DevOps

More on DNS resolution failures