Page 1 of 1

DNS IP server address

Posted: Mon Oct 09, 2017 4:15 pm
by joseph
Hi all

I used TI CC3200 and it was very easy to get DNS IP after connexion.
I cannot do it with ESP32.
I try to explain what I would wish :
I connect ESP32 as a STA. It well works.
After that, I get from the DHCP of the router : IP address, Gateway address, Netmask... it's ok.

I presume that DHCP sends too the DNS address...but no way to get it.
I try the dns_getserver() and the result is always 0.0.0.0

Please can you help me ?
Best Regards
Joseph

Re: DNS IP server address

Posted: Thu Oct 12, 2017 8:29 pm
by martinayotte
Since your ESP is used in STA using DHCP, then it must be a problem with your router ...