dns-suite.js/dns.type.aaaa.js

32 lines
667 B
JavaScript
Raw Normal View History

2017-01-27 02:18:46 +00:00
(function (exports) {
'use strict';
// Value: IP Address
// Meaning:Use: 16 octets represting the IP address
exports.DNS_TYPE_AAAA = function (rdata) {
console.log('*****************************************');
// // var rrTokens = rdata.trim().split(/\s+/g);
// // var len = rrTokens.length;
// // var result = {
// // name: rrTokens[0],
// // ip: rrTokens[len-1]
// // };
// // if(!isNaN(rrTokens[1])) result.ttl = parseInt(rrTokens[1], 10);
// // return result;
// console.log(rdata.length.toString());
// var ui8 = new Uint8Array(rdata);
};
}('undefined' !== typeof window ? window : exports));