add common types and classes

This commit is contained in:
AJ ONeal 2017-01-21 12:43:42 -07:00
父節點 de723fca8d
當前提交 f8401c1568
共有 2 個檔案被更改,包括 26 行新增0 行删除

9
dns.classes.js Normal file
查看文件

@ -0,0 +1,9 @@
(function (exports) {
'use strict';
exports.DNS_CLASSES = {
IN: 0x01 // 1
, ANY: 0xff // 255
};
}('undefined' !== typeof window ? window : exports));

17
dns.types.js Normal file
查看文件

@ -0,0 +1,17 @@
(function (exports) {
'use strict';
exports.DNS_TYPES = {
A: 0x01 // 1
, NS: 0x02 // 2
, CNAME: 0x05 // 5
, SOA: 0x06 // 6
, PTR: 0x0c // 12
, MX: 0x0f // 15
, TXT: 0x10 // 16
, AAAA: 0x16 // 28
, SRV: 0x21 // 33
, ANY: 0xff // 255
};
}('undefined' !== typeof window ? window : exports));