nerdexam
CompTIA

SY0-501 · Question #206

A security analyst is testing both Windows and Linux systems for unauthorized DNS zone transfers within a LAN on comptia.org from example.org. Which of the following commands should the security…

The correct answer is A. nslookup C. dig -axfr [email protected]. DNS zone transfer testing requires specific tools that can query authoritative DNS servers for complete zone data. Both nslookup (cross-platform) and dig (Linux) support zone transfer requests using AXFR query type.

Submitted by fatema_kw· Mar 4, 2026Security operations

Question

A security analyst is testing both Windows and Linux systems for unauthorized DNS zone transfers within a LAN on comptia.org from example.org. Which of the following commands should the security analyst use? (Select two.)

Options

How the community answered

(58 responses)
  • A
    74% (43)
  • B
    7% (4)
  • D
    3% (2)
  • E
    14% (8)
  • F
    2% (1)

Why each option

DNS zone transfer testing requires specific tools that can query authoritative DNS servers for complete zone data. Both nslookup (cross-platform) and dig (Linux) support zone transfer requests using AXFR query type.

AnslookupCorrect

nslookup is available on both Windows and Linux and can be used interactively to perform DNS zone transfers by setting the query type to AXFR and specifying the target DNS server, making it suitable for cross-platform testing as required by the scenario.

Bnslookup

Although nslookup appears twice in the choices, choice B is a duplicate and is not independently distinct from choice A; only one instance of nslookup is needed as the correct cross-platform tool.

Cdig -axfr [email protected]Correct

The 'dig -axfr [email protected]' command uses dig's AXFR (Authoritative Zone Transfer) flag to request a full zone transfer of the comptia.org zone from the DNS server at example.org, directly testing whether unauthorized zone transfers are permitted on the target server.

Dipconfig/flushDNS

ipconfig /flushdns is a Windows command that clears the local DNS resolver cache and has no capability to test or perform DNS zone transfers on a remote server.

Eifconfig eth0 down

ifconfig eth0 down is a Linux command that disables a network interface entirely, which is a network configuration action and is completely unrelated to DNS zone transfer testing.

F[email protected] comptia.org

While 'dig @example.org comptia.org' queries the example.org DNS server for A records of comptia.org, it does not request an AXFR zone transfer; the missing '-axfr' flag means it performs a standard lookup rather than a zone transfer test.

Concept tested: DNS zone transfer testing using nslookup and dig AXFR

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup

Topics

#DNS zone transfer#nslookup#dig#reconnaissance

Community Discussion

No community discussion yet for this question.

Full SY0-501 Practice