Operating Systems

Users reach an intranet site by IP address but not by name. Which command tests whether DNS server 10.0.0.2 itself resolves intranet.example.com, regardless of the workstation's configured resolver?

Show the answer

Correct answerB. dig @10.0.0.2 intranet.example.com

AWhy not this: traceroute shows the path to the DNS server but does not test whether it resolves the name.

BWhy this is right: The @ option directs dig to query 10.0.0.2 for the name and displays that server's answer.

CWhy not this: dig -x performs a reverse lookup of 10.0.0.2, which does not resolve intranet.example.com.

DWhy not this: ping resolves the name through the configured resolver, not the specified server, and only tests reachability.

dig with @10.0.0.2 sends the query directly to that DNS server and shows its answer. dig -x is tempting, but it does a reverse lookup of the IP address instead of resolving the name.