How do I get nscd working?

Walter Dnes waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Wed Dec 21 04:43:03 UTC 2005


  My system is connecting to the net, but nscd doesn't seem to be
caching DNS requests.

  Yes, I did "rc-update add nscd default" and "/etc/init.d/nscd start".
But "ping -c 4 google.com" sends traffic to 192.168.123.254 port 53
each time, even if only 30 seconds apart.  This was confirmed by running
"tcpdump -n dst port 53" in another console and watching the output.

  /etc/resolv.conf has only one line, which points at my combo ADSL
router/modem that gets its DNS IP addresses from the PPPOE negotiation.
nameserver 192.168.123.254


  The un-commented portion of /etc/nscd.conf is like so
	enable-cache		hosts		yes
	positive-time-to-live	hosts		3600
	negative-time-to-live	hosts		20
	suggested-size		hosts		211
	check-files		hosts		yes

...and /etc/nsswitch.conf says...

# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/nsswitch.conf,v 1.1 2005/05/17 00:52:41 vapier Exp $

passwd:      compat
shadow:      compat
group:       compat

# passwd:    db files nis
# shadow:    db files nis
# group:     db files nis

hosts:       files dns
networks:    files dns

services:    db files
protocols:   db files
rpc:         db files
ethers:      db files
netmasks:    files
netgroup:    files
bootparams:  files

automount:   files
aliases:     files

-- 
Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org> In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list