DNS IP server address

joseph
Posts: 1
Joined: Fri Oct 06, 2017 8:57 am

DNS IP server address

Postby joseph » Mon Oct 09, 2017 4:15 pm

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

User avatar
martinayotte
Posts: 141
Joined: Fri Nov 13, 2015 4:27 pm

Re: DNS IP server address

Postby martinayotte » Thu Oct 12, 2017 8:29 pm

Since your ESP is used in STA using DHCP, then it must be a problem with your router ...

Who is online

Users browsing this forum: No registered users and 91 guests