esp32 AP DNS server sets a default route, it shouldn't, this breaks my phone
Posted: Mon Mar 05, 2018 4:59 am
Hi,
Using the latest esp-idf for development, the ESP32 access point's DNS server sends DNS option 3, "router" set to its own IP address, and this sets a gateway route on the client. But the ESP32 doesn't perform any routing. So, this makes my phone stop routing to the global internet through its cellular radio when it's connected to the ESP32. If the ESP32 did not send the router option, the phone would have a route for the ESP32's IP and netmask only, and it would use the normal cellular gateway route for everything else.
Thanks
Bruce Perens K6BP
Using the latest esp-idf for development, the ESP32 access point's DNS server sends DNS option 3, "router" set to its own IP address, and this sets a gateway route on the client. But the ESP32 doesn't perform any routing. So, this makes my phone stop routing to the global internet through its cellular radio when it's connected to the ESP32. If the ESP32 did not send the router option, the phone would have a route for the ESP32's IP and netmask only, and it would use the normal cellular gateway route for everything else.
Thanks
Bruce Perens K6BP