Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to find out hostnames only by having the IP's of the hosts, while only using Windows' command line (cmd)?

share|improve this question

Two methods:

  1. Ping -a ip address

  2. nslookup ip address (This will only work if you have an rDNS zone setup).

share|improve this answer
I'd add a third, nbtstat -A IpAddress. When there is no DNS, there might still be NetBIOS. – Mark Dec 4 '12 at 18:50

ping -a performs a reverse lookup in Windows parlance.

(This is not a guaranteed method since it relies on the likelihood of DNS being set up properly which is fairly unlikely. And by 'unlikely' I mean it's not.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.