SUMMARY: nscd (Name Server Cache Daemon)

From: Richard Pieri (ratinox@unilab.dfci.harvard.edu)
Date: Thu Apr 25 1996 - 13:59:26 CDT


-----BEGIN PGP SIGNED MESSAGE-----

I received one somewhat hesitant response which contained nothing that I
had not already garnered from the sparse man pages. ncsd, Name Server
Cache Daemon, caches passwd, group, and hosts lookups, including network
lookups (DNS, NIS/NIS+).

Since then we have stumbled onto a "problem", the problem with any
cached data: when new zone data is loaded into the nameserver, the data
in the nscd cache will be rendered obsolete. This data is not
automatically purged/updated when bind loads a zone.

Solutions:

* Do not run nscd (remove the startup script from /etc/rc2.d)

  This is best for machines running nameservers and are also NIS/NIS+
  masters or slaves, as the servers are already caching the same data
  nscd would. Also good for nameservers and clients that are not using
  NIS/NIS+ and are connected by a fast, unloaded network.

* Every time zone data is loaded, kill all nscds and restart at the end
  of the load, or render the cache data invalid with 'nscd -i hosts'.

  This is probably not practical for anything other than the smallest of
  networks.

* Disable nscd's hosts caching, allowing bind to do that alone (edit
  /etc/nscd.conf, add a line that reads 'enable-cache hosts no'; by
  default such a line is there and simply needs to be uncommented).

  A good choice for nameservers that are getting NIS/NIS+ data from
  other servers.

* Leave nscd running with full caching enabled, and cope with the
  10-minute TTL for cached data (default TTL can be modified in
  /etc/nscd.conf).

  What you have left if the first three options simply will not do. You
  may or may not wish to disable parts of the nscd cache that you feel
  should always be retrieved from the appropriate server(s), or are
  simply not necessary for your particular setup.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3
Charset: noconv

iQCVAwUBMX/Lj56VRH7BJMxHAQFmtwQAlGQvD626agYpl/ip3hssC46S0+d2iRoo
Xwc7eQIuMRHfcxi0vTqbVnx5/NOZDMaA5sOQhte7gNyXuovxeS5+ga5xsPXTGWFp
NJ4ad9jy3eA1LF2ZZlnMAjNmWswpn9BOUNYPj4suD3w0wjNtJ9Pw7IciP6xfoyld
fRikBfj3UtQ=
=/YkE
-----END PGP SIGNATURE-----

-- 
Richard Pieri/Information Services \ Never sleep alone when you can sleep on
<ratinox@unilab.dfci.harvard.edu>   \ someone's face. -A cat's guide to life
http://www.dfci.harvard.edu/         \ 



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:58 CDT