martinayotte wrote:Are you doing the WiFi.hostname("ESP3") before doing the calls to WiFi.mode(WIFI_STA); and WiFi.begin(ssid, password); ?
For me, it is working fine, notice the name I've choose still contains end of MAC, but this is what I want :Code: Select allMyESPAP-192B86 192.168.0.101 60:01:94:19:2b:86 23 Hours 55 Minutes
About DNS, as I said earlier, most routers doesn't take care of adding new hostnames, you need to use mDNS with Bonjour to make that work, like mine above with "ping MyESPAP-192B86.local" .
I did it behind WiFi.begin . Will try before . Klaus-Dieter