-
Notifications
You must be signed in to change notification settings - Fork 7.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
Fix: Change DNS to dynamic sort for IPv6-only network (option) (IDFGH-12204) #13258
base: master
Are you sure you want to change the base?
Fix: Change DNS to dynamic sort for IPv6-only network (option) (IDFGH-12204) #13258
Conversation
👋 Hello sgryphon, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
fd85a79
to
b5e4240
Compare
examples/common_components/protocol_examples_common/Kconfig.projbuild
Outdated
Show resolved
Hide resolved
2e3bcc8
to
8ab0c56
Compare
@sgryphon Thanks, for your contribution. We saw the PR and will need some time to evaluate it. |
8ab0c56
to
ff83b75
Compare
…nly network This fix adds a KConfig option to enable the LWIP dynamic DNS selection, based on the addresses available on the device, allowing a device with both IPv4 and IPv6 enabled to work in any network configuration, including IPv4-only, IPv6-only, and dual-stack. The example is also updated with instructions to turn on TLS and DNS logging, and example output updated to show the IPv4 and IPv6 addresses being used.
ff83b75
to
83335fe
Compare
The This issue has been addressed in commit e2ae81a. However, the feature is currently disabled by default. |
NOTE: Cannot be merged until corresponding change in ESP-LWIP is made.
Currently DNS resolution, as used in the TLS component, does not work for a dual-stack destination from an IPv6-only network (when both IPv4 and IPv6 are enabled). See issue: #13255
A change has been made, with and option flag, in LWIP to support dynamic ordering based on whether an IPv6 global address is present or not, allowing DNS lookup to work in all networks IPv4-only, IPv6-only, and dual-stack, with all reachable destination types. The ESP-LWIP change PR is: espressif/esp-lwip#65
(Once merged, the commit reference will need to be updated to the branch with the relevant change)
This change adds a Kconfig option to match the flag, and then configures the protocol examples to enable the flag.
With these changes the https_request example now works: