xref: /OK3568_Linux_fs/buildroot/package/unscd/nscd.conf (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# /etc/nscd.conf
2#
3# An example Name Service Cache config file.  This file is needed by nscd.
4#
5server-user unscd
6debug-level 0
7
8enable-cache            passwd  yes
9positive-time-to-live   passwd  600
10negative-time-to-live   passwd  20
11suggested-size          passwd  1001
12check-files             passwd  yes
13
14enable-cache            group   yes
15positive-time-to-live   group   3600
16negative-time-to-live   group   60
17suggested-size          group   1001
18check-files             group   yes
19
20# hosts caching is broken with gethostby* calls, hence is now disabled
21# by default. Specifically, the caching does not obey DNS TTLs, and
22# thus could lead to problems if the positive-time-to-live is
23# significantly larger than the actual TTL.
24#
25# You should really use a caching nameserver instead of nscd for this
26# sort of request. However, you can easily re-enable this by default.
27enable-cache            hosts   no
28positive-time-to-live   hosts   3600
29negative-time-to-live   hosts   20
30suggested-size          hosts   1001
31check-files             hosts   yes
32
33# unscd does not support services caching
34