]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
DNAME: Add comment in the tests
authorPieter Lexis <pieter.lexis@powerdns.com>
Mon, 11 Mar 2019 09:13:01 +0000 (10:13 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 11 Mar 2019 09:13:01 +0000 (10:13 +0100)
pdns/recursordist/test-syncres_cc.cc

index fbdb287a5b420977164ef4101f01e1689cbfd3cb..a02f9ba3d3753f6380dddba4afbc9e1d106114ea 100644 (file)
@@ -10955,6 +10955,9 @@ BOOST_AUTO_TEST_CASE(test_dname_dnssec_secure) {
 
   sr->setAsyncCallback([dnameOwner, dnameTarget, target, cnameTarget, keys, &queries](const ComboAddress& ip, const DNSName& domain, int type, bool doTCP, bool sendRDQuery, int EDNS0Level, struct timeval* now, boost::optional<Netmask>& srcmask, boost::optional<const ResolveContext&> context, LWResult* res, bool* chained) {
       queries++;
+      /* We don't use the genericDSAndDNSKEYHandler here, as it would deny names existing at the wrong level of the tree, due to the way computeZoneCuts works
+       * As such, we need to do some more work to make the answers correct.
+       */
 
       if (isRootServer(ip)) {
         if (domain.countLabels() == 0 && type == QType::DNSKEY) { // .|DNSKEY