add RCODES

This commit is contained in:
AJ ONeal 2017-10-05 15:43:55 -06:00
부모 84908c62df
커밋 b24345fe26
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제

15
dns.rcodes.js Normal file
파일 보기

@ -0,0 +1,15 @@
(function (exports) {
'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;
});
}('undefined' !== typeof window ? window : exports));