From: Kees Monshouwer Date: Tue, 28 Jul 2015 12:43:38 +0000 (+0200) Subject: add dots to qnames in policy.lua X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~58^2~8^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a772eb598a83ec7d9fbc26c13324e79e2c4e2ee2;p=thirdparty%2Fpdns.git add dots to qnames in policy.lua --- diff --git a/regression-tests.nobackend/lua-policy/policy.lua b/regression-tests.nobackend/lua-policy/policy.lua index 8f4b9d58c8..c9a8a1d14b 100644 --- a/regression-tests.nobackend/lua-policy/policy.lua +++ b/regression-tests.nobackend/lua-policy/policy.lua @@ -3,8 +3,8 @@ io.flush() function police (req, resp, isTcp) qname, qtype = req:getQuestion() - if qname == 'drop.minimal.com' then print 'dropping!' io.flush() return pdns.DROP end - if qname == 'truncate.minimal.com' then print 'truncating!' io.flush() return pdns.TRUNCATE end + if qname == 'drop.minimal.com.' then print 'dropping!' io.flush() return pdns.DROP end + if qname == 'truncate.minimal.com.' then print 'truncating!' io.flush() return pdns.TRUNCATE end return pdns.PASS end