From 967976a67ec810859b16891deb74f6f36a082214 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=A0t=C4=9Bp=C3=A1n=20Bal=C3=A1=C5=BEik?= Date: Fri, 4 Sep 2020 12:04:18 +0200 Subject: [PATCH] workarounds: remove *.in-addr.arpa.net NO_0X20 workarrounds The Internet has changed, turktel ones are fixed, edatel one does not work at all. --- modules/workarounds/workarounds.lua | 31 ----------------------------- 1 file changed, 31 deletions(-) diff --git a/modules/workarounds/workarounds.lua b/modules/workarounds/workarounds.lua index f8ddd791b..4ce7c4789 100644 --- a/modules/workarounds/workarounds.lua +++ b/modules/workarounds/workarounds.lua @@ -19,36 +19,5 @@ function M.config() })) end --- Issue #139: When asking certain nameservers for PTR, disable 0x20. --- Just listing the *.in-addr.arpa suffixes would be tedious, as there are many. -M.layer = { - produce = function (state, req) - local qry = req:current() - if qry.stype ~= kres.type.PTR - or bit.band(state, bit.bor(kres.FAIL, kres.DONE)) ~= 0 - then return state -- quick exit in most cases - end - if qry.flags.AWAIT_CUT or qry.ns.name == nil - then return state end - local name = kres.dname2str(qry.ns.name) - if not name then return state end - - -- The problematic nameservers: - -- (1) rdnsN.turktelekom.com.tr. - if string.sub(name, 6) == '.turktelekom.com.tr.' then - qry.flags.NO_0X20 = true - qry.flags.NO_MINIMIZE = true - -- ^ NO_MINIMIZE isn't required for success, as kresd will retry - -- after getting refused, but it will speed things up. - - -- (2) - elseif name == 'dns1.edatel.net.co.' then - qry.flags.NO_0X20 = true - end - - return state - end, -} - return M -- 2.47.2