Operating Systems

Which command-line tool is used to query a DNS server and return the IP address that a hostname resolves to?

Show the answer

Correct answerC. nslookup

AWhy not this: It shows local adapter settings; /displaydns only shows the local cache.

BWhy not this: It lists local connections, listening ports and statistics, not DNS answers.

CWhy this is right: It queries a DNS server and shows the IP address returned for a hostname.

DWhy not this: It measures loss and latency along each hop of a route, not DNS records.

nslookup sends queries to a DNS server and displays the records returned for a name. netstat lists local connections and ports; it does not query DNS servers.