Hi, I ran into an odd behavior with HA mDNS hostname resolution when I separated HA from my main network. I put HA in an IoT vLAN, but for right now there are no firewalls between the main network and IoT network. The two networks are set to allow all traffic between them. I’m new at networking, I’m learning as I go, haven’t gotten to firewalls yet.
When my laptop and HA are on the same IoT network, I see through Wireshark the mDNS query and then HA responds with its IP address, everything works as expected.
Now, when I put my laptop in my main network and I type in “homeassistant.local:8123” in the URL, I see in Wireshark the query going out and my UniFi router responding with the IP address, this confused me a bit. But I learned that mDNS does not go across LANs so I figured that the router/gateway(?) will repeat the request on the IoT network and then respond to me. Assuming this, I pulled up Wireshark in the IoT network and I saw the gateway (192.168.1.1) do the mDNS query for “homeassistant.local”, but HA never replied…
So to sum it up, HA replies to the query when it comes from my laptop when it’s on the same network, but it does not reply to the mDNS query from the gateway when the query originates from the main LAN.
I don’t think this is a UniFi issue as I see the mDNS query, HA just never responds… Any ideas?