Resolve hostnames between different lan interfaces

Started by snippem, January 10, 2023, 11:28:42 AM

Previous topic - Next topic

Hi all

With esphome I get this error

INFO Reading configuration /config/esphome/esphome-bluetoothtracker.yaml... INFO Starting log output from esphome-bluetoothtracker.local using esphome API WARNING Can't connect to ESPHome API for esphome-bluetoothtracker.local: Error resolving IP address: [Errno -5] No address associated with hostname INFO Trying to reconnect to esphome-bluetoothtracker.local in the background

How do I solve this problem ?

I use unbound and adguardhome to handle dns.

Regards

Marco

Verstuurd vanaf mijn SM-G990B met Tapatalk


Not clear. What is esphome ? where is it, on your LAN?  Is AdGuard on OPN or separate server?
Too much to guess here but in general the error suggests there in no entry on your DNS server for that host.

January 10, 2023, 01:07:09 PM #2 Last Edit: January 10, 2023, 01:10:23 PM by snippem
i have 2 LAN interfaces LAN 1 for trusted devices and LAN 2 is for guests and iot devices.
On LAN 1 i run homeassistant with esphome to contole some esp32 devices that are located on LAN 2.
Within homeassistant those devices can be controled as home assistant detects them on the specified port.
But when i run the esphome addon to maintain or send code the esp devices are not detected.
The addon cannot resolve the "esp32 name".local to a ip-adres.

The .local doesresolve when the device is on the same LAN interface as home assistant.

Right. Sorry, I can't comment. I've no idea how homeassistant works. I don't use it.

January 10, 2023, 03:02:32 PM #4 Last Edit: January 10, 2023, 03:04:26 PM by snippem
That's okay  ;)

Figured out what the problem was thought i added the interface to mDNS Repeater.
But i didn't  :o added the interface and problem solved .

topic can be closed