diff options
Diffstat (limited to 'dnsdist.cc')
-rw-r--r-- | dnsdist.cc | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1670,9 +1670,18 @@ ProcessQueryResult processQuery(DNSQuestion& dq, LocalHolders& holders, std::sha /* we need an accurate ("real") value for the response and to store into the IDS, but not for insertion into the rings for example */ - struct timespec now; + timespec now{}; gettime(&now); + if ((dq.ids.qtype == QType::AXFR || dq.ids.qtype == QType::IXFR) && (dq.getProtocol() == dnsdist::Protocol::DoH || dq.getProtocol() == dnsdist::Protocol::DoQ || dq.getProtocol() == dnsdist::Protocol::DoH3)) { + dq.editHeader([](dnsheader& header) { + header.rcode = RCode::NotImp; + header.qr = true; + return true; + }); + return processQueryAfterRules(dq, holders, selectedBackend); + } + if (!applyRulesToQuery(holders, dq, now)) { return ProcessQueryResult::Drop; } |