I'm running the Bind nameserver on CentOS 4.2. Can anyone tell me where the cached lookups are stored and whether there is a way to view them? -- Iain M Lee
Kill -2 of named will cause it to dump the cache. Depends on whether it is running in a chrooted directory or non. Try /var/named/chroot/var/named then you should find something like dump.db if my memory serves me correctly. Sam
Iain M Lee wrote:>I'm running the Bind nameserver on CentOS 4.2. Can anyone tell me where >the cached lookups are stored and whether there is a way to view them? > >I believe that the cache is in memory only. You lose it when you restart named. -Steve
Iain M Lee wrote:> I'm running the Bind nameserver on CentOS 4.2. Can anyone tell me where > the cached lookups are stored and whether there is a way to view them?If you have RNDC configured (can't remember if it is by default) then it will output the named cache to a local file. $ rndc dumbdb That will create a file (configurable in /etc/named.conf) containing the named cache (mine is /var/named/data/cache_dumb.db, don't remember if this is the default). This will not clear the current cache in RAM, just output it to file. Hope that helps, Andrew