Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 2004 10:21:31 -0600
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Brad Karp <bkarp+@cs.cmu.edu>
Cc:        freebsd-java@freebsd.org
Subject:   Re: getHostName() broken?
Message-ID:  <20040823162131.GA16138@misty.eyesbeyond.com>
In-Reply-To: <200408231604.i7NG4Nrm058667@new.iagu.net>
References:  <20040823155154.GA15838@misty.eyesbeyond.com> <200408231604.i7NG4Nrm058667@new.iagu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 23, 2004 at 12:03:53PM -0400, Brad Karp wrote:
> Doesn't work for me, alas! Running your test code, the output is:
> 
> > $JAVAHOME/bin/java -cp . HostName
> 66.35.250.151
> 66.35.250.151
> 
> >Are you sure resolution works for you normally?  Can you run host(1) and
> >check that lookups succeed for the hosts?
> 
> Yes--this is my desktop host. Name resolution works flawlessly for me at all
> times on a daily basis. To wit:
> 
> > host 66.35.250.151
> 151.250.35.66.IN-ADDR.ARPA is a nickname for 151.0/24.250.35.66.IN-ADDR.ARPA
> 151.0/24.250.35.66.IN-ADDR.ARPA domain name pointer star.slashdot.org
> 
> My box:
> 
> > uname -a
> FreeBSD sewickley.research.intel-research.net 4.9-RELEASE FreeBSD 4.9-RELEASE #2: Sat May 15 03:06:11 EDT 2004     bkarp@sewickley.research.intel-research.net:/usr/src/sys/compile/SEWICKLEY  i386
> 
> > $JAVAHOME/bin/java -version
> java version "1.4.2-p5"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p5-bkarp_13_nov_2003_01_32)
> Java HotSpot(TM) Client VM (build 1.4.2-p5-bkarp_13_nov_2003_01_32, mixed mode)

That might be it.  Can you upgrade to 1.4.2p6 and try again?  I vaguely
recall there may have been a lookup fix in p6.

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040823162131.GA16138>