GSLC · Question #568
Which of the following firewall rules only denies DNS zone transfers?
The correct answer is C. deny tcp any any port 53. DNS zone transfers use TCP port 53 for large data transfers, so a rule denying TCP on port 53 blocks only zone transfers while leaving normal UDP-based DNS queries unaffected.
Question
Which of the following firewall rules only denies DNS zone transfers?
Options
- Adeny udp any any port 53
- Bdeny ip any any
- Cdeny tcp any any port 53
- Ddeny all dns packets
How the community answered
(20 responses)- A10% (2)
- B5% (1)
- C80% (16)
- D5% (1)
Why each option
DNS zone transfers use TCP port 53 for large data transfers, so a rule denying TCP on port 53 blocks only zone transfers while leaving normal UDP-based DNS queries unaffected.
Denying UDP on port 53 would block standard DNS query and response traffic, not zone transfers, because normal DNS lookups use UDP port 53.
Denying all IP traffic from any source to any destination would block all network communication entirely, which is far broader than only blocking DNS zone transfers.
DNS zone transfers are conducted over TCP port 53 because the full zone data often exceeds the 512-byte limit of UDP DNS packets, requiring the reliability of TCP. Denying TCP traffic on port 53 specifically targets zone transfer requests without disrupting standard DNS name resolution, which relies on UDP port 53. This makes it the precise and correct rule to block only zone transfers.
'deny all dns packets' is not valid or standard firewall rule syntax, and even conceptually it would block all DNS traffic indiscriminately, not just zone transfers.
Concept tested: Firewall rule blocking DNS zone transfers via TCP port 53
Source: https://www.rfc-editor.org/rfc/rfc5936
Topics
Community Discussion
No community discussion yet for this question.