During an external assessment, a penetration tester must quickly identify which host accepts incoming email for the target organization's primary domain, mainoffice.org. Using a single DNS query from a Linux workstation, which command will provide that information most directly?
The nslookup -type=mx mainoffice.org command limits the query to MX records, which list the mail exchangers responsible for receiving inbound email for the domain. Ping and traceroute only test network reachability and path characteristics, while dig -x performs a reverse lookup that attempts to map an IP address back to a hostname and therefore cannot reveal MX information for the domain.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an MX record in DNS?
Open an interactive chat with Bash
How does nslookup work?
Open an interactive chat with Bash
Why is dig used for DNS queries, and why is it incorrect here?