Add constant for NXDOMAIN
Trivially OR'ing 0x03 to the flags works to set NXDOMAIN in the response header. Exposing a constant for this makes it accessible and obvious.
This commit is contained in:
parent
530d20bb93
commit
5b155e76d9
1
index.js
1
index.js
@ -1644,6 +1644,7 @@ exports.RECURSION_AVAILABLE = 1 << 7
|
|||||||
exports.AUTHENTIC_DATA = 1 << 5
|
exports.AUTHENTIC_DATA = 1 << 5
|
||||||
exports.CHECKING_DISABLED = 1 << 4
|
exports.CHECKING_DISABLED = 1 << 4
|
||||||
exports.DNSSEC_OK = 1 << 15
|
exports.DNSSEC_OK = 1 << 15
|
||||||
|
exports.NXDOMAIN = 0x03
|
||||||
|
|
||||||
exports.encode = function (result, buf, offset) {
|
exports.encode = function (result, buf, offset) {
|
||||||
const allocing = !buf
|
const allocing = !buf
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user