interesant esp boot
https://github.com/raburton/rboot
---------------------
https://tttapa.github.io/ESP8266/Chap08%20-%20mDNS.html
DNS It stands for Domain Name System, and is a way to translate a website's domain name to its IP address.The DNS lookup happens completely in the background: when you go to a website in your browser, it will first send a request to a DNS server (this implies that the computer knows the IP address of the DNS server itself), wait for the response of the lookup, and then send the actual request to the right IP address.
mDNS... DNS works great for normal sites on the Internet, but most local networks don't have their own DNS server. mDNS uses domain names with the .local suffix, for example http://esp8266.local.
if (!MDNS.begin("esp8266")) { // Start the mDNS responder for esp8266.local
Of course, you can change the domain name of the ESP by changing the parameter of MDNS.begin.
.............................
DNS server from DNSserver arduino examples
#include <DNSServer.h>
const byte DNS_PORT = 53;
DNSServer dnsServer;
void setup() {
// modify TTL associated with the domain name (in seconds)
// default is 60 seconds
dnsServer.setTTL(300);
// set which return code will be used for all other domains (e.g. sending
// ServerFailure instead of NonExistentDomain will reduce number of queries
// sent by clients)
// default is DNSReplyCode::NonExistentDomain
dnsServer.setErrorReplyCode(DNSReplyCode::ServerFailure);
// start DNS server for a specific domain name
dnsServer.start(DNS_PORT, "www.example.com", apIP);
.....
// if DNSServer is started with "*" for domain name, it will reply with
// provided IP to all DNS request
dnsServer.start(DNS_PORT, "*", apIP);
...
void loop() {
dnsServer.processNextRequest();
---------------------------------------------------------------------------
OTA.ino da sotto e di https://stackoverflow.com/questions/39688410/how-to-switch-to-normal-wifi-mode-to-access-point-mode-esp8266