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.
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)- A4% (1)
- B93% (26)
- D4% (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.
-r count records the route that packets take across up to 9 intermediate hops; it does not perform name resolution.
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.
-v is not a valid switch in the Windows ping implementation and does not perform address-to-hostname conversion.
-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
Community Discussion
No community discussion yet for this question.