010-160 · Question #6
Which of the following commands can be used to resolve a DNS name to an IP address?
The correct answer is D. host. The host command is a standard DNS lookup utility that resolves hostnames to IP addresses and vice versa.
Question
Options
- Adnsname
- Bdns
- Cquery
- Dhost
- Eiplookup
How the community answered
(29 responses)- B3% (1)
- C3% (1)
- D86% (25)
- E7% (2)
Why each option
The `host` command is a standard DNS lookup utility that resolves hostnames to IP addresses and vice versa.
`dnsname` is not a standard Linux command and does not exist in typical distributions.
`dns` is not a recognized command-line utility for DNS resolution on Linux or other common platforms.
`query` is not a standalone DNS resolution tool in standard Linux environments.
The `host` command is a simple DNS lookup tool included in most Linux distributions as part of the BIND utilities package. Running `host <hostname>` queries the configured DNS resolver and returns the corresponding IP address, making it one of the standard commands for DNS resolution alongside `dig` and `nslookup`.
`iplookup` is not a real or standard DNS resolution command on Linux systems.
Concept tested: DNS name resolution using the host command
Source: https://man7.org/linux/man-pages/man1/host.1.html
Topics
Community Discussion
No community discussion yet for this question.