This information may be available on your router if you have access to it whether using static IP's or DHCP.
Another possibility would be Samba configuration files if the network is using Samba.
Just a couple of shots in the dark !
Dear All,
I am writing a bash script to find out hostname(machine name of win xp,2000 and 98 local area net work which doesn't have dns name resolution configured) form ip address. I've tried ping, traceroute and other various utilities, but unable to do that.
In windows, dosgives the hostname of the ip address owned by machine. But in linux, bash I've tried, couldn't found in man pages.Code:ping -a <ip address>
Is there any compatible command for that to accomplish my goal?
Is there any way to read header of the ip packet and get any information related to hostname after ping to that ip address?
Or any good way of doing that?
Pls help me to solve this problem in bash?
Thanks,
Last edited by lasanthaindika; 12-24-2007 at 05:07 AM. Reason: typing mistake
LASANTHA
This information may be available on your router if you have access to it whether using static IP's or DHCP.
Another possibility would be Samba configuration files if the network is using Samba.
Just a couple of shots in the dark !
Bookmarks