A network security engineer is investigating a DNS operational failure between an internal primary name server and a DMZ-hosted secondary name server following a firewall policy hardening exercise. The secondary server fails to perform full zone transfers (AXFR), and external resolvers fail to receive DNSSEC-signed responses that exceed 512 bytes. The engineer executes the following diagnostic command from the secondary server:
text
$ dig @172.16.10.10 example.com AXFR +dnssec
;; Truncation detected; requesting TCP fallback...
;; Connection failed: connection timed out
;; Communications error to 172.16.10.10#53: timed out
Which protocol behavior explains these combined failures, and what resolution must be implemented on the perimeter firewall?
- Zone transfers (AXFR) and truncated DNS responses (TC flag set) require TCP port 53 transport; the firewall must be updated to allow inbound and outbound TCP port 53 traffic between the name servers.Cevap
- BDNS zone transfers and large payload responses operate exclusively over UDP port 53; the primary server must be reconfigured to split records into multiple CNAME alias entries to avoid packet loss.
- CFallback from UDP to TCP occurs only during administrative diagnostic queries; the firewall should maintain a block on TCP port 53 and instead rely on UDP port 53 with larger MTU sizing.
- DDNSSEC enforcement and zone synchronization require secure shell transport; the firewall policy must be modified to permit traffic targeted to SSH on TCP port 22.
Cevap
Zone transfers (AXFR) and truncated DNS responses (TC flag set) require TCP port 53 transport; the firewall must be updated to allow inbound and outbound TCP port 53 traffic between the name servers.
DNS relies on both UDP and TCP on port 53. While standard lookup queries utilize UDP for speed and low overhead, zone transfers (AXFR) and responses that exceed maximum UDP payload sizes (such as large DNSSEC key responses) trigger the Truncation (TC) flag in the DNS header. When the TC flag is set, the client or secondary server MUST re-query over TCP port 53. If a firewall blocks TCP port 53, both zone transfers and large DNSSEC query resolutions will fail.
Adım Adım Çözüm
Anahtar Kavram
DNS Transport Layer Selection (UDP 53 vs TCP 53) and AXFR Zone Transfer Operations
Tahmini Süre:3m 0s