nerdexam
CompTIA

N10-005 · Question #767

A technician is having trouble identifying a computer on a network. The technician has the IP address of the computer, but needs to find the hostname of the computer. Which of the following commands…

The correct answer is C. ping -a. The ping -a command resolves an IP address to its hostname using reverse DNS lookup, which is exactly what the technician needs.

Network troubleshooting

Question

A technician is having trouble identifying a computer on a network. The technician has the IP address of the computer, but needs to find the hostname of the computer. Which of the following commands should the technician use?

Options

  • Aipconfig /a
  • Bping -t
  • Cping -a
  • Dnetstat

How the community answered

(52 responses)
  • A
    4% (2)
  • B
    2% (1)
  • C
    87% (45)
  • D
    8% (4)

Why each option

The ping -a command resolves an IP address to its hostname using reverse DNS lookup, which is exactly what the technician needs.

Aipconfig /a

ipconfig /a is not a valid ipconfig switch; even valid ipconfig flags like /all only display the local machine's own network configuration, not remote hostnames.

Bping -t

ping -t sends continuous ping packets to a host but does not perform hostname resolution or display any DNS name for the target.

Cping -aCorrect

The ping -a flag performs a reverse DNS lookup, resolving the target IP address to its associated hostname before sending ICMP echo requests. This allows a technician to discover the hostname of a machine when only the IP address is known. No additional tools are required for this basic name resolution task.

Dnetstat

netstat displays active network connections and listening ports on the local machine, not hostname resolution for a remote IP address.

Concept tested: ping -a reverse DNS hostname lookup

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

Topics

#ping command#hostname resolution#reverse DNS#network commands

Community Discussion

No community discussion yet for this question.

Full N10-005 Practice