2017-01-27 02:18:46 +00:00
|
|
|
(function (exports) {
|
|
|
|
'use strict';
|
2017-02-02 03:32:01 +00:00
|
|
|
|
2017-01-27 02:18:46 +00:00
|
|
|
// Comes in variable lengths. It is the name of the primary Master for the Domain.
|
|
|
|
// For example 'ns1.example.com'
|
|
|
|
// It may be a label, pointer or any combination
|
2017-02-02 03:32:01 +00:00
|
|
|
var unpackLabels = exports.DNS_UNPACK_LABELS || require('./dns.unpack-labels.js').DNS_UNPACK_LABELS;
|
2017-01-27 02:18:46 +00:00
|
|
|
|
|
|
|
|
2017-02-02 03:32:01 +00:00
|
|
|
exports.DNS_TYPE_NS = function (ab , packet, record) {
|
2017-01-27 02:18:46 +00:00
|
|
|
|
2017-02-02 03:32:01 +00:00
|
|
|
return unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name;
|
2017-01-27 02:18:46 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}('undefined' !== typeof window ? window : exports));
|
|
|
|
|
|
|
|
|