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:
Nihanth Subramanya
2026-04-06 17:09:46 +08:00
committed by LittleChest
parent 530d20bb93
commit 5b155e76d9
+1
View File
@@ -1644,6 +1644,7 @@ exports.RECURSION_AVAILABLE = 1 << 7
exports.AUTHENTIC_DATA = 1 << 5
exports.CHECKING_DISABLED = 1 << 4
exports.DNSSEC_OK = 1 << 15
exports.NXDOMAIN = 0x03
exports.encode = function (result, buf, offset) {
const allocing = !buf