2017-01-21 21:39:26 +00:00
|
|
|
(function (exports) {
|
|
|
|
'use strict';
|
|
|
|
|
2017-01-27 02:18:46 +00:00
|
|
|
// An 'A' record is a 32-bit value representing the IP address
|
|
|
|
|
2017-01-28 20:17:02 +00:00
|
|
|
exports.DNS_TYPE_A = function (ab, packet, rdata) {
|
2017-01-21 21:39:26 +00:00
|
|
|
var ui8 = new Uint8Array(rdata);
|
|
|
|
// i.e. 127.0.0.1
|
2017-01-27 02:18:46 +00:00
|
|
|
|
2017-01-21 21:39:26 +00:00
|
|
|
return ui8[0] + '.' + ui8[1] + '.' + ui8[2] + '.' + ui8[3];
|
|
|
|
};
|
|
|
|
|
|
|
|
}('undefined' !== typeof window ? window : exports));
|