As far as I understand, something on my HA machine sends out a broadcast and promotes this cryptic hostname. This causes a wrong name e.g. in my Router. Sometimes access via homeassistant.{local,fritz.box} is also broken which is annoying.
I set the correct hostname “homeassistant” via UI and terminal "ha host options --hostname ‘homeassistant’ ". Both don’t change the behavior.
nslookup 192.168.178.9 return:
9.178.168.192.in-addr.arpa name = c806e693bf244f7ab33ce76691e5648d.fritz.box.
9.178.168.192.in-addr.arpa name = homeassistant.fritz.box.
Anyone an idea what sets and promotes this weird hostname? Maybe an addon?
Addons installed:
You probably have to look into the DNS and DHCP service.
My guess is that the DHCP service publish its leases to the DNS service and once the wrong name is in the DHCP service, then it keeps it until the record is purged, which will be once the lease time has run out and the IP pool have been cycled around. This might which again might never happen in a home network, since there are usually not enough device to make the IP pool cycle.
Happens also here with a Debian Docker-Compose Installation.
I think this is caused by a (default-config) activated Zeroconf in Home Assistant (multicast HA-uuid as a hostname).
My solution is to set the hostname in the FritzBox (Select the host in the Home Network list). Then the host has two identities (hostname with Home Assistant uuid and the expected hostname). You can prove it on the HA host with the shell command
host <ipaddr>.
I hope this helps others as well.
It appears HA introduces something bad in view of the hostname setting in one of the last update. Can somebody confirm/help out? The solution proposed above does not work, as I have already set the hostname in the fritzbox.