For what its worth, running HA Core container in HAOS, within the container I am able to ping devices using xxx.local. Taking a look at the processes running on HAOS, I see
Not at all - this runs avahi inside the existing container so that the container can leverage system name resolution through avahi. Host mode is not sufficient for mDNS resolution, host mode only leverages the standard DNS not mDNS.
I can understand this part - but even from that blog post, I’m unsure how the HA docker image can resolve mDNS names since there is no avahi or anything similar running inside the container. Only option I can imagine is that they hack the mDNS resolution into regular DNS using their custom DNS plugin?
@ottawahacker it looks like you are quite familiar with the mdns/zeroconf setup in Home Assistant and I ran into the same problem using podman and a rootless container.
One question:
Your Dockerfile installs not only avahi, but also dbus. I assume that this is how the successfull lookups are forwarded to HA?
I thought about setting up avahi on the host and forwarding avahi message via xdg-dbus-proxy to the container, do you think that would be possible? Do you have any idea where I can read more about that?