]> git.donarmstrong.com Git - unscd.git/blob - debian/nscd.conf
Migrate to salsa (with donarmstrong.com as a backup)
[unscd.git] / debian / nscd.conf
1 # This file is currently taken verbatim from the version distributed
2 # with GNU glibc's nscd with unused configurations removed
3
4 # /etc/nscd.conf
5 #
6 # An example Name Service Cache config file.  This file is needed by nscd.
7 #
8 # Legal entries are:
9 #
10 #       logfile                 <file>
11 #       debug-level             <level>
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)
18 #       paranoia                (ignored)
19 #       restart-interval        (ignored; unscd should never crash)
20 #
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)
29 #
30 # Currently supported cache names (services): passwd, group, hosts
31
32
33
34 # logfile /var/log/nscd.log
35 # threads 14
36 # max-threads 32
37 server-user unscd
38 debug-level 0
39
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
45
46 enable-cache            group   yes
47 positive-time-to-live   group   3600
48 negative-time-to-live   group   60
49 suggested-size          group   1001
50 check-files             group   yes
51
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.
56 #
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.
59 enable-cache            hosts   no
60 positive-time-to-live   hosts   3600
61 negative-time-to-live   hosts   20
62 suggested-size          hosts   1001
63 check-files             hosts   yes
64
65 # unscd does not support services caching