dnsd icon indicating copy to clipboard operation
dnsd copied to clipboard

NXDOMAIN response flag for empty answer

Open fogs opened this issue 9 years ago • 2 comments

When you deliberately send an empty result using res.end(); the default convenience behavior would set the DNS return code 0 ("NOERROR"). Instead, the return code 3 ("NXDOMAIN") would be more appropriate. While technically, NOERROR is fine even if the response contains no answer, this patch will avoid the "Zero answer bug" which is already mentioned in RFC 1536.

fogs avatar May 22 '16 15:05 fogs

@jhs, any plans to merge this? Is this project still maintained?

shark0der avatar Sep 09 '16 17:09 shark0der

I've merged into my fork, which also supports serving over ipv6 addresses.

ansuz avatar Nov 02 '16 18:11 ansuz