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