Question

Difficulty: Very hardTroubleshooting DNS and Name Resolution Services

A system administrator is troubleshooting DNS resolution issues on a Linux workstation. Standard hostname lookups for small A records succeed without issue. However, when requesting DNSSEC-signed responses from an internal DNS server, queries fail. The administrator runs the following command to diagnose the problem:

$ dig +dnssec @192.168.10.5 security-test.lab.internal
;; Truncated, retrying in TCP mode.
;; connection timed out; no servers could be reached

Which TWO of the following statements accurately identify the root cause of this failure and the appropriate corrective action?

  1. An intermediate firewall rule is permitting UDP port 53 traffic but blocking TCP port 53 traffic.Answer
  2. The administrator must update security group/firewall rules to allow outbound TCP port 53 traffic to the DNS server.Answer
  3. C
    The DNS server is missing an authoritative AAAA record for the queried host, preventing EDNS0 buffer negotiation.
  4. D
    The client resolver must execute a 3-way TCP handshake before any UDP port 53 payload exchange can occur for DNSSEC validation.

Answer

The failure is caused by an intermediate firewall blocking TCP port 53 traffic, which is required when DNSSEC responses set the Truncation (TC) bit. The issue is resolved by updating firewall rules to permit TCP port 53 traffic between the host and DNS server.
DNS queries operate primarily over UDP port 53. However, when responses (such as DNSSEC keys and signatures) exceed MTU or EDNS0 payload buffer limits, the server returns a response with the Truncation (TC) bit set. The resolver then retries over TCP port 53. If an intermediate firewall permits UDP port 53 but blocks TCP port 53, the client experiences a connection timeout during the retry. Permitting TCP port 53 on network firewalls resolves this truncation fallback failure.

Step-by-Step Solution

1
Analyze the CLI output header
The message ';; Truncated, retrying in TCP mode.' indicates that the DNS response exceeded UDP buffer limits, causing the server to set the TC (Truncation) header bit.
When the TC bit is set, RFC standards require DNS clients to fail over from UDP port 53 to TCP port 53 to transmit the complete payload.
2
Evaluate the subsequent failure message
The line ';; connection timed out; no servers could be reached' shows that the workstation attempted a TCP handshake to 192.168.10.5:53 but received no response.
Successful UDP resolution combined with TCP connection timeouts strongly points to firewall rules or access control lists filtering TCP port 53 while leaving UDP port 53 open.
3
Determine the necessary remediation step
Modify network and host firewall policies to permit TCP port 53 traffic.
Allowing TCP port 53 alongside UDP port 53 enables fallback resolution for large resource records like DNSSEC and TXT records.

Key Concept

DNS Truncation (TC Bit) and TCP Port 53 Fallback
Estimated Time:2m 30s
Rate this question