You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/esp_netif/multiple_netifs/README.md
+8
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,14 @@ This example demonstrates working with multiple different interfaces with differ
19
19
* It tries to reconfigure DNS server if host name resolution fails
20
20
* It tries to manually change the default interface if connection fails
21
21
22
+
### Handling DNS server across interfaces
23
+
24
+
This example also demonstrates how DNS servers could be handled on network interface level, as lwIP used global DNS server information.
25
+
26
+
All network interfaces store their DNS info upon acquiring an IP in the internal structure (in the application code) and the DNS servers are restored if host name resolution fails.
27
+
28
+
This functionality is handled in IDF (supported from v5.3) automatically if `CONFIG_ESP_NETIF_SET_DNS_PER_DEFAULT_NETIF` is enabled, the DNS server info keeps updating per network interface in IDF layers. This examples uses the IDF functionality if `CONFIG_ESP_NETIF_SET_DNS_PER_DEFAULT_NETIF=1`.
29
+
22
30
### Hardware Required
23
31
24
32
To run this example, it's recommended that you have an official ESP32 Ethernet development board - [ESP32-Ethernet-Kit](https://docs.espressif.com/projects/esp-idf/en/latest/hw-reference/get-started-ethernet-kit.html).
0 commit comments