-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
How do I get the correct dns1 and dns2? #8847
Comments
Is it a question about how to set DNS server IP when using Ethernet? |
@hzhh110 I can help if you provide a proper explanation of how and what network interfaces you have configured on the ESP, what are active and maybe a small example sketch. As-is, you just shoot out some IP addresses, without any context on what they actually are. As a simple answer: the ESP32 has global DNS servers for all interfaces, it does not allow for separate DNS servers for each interface, so whichever interface has the highest priority, is the one that provided the DNS servers. |
[E][WiFiGeneric.cpp:1438] hostByName(): DNS Failed for |
Possibly related #8672 |
Hello @hzhh110, did those answers help you or you are still looking for some help? |
Hello, this issue is quite old and there is no answer for some time. To keep the issue tracker of this project manageable, I am closing this ticket as expired. If needed, you can reopen it. Thanks for understanding. 👍 |
Related area
nodemcu-32s
Hardware specification
esp32
Is your feature request related to a problem?
How do I get the correct dns1 and dns2? Why are all the Intranet information such as 192.168.3.1 obtained? Even if my gateway is 192.168.2.1 but I get 192.168.3.1 or something like ETH.dnsIP(0).toString(); ETH.dnsIP(1).toString();
Describe the solution you'd like
How do I get the correct dns1 and dns2? Why are all the Intranet information such as 192.168.3.1 obtained? Even if my gateway is 192.168.2.1 but I get 192.168.3.1 or something like ETH.dnsIP(0).toString(); ETH.dnsIP(1).toString();
Describe alternatives you've considered
No response
Additional context
No response
I have checked existing list of Feature requests and the Contribution Guide
The text was updated successfully, but these errors were encountered: