How to determine the computer name from a command prompt (have IP address)
Posted on 2006-11-16
Does anyone know of a command in a command prompt (windows XP) to determine what the computer name is when I have an IP address? Currently, I have to go to the domain controller, open up the DHCP server, and search through the active leases to find out what the computer name is. I am trying to track down certain computers on my network with certain internet connections, and my firewall only reports the ip address (of course) and I'd like to quickly determine what the name of the computer is for the ip address that the firewall is giving.
It's kind of frustrating that the simple ping command will give IP address if you have a computer name, but not vice versa. For example, if I ping "george-pc" it will return what the ipaddress is for George's PC. If I ping the ip address, it doesn't tell me the computer name.
By the way, I have a single Windows 2003 domain controller, an exchange server and about 35 client machines...mostly WinXP.