A Linux engineer needs to get information from the foo.com domain mail servers. Which of the following network tools should the engineer use?
Correct Answer: C
To query Mail Exchange (MX) records for a domain, use dig:dig mx foo.com To query Mail Exchange (MX) records for a domain, use dig:dig mx foo.com To query Mail Exchange (MX) records for a domain, use dig:dig mx foo.com MX records specify which mail servers handle email for a domain.
Why the other options are incorrect?
A). arp mx foo.com # Incorrect, arp is used for MAC address resolution, not DNS lookups.
B). nc mx foo.com # Incorrect, nc (netcat) is used for networking and port scanning, not DNS queries.
D). route mx foo.com # Incorrect, route manages routing tables, not DNS records.
References:
Linux dig Command - Linux Documentation