Turn off ncache?
Barry Margolin
barmar at bbnplanet.com
Tue Nov 30 15:34:13 UTC 1999
In article <19991130142832D.liman at flaptop.pilsnet.sunet.se>,
Lars-Johan Liman <liman at sunet.se> wrote:
>In an educational lab environment, I want to turn off negative
>caching, to make changes to the zone files propagate infinitely
>quick.
>
>In named.conf (8.2.2-P5) one can set
> max-ncache-ttl nnn;
>to limit the ncache retention time.
>
>Setting the time (nnn) to "2" (seconds) works well, and is adequate
>for all practical purposes.
>
>Setting it to "0" seems to have no effect, and does not turn off
>ncache, as one would expect.
>
>Why?
I suspect the following code in ns_config.c:
if (!op->max_ncache_ttl)
op->max_ncache_ttl = DEFAULT_MAX_NCACHE_TTL;
It looks like it detects whether the max-ncache-ttl option was specified by
checking whether this is non-zero.
--
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
More information about the bind-users
mailing list