-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dns): Config for dynamic DNS sorting so AF_UNSPEC works in IPv6-o…
…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.
- Loading branch information
Showing
5 changed files
with
162 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
CONFIG_MBEDTLS_HAVE_TIME_DATE=y | ||
CONFIG_LWIP_DNS_DYNAMIC_SORT=y | ||
CONFIG_LWIP_IPV6_AUTOCONFIG=y | ||
CONFIG_LWIP_IPV6_DHCP6=y | ||
CONFIG_LWIP_IPV6_RDNSS_MAX_DNS_SERVERS=2 | ||
CONFIG_LWIP_SNTP_MAX_SERVERS=2 | ||
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y |