From 298b017d8d46d0120a35bbe4ad71795d5e2ea187 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 27 Sep 2016 16:03:24 +0200 Subject: [PATCH] [Minor] Fix DMARC after the recent RDNS changes --- src/plugins/lua/dmarc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index 718eb309b..caf20b2fd 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -102,10 +102,10 @@ local function dmarc_callback(task) local function dmarc_dns_cb(resolver, to_resolve, results, err, key) local lookup_domain = string.sub(to_resolve, 8) - if err and err ~= 'requested record is not found' then + if err and (err ~= 'requested record is not found' and err ~= 'no records with this name') then task:insert_result(dmarc_symbols['dnsfail'], 1.0, lookup_domain .. ' : ' .. err) return maybe_force_action('dnsfail') - elseif err == 'requested record is not found' and + elseif err and (err == 'requested record is not found' or err == 'no records with this name') and lookup_domain == dmarc_domain then task:insert_result(dmarc_symbols['na'], 1.0, lookup_domain) return maybe_force_action('na') -- 2.39.5