You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish to use a domain name like "www.example.com" other than http://192.168.4.1/
I tried the library example DNSServer where they used dnsServer.start(DNS_PORT, "www.example.com", apIP); and it worked pretty well. I just had to type at the browser http://www.example.com and it finds it ip that was 192.168.1.1. When I used other names other than the correct one at the captive example that you used to inspire your own code the pages shown at the browser was created by webServer.onNotFound method.
It looks simple to solve, so i entered your code lib and change the line dnsServer->start(DNS_PORT, "*", WiFi.softAPIP()); to dnsServer->start(DNS_PORT, "www.example.com", WiFi.softAPIP());, but it doesn't work. How can I do it? I think that a real DNSServer should lets us type server name other than server ip, after all it is why DNSServer was created.
Thank you for your lib. For the first time one lib really delivers what promisses with a very fast implementation.
The text was updated successfully, but these errors were encountered:
i think the redirect code might need to check for domain exceptions as well... currently it tries to redirect everything to the ip, have not checked if all of that works as it should for a long while...
look in ken taylor s branch, he did some stuff to handle a specific domain i believe
I wish to use a domain name like "www.example.com" other than http://192.168.4.1/
I tried the library example DNSServer where they used
dnsServer.start(DNS_PORT, "www.example.com", apIP);
and it worked pretty well. I just had to type at the browser http://www.example.com and it finds it ip that was 192.168.1.1. When I used other names other than the correct one at the captive example that you used to inspire your own code the pages shown at the browser was created by webServer.onNotFound method.It looks simple to solve, so i entered your code lib and change the line
dnsServer->start(DNS_PORT, "*", WiFi.softAPIP());
todnsServer->start(DNS_PORT, "www.example.com", WiFi.softAPIP());
, but it doesn't work. How can I do it? I think that a real DNSServer should lets us type server name other than server ip, after all it is why DNSServer was created.Thank you for your lib. For the first time one lib really delivers what promisses with a very fast implementation.
The text was updated successfully, but these errors were encountered: