From 3d740ea7bcb50ec814aa86dac98eee770db401b4 Mon Sep 17 00:00:00 2001 From: Marek Vavrusa Date: Sat, 30 Jan 2016 13:06:05 +0000 Subject: [PATCH] scripts/kresd-host: ignore other types in answer --- scripts/kresd-host.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/kresd-host.lua b/scripts/kresd-host.lua index 02430860e..5650e0920 100755 --- a/scripts/kresd-host.lua +++ b/scripts/kresd-host.lua @@ -103,8 +103,8 @@ for i, qtype in ipairs(qtypes) do print(string.format("%s has IPv6 address %s", qname, rdata)) elseif rr.type == kres.type.MX then print(string.format("%s mail is handled by %s", qname, rdata)) - else - print(string.format("%s has %s record %s%s", qname, qtype, rdata)) + elseif rr.type == pkt:qtype() then + print(string.format("%s has %s record %s", qname, qtype, rdata)) end end end -- 2.47.2