[Unbound-users] disable caching for stub zones

Alexander Dreweke alexander at dreweke.net
Fri Oct 10 20:01:02 UTC 2014


Hi

>> I'm running unbound 1.4.22 (AD) and looking for a way to disable caching
>> for all or some stub zones, as these zones are served by nsd (AA) on the
>> same machine:

> ...
>> I found that I can evict the cache for the stub zones by running the
>> following commands wie cron every minute or so

>> unbound-control flush_zone example.net.
>> unbound-control flush_zone example.com.
>> unbound-control flush_zone 1.10.in-addr.arpa.
>> unbound-control flush_zone 2.10.in-addr.arpa.

>> Is there a better way to prevent unbound of caching these zones in the
>> first place or to reduce the cache time for these zones?

> You can of course reduce the TTL as you see fit, but I don't
> understand what problem you are trying to solve. I.e. I get that the
> stubs refer to zones served by NSD on the same machine, but how is
> caching of that a problem?

I had/have the problem that DNS entries and reverse entries do change
often and unbound serves the outdated records.

Regards,
    Alex



More information about the Unbound-users mailing list