Doug Kehn | 1fe81f0 | 2015-12-02 08:56:17 -0600 | [diff] [blame] | 1 | # /etc/nscd.conf |
| 2 | # |
| 3 | # An example Name Service Cache config file. This file is needed by nscd. |
| 4 | # |
| 5 | server-user unscd |
| 6 | debug-level 0 |
| 7 | |
| 8 | enable-cache passwd yes |
| 9 | positive-time-to-live passwd 600 |
| 10 | negative-time-to-live passwd 20 |
| 11 | suggested-size passwd 1001 |
| 12 | check-files passwd yes |
| 13 | |
| 14 | enable-cache group yes |
| 15 | positive-time-to-live group 3600 |
| 16 | negative-time-to-live group 60 |
| 17 | suggested-size group 1001 |
| 18 | check-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. |
| 27 | enable-cache hosts no |
| 28 | positive-time-to-live hosts 3600 |
| 29 | negative-time-to-live hosts 20 |
| 30 | suggested-size hosts 1001 |
| 31 | check-files hosts yes |
| 32 | |
| 33 | # unscd does not support services caching |