openlumi / lumimqtt

Service to control Xiaomi Gateway with MQTT
GNU General Public License v3.0
39 stars 14 forks source link

does not connect by domain name #41

Open Spp595 opened 10 months ago

Spp595 commented 10 months ago

I use domain names on my router to easily connect to devices on the local network. example: device.local. When trying to connect to mqtt broker on a domain, an error occurs: it cannot connect. According to the device's IP, there is no such problem

devbis commented 10 months ago

Can you ping broker.local from the gateway? Do you use default DNS resolver of your local router on the gateway?

Spp595 commented 10 months ago

Can you ping broker.local from the gateway? Do you use default DNS resolver of your local router on the gateway?

Pings of your devices on the network by domain name really don’t work, the address is not found. How can I find out what DNS I'm using?

devbis commented 10 months ago

I suppose it is mentioned in /tmp/resolv.conf.d/resolv.conf.auto

But it could be a openwrt-related problem. You'd better search for the issue in the Openwrt forums/discussions

Spp595 commented 10 months ago

Interface wwan

nameserver 10.10.10.1 search local As I understand it, local is a domain, everything seems to be correct