mDNS troublesome on ESPHOME?

Hi,

I am experiencing very bad connectivity in the options where mDNS is used. In the ESPhome tab of Homeassistant, devices show as “offline” most off the time. This prevents me also from OTA flashing. Sometimes it is possible to view a log over the air, most of the times however, not.

My Config is Rasberry Pi 4b with the lastest HA suite running . ESP version 2021.8.2. Wired to the ethernet network. When sniffing the network, all mDNS packets are send to and from the ESP nodes.
3 probes from the Raspbery, 3 answers from the ESP node.

It’s just, in my opinion, that ESPhome does not process the received mDNS packets, or even receive them at all.

I know that using fixed IP’s can solve this, however, that’s not the way to go, it would mean keeping track of all IP’s, names, DNS entries etc. mDNS is there to ease life :wink:

Anyone any clue ?

Just realized there is a DNS log available, i’ll post it , doesn’t look good, but who can “decode” the issue seen in the log ?

[ERROR] plugin/errors: 2 mht22.local.local.hass.io. A: plugin/forward: no next plugin found
[INFO] 172.30.32.1:38139 - 27577 “A IN mht22.local.local.hass.io. udp 43 false 512” SERVFAIL qr,rd 43 0.00123693s
[INFO] 172.30.32.1:44166 - 27577 “A IN mht22.local.local.hass.io. udp 43 false 512” SERVFAIL qr,aa,rd 43 0.000203794s
[INFO] 127.0.0.1:36806 - 5821 “A IN mht22.local. udp 40 true 2048” REFUSED qr,rd,ra 29 0.041390219s
[INFO] 172.30.32.1:58687 - 5821 “A IN mht22.local. udp 29 false 512” REFUSED qr,rd,ra 29 0.044298092s
[INFO] 127.0.0.1:36806 - 5821 “A IN mht22.local. udp 40 true 2048” REFUSED qr,rd,ra 29 0.013305696s
[INFO] 172.30.32.1:56186 - 5821 “A IN mht22.local. udp 29 false 512” REFUSED qr,rd,ra 29 0.015057897s
[INFO] 127.0.0.1:36806 - 20179 “A IN mht22.local.local.hass.io. udp 54 true 2048” NOERROR - 0 0.000059463s
[ERROR] plugin/errors: 2 mht22.local.local.hass.io. A: plugin/forward: no next plugin found
[INFO] 172.30.32.1:58233 - 20179 “A IN mht22.local.local.hass.io. udp 43 false 512” SERVFAIL qr,rd 43 0.001361484s
[INFO] 172.30.32.1:52887 - 20179 “A IN mht22.local.local.hass.io. udp 43 false 512” SERVFAIL qr,aa,rd 43 0.000176183s
[INFO] 127.0.0.1:41417 - 36247 “A IN mht22.local. udp 40 true 2048” REFUSED qr,rd,ra 29 0.040450271s
[INFO] 172.30.32.1:43711 - 36247 “A IN mht22.local. udp 29 false 512” REFUSED qr,rd,ra 29 0.043770547s
[INFO] 127.0.0.1:41417 - 36247 “A IN mht22.local. udp 40 true 2048” REFUSED qr,rd,ra 29 0.040544362s
[INFO] 172.30.32.1:55132 - 36247 “A IN mht22.local. udp 29 false 512” REFUSED qr,rd,ra 29 0.04253245s
[INFO] 127.0.0.1:41417 - 21052 “A IN mht22.local.local.hass.io. udp 54 true 2048” NOERROR - 0 0.000086999s
[ERROR] plugin/errors: 2 mht22.local.local.hass.io. A: plugin/forward: no next plugin found
[INFO] 172.30.32.1:49817 - 21052 “A IN mht22.local.local.hass.io. udp 43 false 512” SERVFAIL qr,rd 43 0.002979614s
[INFO] 172.30.32.1:57804 - 21052 “A IN mht22.local.local.hass.io. udp 43 false 512” SERVFAIL qr,aa,rd 43 0.001052229s
[INFO] 127.0.0.1:38535 - 45382 “A IN mht22.local. udp 40 true 2048” REFUSED qr,rd,ra 29 0.047357676s
[INFO] 172.30.32.1:46335 - 45382 “A IN mht22.local. udp 29 false 512” REFUSED qr,rd,ra 29 0.050454455s
[INFO] 127.0.0.1:38535 - 45382 “A IN mht22.local. udp 40 true 2048” REFUSED qr,rd,ra 29 0.042151403s
[INFO] 172.30.32.1:41287 - 45382 “A IN mht22.local. udp 29 false 512” REFUSED qr,rd,ra 29 0.045220201s
[INFO] 127.0.0.1:38535 - 18875 “A IN mht22.local.local.hass.io. udp 54 true 2048” NOERROR - 0 0.000123424s
[ERROR] plugin/errors: 2 mht22.local.local.hass.io. A: plugin/forward: no next plugin found
[INFO] 172.30.32.1:57491 - 18875 “A IN mht22.local.local.hass.io. udp 43 false 512” SERVFAIL qr,rd 43 0.001717443s
[INFO] 172.30.32.1:46595 - 18875 “A IN mht22.local.local.hass.io. udp 43 false 512” SERVFAIL qr,aa,rd 43 0.0002822s
[INFO] 127.0.0.1:40241 - 15072 “A IN esp12f.local. udp 41 true 2048” REFUSED qr,rd,ra 30 0.046407727s
[INFO] 172.30.32.1:55646 - 15072 “A IN esp12f.local. udp 30 false 512” REFUSED qr,rd,ra 30 0.060487258s
[INFO] 127.0.0.1:40241 - 15072 “A IN esp12f.local. udp 41 true 2048” REFUSED qr,rd,ra 30 0.042674146s
[INFO] 172.30.32.1:34090 - 15072 “A IN esp12f.local. udp 30 false 512” REFUSED qr,rd,ra 30 0.044417058s
[INFO] 127.0.0.1:40241 - 512 “A IN esp12f.local.local.hass.io. udp 55 true 2048” NOERROR - 0 0.000073406s
[ERROR] plugin/errors: 2 esp12f.local.local.hass.io. A: plugin/forward: no next plugin found
[INFO] 172.30.32.1:42957 - 512 “A IN esp12f.local.local.hass.io. udp 44 false 512” SERVFAIL qr,rd 44 0.002032076s
[INFO] 172.30.32.1:51431 - 512 “A IN esp12f.local.local.hass.io. udp 44 false 512” SERVFAIL qr,aa,rd 44 0.000259109s

I get this issue as well. Esphome is installed in a supervised home assistant container. Have you found any solution yet.

Nope, I have created an issue in github HERE times ago.
DNS matters are apparently very sensitive in the community. It’s a pitty. HA is very cool, ESPHOME is just great. A working mDNS would make it even better and easier to work with it. The issue got stale, it is not picked up for resolving. Such a pittty.

Can you post your docker-compose yml? Maybe its the host not receiving mdns.