[dnsdist] Disable cache for certain sources

Jacob Bunk Nielsen jacob at bunknielsen.dk
Wed Apr 17 06:52:23 UTC 2024


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


More information about the dnsdist mailing list