ns problems?

Rick Stevens rstevens at internap.com
Tue Sep 25 16:36:19 UTC 2007


On Tue, 2007-09-25 at 10:39 -0500, Fred Grant wrote:
> I'm trying to set up a new printer but I can't access the CUPS install
> printer page (I forget the exact address):  I get "server not found".
> nslookup hangs.  hp-setup gives error and hangs with "trying to connect
> to hpssd on localhost : 2207".

CUPS configuration is done by pointing your browser (firefox) at
127.0.0.1:631 or localhost:631.

I have no idea why you'd be worried about nslookup in this scenario.
That's used to check DNS, not CUPS.  All you have to worry about is
that you have a line in /etc/hosts that reads:

127.0.0.1	localhost.localdomain    localhost

> I don't know anything about how this is supposed to work, firewall?
> SELinux is off.

This should have no effect, since you're using the /etc/hosts file to
resolve the "localhost:631" URL above.  You don't even have to have that
if you use the "127.0.0.1:631" URL.

However, if you do want DNS to work, then you have to have a valid
/etc/resolv.conf file, iptables must allow traffic over TCP and UDP
port 53 and your /etc/nsswitch.conf must contain the line:

	hosts:	files,dns

which it almost certainly does.  Unless you're doing weird stuff, I'd
enable SELinux--particularly if your machine is exposed to the Internet.

----------------------------------------------------------------------
- Rick Stevens, Principal Engineer             rstevens at internap.com -
- CDN Systems, Internap, Inc.                http://www.internap.com -
-                                                                    -
-      Do you know how to save five drowning lawyers?  No?  GOOD!    -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list