-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix(ext/net): enable EDNS0 for Deno.resolveDns #27735
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great catch
@@ -662,6 +662,8 @@ where | |||
system_conf::read_system_conf()? | |||
}; | |||
|
|||
opts.edns0 = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits: Please add a comment here 🙇
hmm, looks like the DNS mock server implementation in node compat test utils are not compatible with hickory-dns resolver with EDNS0 enabled 😓 I need to figure out what the exact issue with those utils.. |
This PR enables EDNS0 option in resolver.lookup call. This allows about x2 message size in DNS udp response, and makes the issue like #27670 less likely to happen.
related issue in hickory-dns hickory-dns/hickory-dns#2140
closes #27670