Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly return NOERROR even if host resolver returned empty list #645

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dan0dbfe
Copy link

@dan0dbfe dan0dbfe commented Nov 19, 2024

Fixes #509 and moby/moby#47628.

  1. Dns.resolve now returns (rr list, unit) result to distinguish between [] resulting from NOERROR or NXDOMAIN.
    • Currently only returns NXDOMAIN on any kind of error.
    • Dns.getaddrinfo returns (rr list, Msg) result with no error handling just like current behavior
  2. Make.answer returns answers (including []) if there is no error, otherwise NXDOMAIN is returned.
  3. Added NOERROR and NXDOMAIN test cases.

@dan0dbfe dan0dbfe force-pushed the fix/issue-509 branch 4 times, most recently from 7ea18b6 to 14556e2 Compare November 19, 2024 16:10
@dan0dbfe dan0dbfe marked this pull request as ready for review November 19, 2024 16:17
@dan0dbfe
Copy link
Author

The "usual" tests in ocaml-ci seem to be green and the rest of the CI failures seem unrelated

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.

VPNKit DNS server returns NXDOMAIN for SRV records
1 participant