<html><p>&nbsp;Someone wants to use java and get a host name from an IP address.</p><p>I know how to do it lcoally through /etc/hosts BUT the host file does not</p><p>have names for every IP address reachable.</p><p>&nbsp;</p><p>Someone found http://www.faqs.org/rfcs/rfc953.html which looks like you are supposed to be</p><p>able to use port 101 of a machine and connect to it and echo a command and it should respond.</p><p>It also says HNAME should give the host name so I tried (from 192.168.5.191)</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo HNAME | nc -e cat 192.168.5.15 101&nbsp;</p><p>which I would guess should return the host name for machine 192.168.5.15, but I got</p><p>no response and a return code of 1.&nbsp; There is probably something I am overlooking.</p><p>Anyone know how to query this port?&nbsp; (both machines are CentOS 4.5)&nbsp;</p><p><br><br>
</p></html>