From bde3ab9654b1a33a6a250bf053c8f8ba044f67e8 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 30 Sep 2015 12:04:47 +0200 Subject: [PATCH] in dnsdist, setTC now also sets RA=RD, otherwise clients ignore response. Found by Burak Ozalp. --- pdns/dnsdist-lua.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index be5d8496c..8359c3b40 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -501,6 +501,7 @@ vector> setupLua(bool client, const std::string& confi g_lua.registerFunction("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("setQR", [](dnsheader& dh, bool v) { -- 2.40.0