-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add support for EDNS0 (RFC6891) udp payload size negotiation #1980
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hey @jsipprell, sorry for the delay here. I'll review in depth here soon, but at first glance this sounds great! |
@jsipprell - Would it be possible to fix the merge conflicts here ? |
Hey there, This looks like a reasonable chance, but we do not feel confident without some test coverage. Could you please add some tests and rebase? Thanks! 😄 |
sethvargo
added
pr/needs-tests
PR needs tests before being accepted
waiting-reply
Waiting on response from Original Poster or another individual in the thread
labels
May 1, 2017
sethvargo
added a commit
that referenced
this pull request
Jun 8, 2017
This is a refactor of GH-1980. Originally I tried to do a straight rebase, but the code has changed too much.
Merged
sethvargo
added a commit
that referenced
this pull request
Jun 9, 2017
This is a refactor of GH-1980. Originally I tried to do a straight rebase, but the code has changed too much.
sethvargo
added a commit
that referenced
this pull request
Jun 13, 2017
This is a refactor of GH-1980. Originally I tried to do a straight rebase, but the code has changed too much.
slackpad
pushed a commit
that referenced
this pull request
Jun 14, 2017
This is a refactor of GH-1980. Originally I tried to do a straight rebase, but the code has changed too much.
This ended up going in via #3131, closing this one out. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
pr/needs-tests
PR needs tests before being accepted
type/enhancement
Proposed improvement or new feature
waiting-reply
Waiting on response from Original Poster or another individual in the thread
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Modern stub resolvers can be configured to always send EDNS(0)/RFC6891 extended requests to resolvers which, among other things, permits relaxation of the traditional 512 byte maximum UDP payload limit by sending a desired maximum size (usually 4k) and allowing the server to reduce as appropriate in the response frame.
Additionally, caching/recursive resolvers such as Unbound and BIND will prefer to use EDNS(0) when prefetching as well as honoring EDNS(0) when forwarding requests or performing recursion on behalf of a stub-resolver or other client.
This PR adds support for EDNS(0), if and only if set in the request frame; it relaxes certain Answer section limits and synchronizes Answer UDP trimming to match the requested EDNS(0) UDP maximum size.