Reconnaissance and Enumeration

A tester finds that ns1.example.com may be misconfigured to answer any requester. Which command BEST attempts to retrieve every record in the example.com zone from it?

Show the answer

Correct answerA. dig axfr example.com @ns1.example.com

AWhy this is right: AXFR requests a full zone transfer, which returns all records if the server allows it.

BWhy not this: It performs one reverse lookup for a single IP address, not the zone.

CWhy not this: It guesses subdomains from a wordlist and cannot return records that are not guessed.

DWhy not this: It returns only the mail exchanger records, not the whole zone.

An AXFR query asks the name server for a full zone transfer, returning all records if transfers are not restricted. A wordlist-based gobuster dns run only guesses subdomain names and cannot return the full zone.