-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
[TW#12276] AP: Add a way to control which DNS server is offered to clients #162
Comments
HI @rojer, a new menuconfig is added to configure whether the default dns server will be configured or not, if enabled, the dns server address got from DHCP ACK's option "Host Domain Name" will be set as default DNS server, otherwise, the address in DHCP Ack's option will be ignore and the user need to configure the DNS server. I think the code will be ready in next release, maybe release2.1 |
this issue is about which server ESP AP offers to clients, i.e. the behavior of its DHCP server, while you seem to be talking about ESP's STA DHCP client behavior. the original reason for this issue is that it is not always that when i connect to ESP AP i also want my traffic to go trough it (router option) or for it to be used a s a DNS server (DNS option). in fact, i'd argue that in most cases AP is used to provision the device, so it should default to no routing and no DNS, so that user retains their original internet connection. |
in any case, it should be possible to turn off DNS and router options in the server responses. it's already possible with router, DNS still remains. |
Thanks @rojer for clarification, then I'm going to add options to DNS server option for AP side. |
good, thanks! |
Is this problem solved in the latest ESP-IDF? |
as far as i can tell, no. @liuzfesp ? |
At the moment from reading the code i see that device's address is always offered as the DNS server.
There should be a way to control whether server is offered at all and if so, which IP.
The text was updated successfully, but these errors were encountered: