diff --git a/dns.type.a.js b/dns.type.a.js index c80218e..0d70dd2 100644 --- a/dns.type.a.js +++ b/dns.type.a.js @@ -3,8 +3,8 @@ // An 'A' record is a 32-bit value representing the IP address -exports.DNS_TYPE_A = function (ab, packet, rdata) { - var ui8 = new Uint8Array(rdata); +exports.DNS_TYPE_A = function (ab, packet, record) { + var ui8 = record.rdata; // i.e. 127.0.0.1 return ui8[0] + '.' + ui8[1] + '.' + ui8[2] + '.' + ui8[3];