I have a caching recursive DNS server running bind9. For a single local zone, I have a forwarder set up with type forward
and forward only
, which works fine. I want to limit any caching of the forwarded zone to 5 seconds (both positive and negative responses). The server I am forwarding to is local, cannot be fiddled with, and sadly has less than helpful values for cache TTL etc. for records it generates dynamically (in essence it's making an assumption that it is the caching resolver for everything).
I would use max-cache-ttl
and max-ncache-ttl
save that as far as I can tell max-cache-ttl
and max-ncache-ttl
only apply globally, or to a view.
Here's my configuration:
zone "example.local." {
type forward;
forward only;
// max-cache-ttl 5; <--- does not work here
// max-ncache-ttl 5; <--- does not work here
forwarders {
192.200.1.10; // on same LAN
};
};
Ideally I don't want to turn caching off entirely but that would be an option if it's the only thing I can do.
Any ideas?