Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.