DNS IP server address
Posted: 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
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