Skip to content

Conversation

@fogs
Copy link

@fogs fogs commented May 22, 2016

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.

@shark0der
Copy link

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

@ansuz
Copy link

ansuz commented Nov 2, 2016

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

ansuz pushed a commit to ansuz/modern-dnsd that referenced this pull request Nov 6, 2016
Fix %pXbUQg/kZJGH13GaxApbVcAwf5iYgeZ6AglQH8FPjt8=.sha256

 jhs#5 is not completely correct or necessary so is not merged.
@fogs fogs mentioned this pull request Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants