nerdexam
LPI

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.

The Linux Operating System

Question

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

Options

  • Adnsname
  • Bdns
  • Cquery
  • Dhost
  • Eiplookup

How the community answered

(29 responses)
  • B
    3% (1)
  • C
    3% (1)
  • D
    86% (25)
  • E
    7% (2)

Why each option

The `host` command is a standard DNS lookup utility that resolves hostnames to IP addresses and vice versa.

Adnsname

`dnsname` is not a standard Linux command and does not exist in typical distributions.

Bdns

`dns` is not a recognized command-line utility for DNS resolution on Linux or other common platforms.

Cquery

`query` is not a standalone DNS resolution tool in standard Linux environments.

DhostCorrect

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`.

Eiplookup

`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

#DNS resolution#host command#network tools

Community Discussion

No community discussion yet for this question.

Full 010-160 Practice