CompTIA PenTest+ (PT0-003) free question 3 / 10 · Domain 2: Reconnaissance and Enumeration
During authorized information gathering, a tester asks a client's authoritative name server for a full zone transfer from the tester's address, and the server refuses the request. How does RFC 5936 regard such a restriction?
- As a setting that a zone administrator is unable to configure on the name server software
- As supported practice: implementations should be able to restrict AXFR sessions to specific clients
- As a protocol error: the standard requires a name server to hand its zone to a client that asks for it
- As a limit on UDP queries that applies to large zones transferred over that transport in practice
Show the answer and explanation
Answer: B
Why this is correct
RFC 5936 specifies the DNS zone transfer protocol (AXFR), and its Authorization section addresses who may request a zone. A zone administrator has the option to restrict AXFR access to a zone. This was not envisioned in the original design of the DNS but has emerged as a requirement as the DNS has evolved, and the document acknowledges the factual requirement to provide mechanisms to restrict AXFR. A DNS implementation should provide means to restrict AXFR sessions to specific clients.
Why the other options are wrong
"As a protocol error: the standard requires a name server to hand its zone to a client that asks for it" … The RFC says a zone administrator has the option to restrict AXFR access to a zone, and it acknowledges the factual requirement to provide mechanisms to restrict AXFR. A refusal is therefore a normal outcome.
"As a limit on UDP queries that applies to large zones transferred over that transport in practice" … The RFC states that AXFR sessions are restricted to TCP. A refusal of a zone transfer is an authorization matter, not a UDP size limit.
"As a setting that a zone administrator is unable to configure on the name server software" … The RFC titles its Section 5 Authorization and says a DNS implementation should provide means to restrict AXFR sessions to specific clients, with access granted by IP addresses and ranges, among other means.
Key points
The RFC also lists reasons for restricting AXFR, including a wish to keep the bulk version of the zone concealed and to prevent the servers from handling the load of serving transfers.