On Thu, 10 Sep 1998 13:34:08 -0700, Masuda, Bond wrote:

>Hello,
>
>I am having trouble getting reverse DNS lookups to work on Linux.
>Following is a snip of the code... this works on Windows 95, Windows NT,
>but not on Linux. The problem is that the getHostName method returns the
>ipString instead of the hostname... i.e., it returns something like
>10.2.6.15 instead of whatever.home.edu. The JDK version seems to not
>matter in this particular case... so I don't believe that is an issue. I
>am wondering if this might be a bug in the port of Java to linux.

First - have you tried that address in nslookup?

Just type:

        nslookup 10.2.6.15

If this does not return the name of the host then the problem is that
you either do not have the DNS setup or it is set up wrong or the host
really does not have a name.

[...]

>I would appreciate any help on this issue. Thanks in advance.

I wish I could help you more but on my machine your address does not
work but address on the net, such as 204.146.18.33 do work.  (That
should return something like www.ibm.com if I remember correctly...)


Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz

Reply via email to