You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this not possible in the current implementation?
The text was updated successfully, but these errors were encountered:
asampal
changed the title
How can NXDOMAIN be returned?
When a name is not found how can a status of NXDOMAIN be returned to indicate this?
May 11, 2021
Hopefully I'm not too late, but I just tested, you can edit any and all headers of a response before sending it.
So before you send(response), you just need to set response.header.rcode to either 3 or 0x03(both are treated as 3 by javascript it seems) and DiG/DNS queries will report NXDOMAIN.
Any server-side logic on determining when to send/what to do when receiving an NXDOMAIN is up to you though.
It's not clear how a status of NXDOMAIN should be returned (see https://serverfault.com/questions/373629/what-is-the-correct-response-for-a-dns-server-when-a-domain-does-not-exist).
Is this not possible in the current implementation?
The text was updated successfully, but these errors were encountered: