Linux Essentials (010-160) — Question 7

Which of the following commands can be used to resolve a DNS name to an IP address?

Answer options

Correct answer: D

Explanation

The correct answer is 'D' (host) because it is specifically designed to look up DNS names and return their associated IP addresses. The other options are not standard commands for resolving DNS names; for example, 'dnsname' and 'dns' are not recognized commands, while 'query' and 'iplookup' may not provide the same functionality as 'host'.