1 |
On Fri, Dec 09, 2005 at 05:08:55PM -0700, Richard Fish wrote |
2 |
|
3 |
> nscd does this, and is much simpler. It is already installed as part |
4 |
> of glibc. Just do rc-update -a nscd default. |
5 |
|
6 |
My system is connecting to the net, but nscd doesn't seem to be |
7 |
caching DNS requests. |
8 |
|
9 |
Yes, I did "rc-update add nscd default" and "/etc/init.d/nscd start". |
10 |
But "ping -c 4 google.com" sends traffic to 192.168.123.254 port 53 |
11 |
each time, even if only 30 seconds apart. This was confirmed by running |
12 |
"tcpdump -n dst port 53" in another console and watching the output. |
13 |
|
14 |
/etc/resolv.conf has only one line, which points at my combo ADSL |
15 |
router/modem that gets its DNS IP addresses from the PPPOE negotiation. |
16 |
|
17 |
nameserver 192.168.123.254 |
18 |
|
19 |
|
20 |
The un-commented portion of /etc/nscd.conf is like so |
21 |
enable-cache hosts yes |
22 |
positive-time-to-live hosts 3600 |
23 |
negative-time-to-live hosts 20 |
24 |
suggested-size hosts 211 |
25 |
check-files hosts yes |
26 |
|
27 |
...and /etc/nsswitch.conf says... |
28 |
|
29 |
# /etc/nsswitch.conf: |
30 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/nsswitch.conf,v 1.1 2005/05/17 00:52:41 vapier Exp $ |
31 |
|
32 |
passwd: compat |
33 |
shadow: compat |
34 |
group: compat |
35 |
|
36 |
# passwd: db files nis |
37 |
# shadow: db files nis |
38 |
# group: db files nis |
39 |
|
40 |
hosts: files dns |
41 |
networks: files dns |
42 |
|
43 |
services: db files |
44 |
protocols: db files |
45 |
rpc: db files |
46 |
ethers: db files |
47 |
netmasks: files |
48 |
netgroup: files |
49 |
bootparams: files |
50 |
|
51 |
automount: files |
52 |
aliases: files |
53 |
|
54 |
-- |
55 |
Walter Dnes <waltdnes@××××××××.org> In linux /sbin/init is Job #1 |
56 |
My musings on technology and security at http://tech_sec.blog.ca |
57 |
-- |
58 |
gentoo-user@g.o mailing list |