dns-suite.js/dns.rcodes.js

16 lines
309 B
JavaScript
Raw Normal View History

2018-03-19 16:31:44 +00:00
// (function (exports) {
2017-10-05 21:43:55 +00:00
'use strict';
var rcodes = exports.DNS_RCODES = {
SUCCESS: 0x00 // 0
, NXDOMAIN: 0x03 // 3
, REFUSED: 0x05 // 5
};
// and in reverse
Object.keys(rcodes).forEach(function (key) {
rcodes[rcodes[key]] = key;
});
2018-03-19 16:31:44 +00:00
// }('undefined' !== typeof window ? window : exports));