]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
scripts/kresd-host: ignore other types in answer
authorMarek Vavrusa <marek@vavrusa.com>
Sat, 30 Jan 2016 13:06:05 +0000 (13:06 +0000)
committerMarek Vavrusa <marek@vavrusa.com>
Sat, 30 Jan 2016 13:06:05 +0000 (13:06 +0000)
scripts/kresd-host.lua

index 02430860e3d5ab1069b715f9eb010c2c7c5a26fb..5650e0920384189021e83d87fe4af444d1a1b7cb 100755 (executable)
@@ -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