getHostName() broken?

Greg Lewis glewis at eyesbeyond.com
Mon Aug 23 09:21:35 PDT 2004


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 at 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 at eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis at FreeBSD.org


More information about the freebsd-java mailing list