-1

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

MadHatter
  • 79,770
  • 20
  • 184
  • 232
Martin
  • 9
  • 1
  • 1

2 Answers2

4

Two methods:

  1. Ping -a ip address

  2. 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