Huamin Posted January 12, 2005 Report Share Posted January 12, 2005 Hi all, I just want to have the command for gathering the name of the pinged PC.Thks & Bst Rgds,HuaMin Quote Link to comment Share on other sites More sharing options...
scuzzman Posted January 12, 2005 Report Share Posted January 12, 2005 Is said PC on a network or over the internet? Quote Link to comment Share on other sites More sharing options...
homecomputeraid Posted January 12, 2005 Report Share Posted January 12, 2005 Ping -a then the IP Address. If name resolution is working, that should give you the name associated with an IP Address.For example, ping -a 198.133.219.25 will result in the following:C:\>ping -a 198.133.219.25Pinging www.cisco.com [198.133.219.25] with 32 bytes of data:In some situations name resolutions is not enabled (like on many firewalls).Hope that helps! :) Quote Link to comment Share on other sites More sharing options...
Huamin Posted January 12, 2005 Author Report Share Posted January 12, 2005 Hi,But I have only had such results:C:\cmp>ping -a 10.1.1.51Pinging 10.1.1.51 with 32 bytes of data:Reply from 10.1.1.51: bytes=32 time=335ms TTL=122Reply from 10.1.1.51: bytes=32 time=334ms TTL=122Reply from 10.1.1.51: bytes=32 time=333ms TTL=122Reply from 10.1.1.51: bytes=32 time=334ms TTL=122Ping statistics for 10.1.1.51: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 333ms, Maximum = 335ms, Average = 334msAre there any other switches for 'ping'?Bst Rgds,HuaMin Quote Link to comment Share on other sites More sharing options...
Huamin Posted January 12, 2005 Author Report Share Posted January 12, 2005 Hi Ted, I think it's OK for that I think the reason is that I do not have an URL name for that IP - '10.1.1.51', isn't it?Bst Rgds,HuaMin Quote Link to comment Share on other sites More sharing options...
homecomputeraid Posted January 12, 2005 Report Share Posted January 12, 2005 There are many switches for ping. Just type ping /? to see them. If it's not resolving names, either the device is set not to give out a name, or DNS is not working. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.