]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Cache based on the DNS flags of the query after applying the rules 10664/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 24 Aug 2021 09:23:54 +0000 (11:23 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 24 Aug 2021 09:32:03 +0000 (11:32 +0200)
commit29d9661fe21a2c4e96f94db1735629363dc07b2e
tree87401eba507ce94a1812e266b547853e0b2bc26a
parent8ef1f46717c46e7eb1ac5d92229b0552fb5a69cc
dnsdist: Cache based on the DNS flags of the query after applying the rules

The tentative fix in dbadb4d272a3317407e6bc934f55c2d41a87c0ac actually
introduced an issue, because the backend might not perfectly echo the
RD and CD flags as they were in the query.
We can't use the "original" (before applying rules) flags either, so
we need to store the flags as they were sent to the backend to be
able to correctly store them in the cache.
pdns/dnsdist.cc
pdns/dnsdist.hh
pdns/dnsdistdist/dnsdist-idstate.cc
regression-tests.dnsdist/test_Caching.py