On Fri, Dec 09, 2005 at 05:08:55PM -0700, Richard Fish wrote

> nscd does this, and is much simpler.  It is already installed as part
> of glibc.  Just do rc-update -a nscd default.

  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 <[EMAIL PROTECTED]> In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list

Reply via email to