OPNsense Forum

English Forums => General Discussion => Topic started by: snippem on January 10, 2023, 11:28:42 AM

Title: Resolve hostnames between different lan interfaces
Post by: snippem on January 10, 2023, 11:28:42 AM

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

Title: Re: Resolve hostnames between different lan interfaces
Post by: cookiemonster on January 10, 2023, 12:08:07 PM
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.
Title: Re: Resolve hostnames between different lan interfaces
Post by: snippem on January 10, 2023, 01:07:09 PM
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.
Title: Re: Resolve hostnames between different lan interfaces
Post by: cookiemonster on January 10, 2023, 01:40:41 PM
Right. Sorry, I can't comment. I've no idea how homeassistant works. I don't use it.
Title: Re: Resolve hostnames between different lan interfaces
Post by: snippem on January 10, 2023, 03:02:32 PM
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