From: Marek Vavrusa Date: Sat, 30 Jan 2016 13:06:05 +0000 (+0000) Subject: scripts/kresd-host: ignore other types in answer X-Git-Tag: v1.0.0-beta3~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d740ea7bcb50ec814aa86dac98eee770db401b4;p=thirdparty%2Fknot-resolver.git scripts/kresd-host: ignore other types in answer --- 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