Subject: pkg/20343: netscape for OSF can't resolve localhost
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/14/2003 09:49:18
>Number:         20343
>Category:       pkg
>Synopsis:       netscape for OSF can't resolve localhost
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 14 09:50:01 PST 2003
>Originator:     Pavel Cahyna
>Release:        1.6_STABLE
NetBSD omega 1.6_STABLE NetBSD 1.6_STABLE (GENERIC) #0: Fri Nov 22 12:41:51 MET 2002     bouyer@java:/home/tmp/alpha/obj/sys/arch/alpha/compile/GENERIC alpha

If I ssh to an alpha machine and try to run Netscape (OSF binary)
with X11 forwarded over ssh, I get only the following error:
Error: Can't open display: localhost:10.0

(the environment variable DISPLAY is actually set to localhost:10.0 and 
native X11 programs work with that)
If localhost is replaced by in the DISPLAY variable, netscape
starts OK.

The resolution of localhost is probably confused by this line in 
::1                     localhost

If this line is commented out, netscape starts OK.	

It's sufficient to create the file /emul/osf1/etc/hosts .
It can even be empty.

This should probably be the responsibility of the osf1_lib package.