I don’t seem able to use or resolve .local (mDNS) hostnames from within the default Home Assistant Docker container.
Network mode is set to host. On the host system I can resolve .local hostnames for devices on my network. If I try to use any of those .local hostnames from within the container, it fails.
I’ve been googling a bunch to try understand what the problem is and how to fix it but I’ve mostly found explanations for how to make mDNS work without network mode host or how to announce the docker container itself with a mDNS entry, neither of which I am interested in.
I just want to be able to use
myservicehost.local from within the Home Assistant container.
Any thoughts / advice / pointers?
Context: My router “melted” today and I had to completely patch up my network to at least function with basic capability until I was able to replace and reconfigure a new router. This caused me to loose many services and having to update many configurations based on them now pointing at the wrong IP addresses. As a takeaway from this I want to make an effort to more heavily rely on mDNS as a more flexible way to address and discover hosts across my network.