]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #10633 from rgacogne/rec-policy-event-filter-follow-cname
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 24 Aug 2021 10:23:42 +0000 (12:23 +0200)
committerGitHub <noreply@github.com>
Tue, 24 Aug 2021 10:23:42 +0000 (12:23 +0200)
rec: Pass the Lua context to follow up queries (follow CNAME, dns64)

1  2 
pdns/pdns_recursor.cc
pdns/syncres.cc
pdns/syncres.hh

index c41186025ebc068e7cfad81a3f89885eeb1f25c2,3b9ea54a85e5c38439b49a515674d46bc0451279..3efc32837575e20c59f685b6e2c0456199d80990
@@@ -1554,9 -1552,8 +1554,9 @@@ int getFakePTRRecords(const DNSName& qn
    rr.d_content = std::make_shared<CNAMERecordContent>(newquery);
    ret.push_back(rr);
  
-   int rcode = directResolve(DNSName(newquery), QType::PTR, QClass::IN, ret);
+   int rcode = directResolve(DNSName(newquery), QType::PTR, QClass::IN, ret, t_pdl);
  
 +  g_stats.dns64prefixanswers++;
    return rcode;
  }
  
diff --cc pdns/syncres.cc
Simple merge
diff --cc pdns/syncres.hh
Simple merge