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

Make DNS resolution order selectable during runtime or compile time #6865

Merged
merged 65 commits into from
Apr 9, 2020
Merged

Make DNS resolution order selectable during runtime or compile time #6865

merged 65 commits into from
Apr 9, 2020

Conversation

altelch
Copy link
Contributor

@altelch altelch commented Dec 1, 2019

Modified ESP8266WifiGeneric to allow selection of DNS resolution order. Can be controlled by dns.h defines or in an extended api call Wifi.hostByName(const char* aHostname, IPAddress& aResult, uint32_t timeout_ms, uint8_t resolveType) in dual stack mode (LWIP_IPV4 and LWIP_IPV6 is set).

@devyte devyte self-requested a review December 2, 2019 03:11
Copy link
Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

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

The core API is respected and extended with lwIP-v2's IPv6 API, thanks !
This however has a lack of documentation.
There is currently no documentation on IPv6, but only one example.
Could you update the IPv6.ino example and show how the new argument can be used ?

@altelch
Copy link
Contributor Author

altelch commented Dec 4, 2019

Sorry for the commit-chaos. Hat no dev-environment at hand. Now IPv6.ino has an example on how to use the extended hostByName().

libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp Outdated Show resolved Hide resolved
libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp Outdated Show resolved Hide resolved
libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp Outdated Show resolved Hide resolved
@altelch
Copy link
Contributor Author

altelch commented Dec 7, 2019

Ok, changed to using an enum class for DNS resolution type. Hope this is what you intended.

@d-a-v d-a-v requested review from devyte and d-a-v December 7, 2019 10:37
@altelch altelch requested a review from d-a-v February 27, 2020 18:09
@d-a-v d-a-v added this to the 2.7.0 milestone Apr 4, 2020
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.

None yet

3 participants