A system administrator is troubleshooting an email delivery problem for the domain example.com. To diagnose the issue, the administrator needs to identify the mail servers responsible for handling email for this domain by querying DNS. Which of the following commands will accomplish this task?
The correct command is dig mx example.com. The dig command is a network administration tool for querying the Domain Name System (DNS). The mx argument specifies that dig should query for Mail Exchanger (MX) records. MX records are essential for routing email, as they point to the servers that accept incoming mail for a domain.
dig a example.com is incorrect because it queries for the A record (IPv4 address) of the domain, not the mail servers.
dig ns example.com is incorrect as it queries for the authoritative Name Server (NS) records for the domain, which list the servers that contain the domain's DNS records, but not specifically the mail servers.
dig -mx example.com is incorrect because it misuses command-line options. It appears to combine -m (enable memory usage debugging) and -x (reverse DNS lookup), which is not the correct way to specify a query for an MX record.
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
What does the `dig` command do?
Open an interactive chat with Bash
Why is `dig a example.com` incorrect for querying mail servers?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access