-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Conversation
…only in dual stack mode).
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.
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 ?
…ectable resolving order
Sorry for the commit-chaos. Hat no dev-environment at hand. Now IPv6.ino has an example on how to use the extended hostByName(). |
…only in dual stack mode).
…ectable resolving order
… enum class isn't used.
Ok, changed to using an enum class for DNS resolution type. Hope this is what you intended. |
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).