blob: 3eb08ab68ade0764b23d1ffdc2346c6ddb68e017 [file] [log] [blame]
Doug Kehn1fe81f02015-12-02 08:56:17 -06001# /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