From f8401c1568dc4cc2409fa6a76ba0af71d3fe14d9 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 21 Jan 2017 12:43:42 -0700 Subject: [PATCH] add common types and classes --- dns.classes.js | 9 +++++++++ dns.types.js | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 dns.classes.js create mode 100644 dns.types.js diff --git a/dns.classes.js b/dns.classes.js new file mode 100644 index 0000000..1ed358c --- /dev/null +++ b/dns.classes.js @@ -0,0 +1,9 @@ +(function (exports) { +'use strict'; + +exports.DNS_CLASSES = { + IN: 0x01 // 1 +, ANY: 0xff // 255 +}; + +}('undefined' !== typeof window ? window : exports)); diff --git a/dns.types.js b/dns.types.js new file mode 100644 index 0000000..95aa872 --- /dev/null +++ b/dns.types.js @@ -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));