Ok, so I think now you've got the 1.5.4 firmware MDNS should work, but it needs turning on - it's not in the Espruino drivers because the ESP8266 they ship with doesn't have it.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ok, so I think now you've got the 1.5.4 firmware MDNS should work, but it needs turning on - it's not in the Espruino drivers because the ESP8266 they ship with doesn't have it.
The actual command handbook is here: https://www.espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf
wifi.setHostname
callsAT+CWHOSTNAME
, which is to do with WiFi rather than DNS, so I don't think is what you want.I believe this will work:
And you should be able to find your Espruino WiFi as
foobar.local