Why MQTT integration requires the `.lan` suffix?

  1. I changed my LAN setup recently, decided to split it into multiple subnets

  2. I also configured a hostname mqttbroker on my OpenWRT so that we don’t have to remember IP addresses

  3. I can resolve on CLI with just ping mqttbroker

  4. But HA’s MQTT integration insists I specify it as mqttbroker.lan, otherwise it cannot reach the broker, why so special?

  5. The problem here is that, I cannot freely experiment with my network setup, each time I rename lan as something else, my entire MQTT breaks down until it gets updated in HA, in this case, what is the point of hostnames?