i need to find the host name of a UNIX host whose IP is known with out login to that UNIX host
A:
You can use traceroute command as well.
http://linux.die.net/man/8/traceroute
just use the traceroute it will show you the routing path with host names (IPs resolved)
Chathuranga Chandrasekara
2009-03-18 09:35:22
+2
A:
You can do a reverse DNS lookup with host
, too. Just give it the IP address as an argument:
$ host 192.168.0.10
server10 has address 192.168.0.10
unbeknown
2009-03-18 09:43:53
A:
The other answers here are correct - use reverse DNS lookups. If you want to do it via a scripting language (Python, Perl) you could use the gethostbyaddr API.
Moshe
2009-03-18 09:46:31