If you ping a hostname, you can find the IP address (if DNS server and/or hostname are correctly configured). But sometimes you have the IP address and you need to know which host is using this IP address.
Procedure
To find the hostname using the IP address,
If DNS is used:
In the DOS window, type nslookup <ipaddress>. See below for example:
If the connection is using NetBIOS over TCP/IP and if it's in the cache:
In the DOS window, type nbtstat -A <ipaddress>. See below for example:
drive:\>nbtstat -A 10.31.224.99
Local Area Connection:
Node IPAddress: [10.31.135.199] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
GSSWSRV02 <00> UNIQUE Registered
GENT <00> GROUP Registered
GSSWSRV02 <20> UNIQUE Registered
GENT <1E> GROUP Registered
MAC Address = 00-06-5B-F8-06-46
Using the ping command:
In the DOS window, type ping -a <ipaddress>. See below for example:
drive:\>ping -a 10.31.224.99
Pinging gsswsrv02.gent.esko-graphics.com [10.31.224.99] with 32 bytes of da
Reply from 10.31.224.99: bytes=32 time<1ms TTL=127
Reply from 10.31.224.99: bytes=32 time<1ms TTL=127
Reply from 10.31.224.99: bytes=32 time<1ms TTL=127
Reply from 10.31.224.99: bytes=32 time<1ms TTL=127