Search found 5 matches

by PantuFJAR
Wed Sep 14, 2022 9:23 pm
Forum: General Discussion
Topic: Set DNS with DHCP
Replies: 8
Views: 8770

Re: Set DNS with DHCP

Well, I gave it my best shot but there just doesn't seem to be a way to use the DHCP client but set the DNS server manually. The esp_netif_dhcpc_option() API is hard coded to allow only two options (ESP_NETIF_VENDOR_SPECIFIC_INFO and ESP_NETIF_IP_REQUEST_RETRY_TIME) and will return ESP_ERR_ESP_NETI...
by PantuFJAR
Wed Aug 31, 2022 6:50 pm
Forum: General Discussion
Topic: Set DNS with DHCP
Replies: 8
Views: 8770

Re: Set DNS with DHCP

You don't want to disconnect, just stop the dhcp client, reconfigure it to not ask for dns servers, set the dns servers manually, then restart the client. Let me see if I can work up an example. Oh, ok, ok, I kinda get it now. If you could provide aditional help it would be greatly appreciated, but...
by PantuFJAR
Tue Aug 30, 2022 10:13 pm
Forum: General Discussion
Topic: Set DNS with DHCP
Replies: 8
Views: 8770

Re: Set DNS with DHCP

Thank you for helping me, let me see if I get this right... Your suggestion is to connect using the DHCP server, get the connection configuration from it (IP,Gateway). Then disconnect, configure the client with the configuration I got from the DHCP server but with the DNS servers address that I want?
by PantuFJAR
Mon Aug 29, 2022 11:07 pm
Forum: General Discussion
Topic: Set DNS with DHCP
Replies: 8
Views: 8770

Re: Set DNS with DHCP

I'm not sure how the arduino component factors in but when using the native esp-idf, the dhcp client automatically gets the dns server and sets it accordingly. Using the native API, is it possible to set the DNS manually after the DHCP assigns it automatically? In other words to manually override t...
by PantuFJAR
Tue Aug 23, 2022 6:52 pm
Forum: General Discussion
Topic: Set DNS with DHCP
Replies: 8
Views: 8770

Set DNS with DHCP

Is it possible to set the DNS server for the ESP32 when its using a DHCP server to get its own IP? Im using platformio latest arduino framweork with the board esp32dev , when I take a look to the WiFiSTAClass the only way to configure the DNS is by disabling the dhcp client, quoting from the code it...