diff --git a/dns.parser.js b/dns.parser.js index 92d7b31..1d4a8a6 100644 --- a/dns.parser.js +++ b/dns.parser.js @@ -198,6 +198,7 @@ pdns.unpack = function (ab) { q.rdlength = dv.getUint16(total, false); total += 2; + q.class &= 0x7fff; q.className = classes[q.class]; q.typeName = types[q.type];