Network: Assign FQDN or IP adress for ESPHome devices

Hi,

as I understand the default network behaviour of ESPHome, it uses the “name” parameter (eg. “display”) to define a hostname (and names the yaml file after that name), and uses mDNS to look for “display.local”.

Is there a way to assign a FQDN name (eg. “display.iot.domain.com”), or at least a qualified domain name in the walled home network (eg. “display.iot.home.internal”)? An IP address would also help.

Thanks,

Thomas

Hey. You can definitely specify a fixed (or manual) IP in ESPHome.

I haven’t used it myself yet, but it looks like you can also specify a domain.

Yeah, domain works (i am using it, as mDNS is unreliable at my place):

esphome:
  name: display

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  domain: .iot.home.internal

then display.iot.home.internal would resolve :wink:

(mark the dot before the domain :wink:)

1 Like

Thanks, that’s it.