]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Cache based on the DNS flags of the query after applying the rules 10696/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, 7 Sep 2021 14:51:18 +0000 (16:51 +0200)
commit3e1fcc25e62b910ea42712b00e3b48a8a2df34b8
treec920c45bdd0f0ee40a12e02dd219be67f94bcba2
parent7e805159296401d4e558b4f260d0066ca631b8c7
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.

(cherry picked from commit 29d9661fe21a2c4e96f94db1735629363dc07b2e)
pdns/dnsdist.cc
pdns/dnsdist.hh
pdns/dnsdistdist/dnsdist-idstate.cc
regression-tests.dnsdist/test_Caching.py