1 # This file is currently taken verbatim from the version distributed
2 # with GNU glibc's nscd with unused configurations removed
6 # An example Name Service Cache config file. This file is needed by nscd.
12 # threads <initial #threads to use>
13 # max-threads <maximum #threads to use>
14 # server-user <user to run server as instead of root>
15 # server-user is ignored if nscd is started with -S parameters
16 # stat-user (ignored; any user can stat)
17 # reload-count (ignored; unscd should never crash)
19 # restart-interval (ignored; unscd should never crash)
21 # enable-cache <service> <yes|no>
22 # positive-time-to-live <service> <time in seconds>
23 # negative-time-to-live <service> <time in seconds>
24 # suggested-size <service> <prime number>
25 # check-files <service> <yes|no>
26 # persistent <service> (ignored)
27 # shared <service> (ignored)
28 # auto-propagate <service> (ignored)
30 # Currently supported cache names (services): passwd, group, hosts
34 # logfile /var/log/nscd.log
40 enable-cache passwd yes
41 positive-time-to-live passwd 600
42 negative-time-to-live passwd 20
43 suggested-size passwd 1001
44 check-files passwd yes
46 enable-cache group yes
47 positive-time-to-live group 3600
48 negative-time-to-live group 60
49 suggested-size group 1001
52 # hosts caching is broken with gethostby* calls, hence is now disabled
53 # by default. Specifically, the caching does not obey DNS TTLs, and
54 # thus could lead to problems if the positive-time-to-live is
55 # significantly larger than the actual TTL.
57 # You should really use a caching nameserver instead of nscd for this
58 # sort of request. However, you can easily re-enable this by default.
60 positive-time-to-live hosts 3600
61 negative-time-to-live hosts 20
62 suggested-size hosts 1001
65 # unscd does not support services caching