Interview Prep/Networking/DNS resolution failures

DNS lookups fail with `;; Truncated, retrying in TCP mode` then `connection timed out; no servers could be reached`.

AdvancedTroubleshootingDNS resolution failures
Answer

Likely causes → The response is larger than the UDP limit (big TXT, many records, DNSSEC), the resolver retries over TCP/53, and TCP/53 is blocked by a firewall or NACL.

Diagnose →

dig TXT example.com +notcp
dig TXT example.com +tcp
dig TXT example.com +bufsize=1232

Fix → Allow TCP/53 alongside UDP/53 everywhere DNS flows. It is required, not optional.

Prevent → Firewall templates always pair UDP and TCP 53; keep TXT records trimmed.

All Networking questions Roadmap: Networking for DevOps

More on DNS resolution failures