Is there any way to "ping" a WinXP computer and get the hostname?

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
I need to connect to a certain computer and I know the host name and a range of IP addresses. Long story short: looking up in DNS or DHCP is no help in this situation.

Is there some command I can run, similar to binging an IP address, but have the computer return it's name? I have access to Windows and linux boxes, so commands from either will work.
 

stash

Diamond Member
Jun 22, 2000
5,468
0
0
ping -a works in some situtations. Nbtstat -A <ip> is another option
 

bsobel

Moderator Emeritus<br>Elite Member
Dec 9, 2001
13,346
0
0
Originally posted by: JonnyBlaze
tracert 'ip' that will give you the host name as well.

Actually it won't, that just returns the reverse dns lookup result and the OP said "Long story short: looking up in DNS or DHCP is no help in this situation."
 

cjcox

Junior Member
Jun 10, 2005
3
0
0
Just fyi... a hostname remotely would have to be done making a client call into the host. Many of the answers here are merely looking up somebody's information about what the name to IP is (e.g. DNS or WINS). Since, in general, netbios is there, it's the probably the best query. So kudos to those suggesting that technique (nbtstat). ... while not perfect, it's closer than the others.