micropython/shared/netutils
Phil Howard e1282556e8 shared/netutils/dhcpserver: Match default DNS to server IP.
Change the default DNS to match the gateway IP of a board running in access
point mode (or otherwise acting as a "server").

This fixes the rather meaningless use of "8.8.8.8" as the default DNS
server address offered up to access point clients via the DHCP server.
Since most devices wont be able to proxy access to the real "8.8.8.8".

It allows for a DNS responder to run and provide a catchall response for
captive portal functionality, or just a quality-of-life response to a
friendly URL for access-point based configuration and other applications.

Signed-off-by: Phil Howard <phil@gadgetoid.com>
2022-07-12 17:15:31 +10:00
..
dhcpserver.c shared/netutils/dhcpserver: Match default DNS to server IP. 2022-07-12 17:15:31 +10:00
dhcpserver.h shared: Introduce new top-level dir and move 1st party lib code there. 2021-07-12 17:07:36 +10:00
netutils.c all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
netutils.h shared: Introduce new top-level dir and move 1st party lib code there. 2021-07-12 17:07:36 +10:00
trace.c all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00