Fredrik Pettai via dnsdist <[email protected]> writes:
>> addAction(NetmaskGroupRule(no_cache_ips, true), SetSkipCacheAction())
>
> Slightly OT, I wonder if it would be possible to reverse the suggested
> solution,
> to cache only queries from specific IPs and skip the caching "for the rest” ?
You can just do something like this:
cache_ips = newNMG()
-- IPs of clients that should use the cache
cache_ips:addMask('192.0.2.1/32')
cache_ips:addMask('192.0.2.8/32')
addAction(NotRule(NetmaskGroupRule(cache_ips, true)), SetSkipCacheAction())
Best regards,
Jacob
_______________________________________________
dnsdist mailing list
[email protected]
https://mailman.powerdns.com/mailman/listinfo/dnsdist