[SunRescue] Dumb newbie question :-)

Greg A. Woods rescue at sunhelp.org
Tue Mar 27 12:53:14 CST 2001


[ On Monday, March 26, 2001 at 12:50:33 (-0500), Loomis, Rip wrote: ]
> Subject: RE: [SunRescue] Dumb newbie question :-)
>
> Oops...I missed replying to this one.
> 
> The key thing you're missing to get DNS
> working is the dain-bramaged "name service
> cache daemon" (nscd), which is controlled
> by nsswitch.conf.
> 
> Edit /etc/nsswitch.conf, and ensure that
> the line which begins "hosts" contains the
> word "dns" somewhere...our usual config
> on systems that aren't using NIS/NIS+
> is:
> 
> hosts:	dns	files
> 
> Alternatively, you can turn off nscd entirely
> and things Should Just Work (YMMV).

Edit /etc/nscd.conf and *uncomment* the line that says:

	enable-cache            hosts           no

Note the negative logic here.  You do not ever want nscd caching names
(unless of course you're totally isolated from any DNS).  It is
completely broken in all corner cases and all error handling (especially
negative response caching).

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods at acm.org>      <robohack!woods>
Planix, Inc. <woods at planix.com>; Secrets of the Weird <woods at weird.com>



More information about the rescue mailing list