Reconnaissance and Enumeration
A Bash script runs dig A against example.com. The tester also wants the hosts that handle the domain's email. Which record type should the script query?
Show the answer
Correct answerD. MX
AWhy not this: NS records list authoritative name servers, not mail handlers.
BWhy not this: CNAME records alias one name to another and do not identify mail servers.
CWhy not this: PTR records map an IP address back to a hostname for reverse lookups.
DWhy this is right: MX records name the servers that accept mail for the domain.
MX records list the mail exchangers for a domain, so querying MX adds mail hosts to the gathered data. NS records only name the authoritative DNS servers, which is a different set of hosts.