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

NXNS fallback #706

Merged
merged 3 commits into from
Jul 1, 2022
Merged

NXNS fallback #706

merged 3 commits into from
Jul 1, 2022

Conversation

gthess
Copy link
Member

@gthess gthess commented Jun 29, 2022

This enables fallback to the parent side when a delegation point has reached the MAX_TARGET_NX limit in case more useful information is found there.
It will allow for MAX_TARGET_NX NXDOMAINs more (for this and the other shared queries) to ease resolution.
Cached NXDOMAIN also no longer count for the MAX_TARGET_NX limit.
Additional fixes that come along:

  • Don't generate parent side queries if we already have the lame records in cache;
  • When a lame address is the best choice, don't try to generate target queries when the missing targets are all lame.

Copy link
Member

@wcawijngaards wcawijngaards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with extensive tests. Long cases for the nx fallback during QueryTargets, but it is nice to handle them.

The error message change does not matter that much, from the review comment.

* This also marks the fallback activation. */
*iq->nxns_dp = malloc(iq->dp->namelen);
if(!*iq->nxns_dp) {
errinf(qstate, "exceeded the maximum nameserver nxdomains");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error is out of memory, that malloc failed. While also it exceeded the maximum nameserver nxdomains.

@gthess gthess self-assigned this Jul 1, 2022
@gthess
Copy link
Member Author

gthess commented Jul 1, 2022

Thanks! I improved the logging for the fallback (also to accommodate for the review comment), waiting for the test action to finish and merging.

@gthess gthess merged commit b0ce31b into master Jul 1, 2022
@gthess gthess deleted the nxns-fallback branch July 1, 2022 14:24
gthess added a commit that referenced this pull request Jul 3, 2022
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.

Robustness issue with fix for CVE-2020-12662 causes SERVFAIL for misconfigured zones
2 participants