nerdexam
CompTIA

220-802 · Question #14

A technician needs to use a command line tool to determine the network name and the IP address of a resource. Which of the following command line tools will provide an IP address when given a name?

The correct answer is D. nslookup. nslookup is the command-line tool specifically designed to query DNS servers and resolve a hostname to its IP address.

Networking

Question

A technician needs to use a command line tool to determine the network name and the IP address of a resource. Which of the following command line tools will provide an IP address when given a name?

Options

  • Averify
  • Btracert
  • Cipconfig
  • Dnslookup

How the community answered

(55 responses)
  • A
    2% (1)
  • B
    5% (3)
  • C
    2% (1)
  • D
    91% (50)

Why each option

nslookup is the command-line tool specifically designed to query DNS servers and resolve a hostname to its IP address.

Averify

verify is a legacy DOS command that confirms whether data is written correctly to disk and has no DNS or network name resolution capability.

Btracert

tracert traces the network path (hop-by-hop) to a destination and can display IP addresses, but its purpose is path analysis, not name-to-IP resolution.

Cipconfig

ipconfig displays the local machine's network configuration (IP, subnet, gateway) and does not resolve remote hostnames to IP addresses.

DnslookupCorrect

nslookup (name server lookup) sends queries directly to a DNS server and returns the resolved IP address for a given hostname. It is the standard cross-platform tool for DNS name-to-address resolution and can also perform reverse lookups.

Concept tested: DNS name resolution using nslookup

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup

Topics

#nslookup#DNS resolution#command line tools#IP address lookup

Community Discussion

No community discussion yet for this question.

Full 220-802 Practice