You should not have too, but if you want FQDN, then it looks like this might be
the best way. Otherwise you will have to jump throgh lots of hoops to check if
the value the jvm returns is really a FQDN.
--jason
On 13-Nov-98 Michael Sinz wrote:
> On Fri, 13 Nov 1998 10:01:30 -0800, Christopher Hinds wrote:
>
>>Try using a reverse DNS lookup with that host's IP address , you should
>>get
>>a fully qualified host name from that. This obviously means you will
>>have to use the DNS protocol on an open socket. The problem with NT is
>>it is using
>>WINS ( NT DNS) to resolve the name and that name returned is a host name
>>known to the NT Promary Domain controller and the WINS Service.
>>Mark Hofmann wrote:
>
> You should not need to do that much work - the JVM will do it for you
> when you give InetAddress an IP address and then as it for the host
> name. However, you are correct, the machine would need to be in DNS
> to support this.
>
> Note that if you are not DNS named, a fully qualified name will have
> little meaning.
>
> 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