nerdexam
CompTIA

SK0-004 · Question #330

When running a Windows server, which option is used with the ping command to convert numerical addresses to host names?

The correct answer is B. -a. On Windows, the ping -a option performs a reverse DNS lookup on the destination IP address and displays the corresponding hostname in the output. This is useful for identifying a host by name rather than by IP.

Troubleshooting

Question

When running a Windows server, which option is used with the ping command to convert numerical addresses to host names?

Options

  • A-r
  • B-a
  • C-v
  • D-n

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    93% (26)
  • D
    4% (1)

Why each option

On Windows, the ping -a option performs a reverse DNS lookup on the destination IP address and displays the corresponding hostname in the output. This is useful for identifying a host by name rather than by IP.

A-r

-r count records the route that packets take across up to 9 intermediate hops; it does not perform name resolution.

B-aCorrect

The -a switch instructs the Windows ping command to resolve the target's IP address to a hostname via reverse DNS before sending packets. The resolved hostname is then shown at the top of the ping output alongside the IP address, aiding in host identification.

C-v

-v is not a valid switch in the Windows ping implementation and does not perform address-to-hostname conversion.

D-n

-n count specifies the number of ICMP echo request packets to send; it has no effect on DNS name resolution.

Concept tested: Windows ping reverse DNS hostname resolution option

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

Topics

#ping command#DNS resolution#host names#Windows networking

Community Discussion

No community discussion yet for this question.

Full SK0-004 Practice