Is there a way to find out hostnames only by having the IP's of the hosts, while only using Windows' command line (cmd)?
Asked
Active
Viewed 6,459 times
2 Answers
4
Two methods:
Ping -a
ip address
nslookup
ip address
(This will only work if you have an rDNS zone setup).

joeqwerty
- 109,901
- 6
- 81
- 172
-
I'd add a third, `nbtstat -A IpAddress`. When there is no DNS, there might still be NetBIOS. – Mark Dec 04 '12 at 18:50
1
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.)

Wesley
- 32,690
- 9
- 82
- 117