add OPCODES

This commit is contained in:
AJ ONeal 2017-10-05 15:47:16 -06:00
parent b24345fe26
commit 0768e17bfa
1 changed files with 13 additions and 0 deletions

13
dns.opcodes.js Normal file
View File

@ -0,0 +1,13 @@
(function (exports) {
'use strict';
var opcodes = exports.DNS_OPCODES = {
QUERY: 0x00 // 0
};
// and in reverse
Object.keys(opcodes).forEach(function (key) {
opcodes[opcodes[key]] = key;
});
}('undefined' !== typeof window ? window : exports));