]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
in dnsdist, setTC now also sets RA=RD, otherwise clients ignore response. Found by...
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 30 Sep 2015 10:04:47 +0000 (12:04 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 30 Sep 2015 10:04:47 +0000 (12:04 +0200)
pdns/dnsdist-lua.cc

index be5d8496c3e41e5d14b95b1556c73cba85f135e1..8359c3b40315db4860251b3de1dbbcb32abae6bc 100644 (file)
@@ -501,6 +501,7 @@ vector<std::function<void(void)>> setupLua(bool client, const std::string& confi
 
   g_lua.registerFunction<void(dnsheader::*)(bool)>("setTC", [](dnsheader& dh, bool v) {
       dh.tc=v;
+      if(v) dh.ra = dh.rd; // you'll always need this, otherwise TC=1 gets ignored
     });
 
   g_lua.registerFunction<void(dnsheader::*)(bool)>("setQR", [](dnsheader& dh, bool v) {