[dnsdist] Disable cache for certain sources

Andreas Wili cicco0 at outlook.com
Fri Apr 19 12:29:30 UTC 2024


On 17.04.24 08:52, Jacob Bunk Nielsen via dnsdist wrote:
> Andreas Wili via dnsdist <dnsdist at mailman.powerdns.com> writes:
> 
>> Now, there are two servers on the network for which all DNS queries must
>> not be cached.
> 
> Ahh, then you just do:
> 
> no_cache_ips = newNMG()
> 
> -- IPs of servers that shouldn't use the cache
> no_cache_ips:addMask('192.0.2.1/32')
> no_cache_ips:addMask('192.0.2.8/32')
> 
> addAction(NetmaskGroupRule(no_cache_ips, true), SetSkipCacheAction())
> 
> Best regards,
> Jacob
> _______________________________________________
> dnsdist mailing list
> dnsdist at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/dnsdist
Perfect, thank you very much. It works as desired now.

Best regards,
Andreas


More information about the dnsdist mailing list