Both HA-core and PI-hole on the same PI in Docker results in external API's not responding

I have HA-core and Pi-Hole installed on my PI4 with docker.

  • PI Hole is listening on ports 53 and 80
  • HA has network_mode set to “host”

While my whole network can use the PiHole without issues, HA external API’s are not responding anymore. None of the external calls from HA are working actually.

When looking into the PiHole logs (filtering on the HA docker instance IP) I see it first tries an A record lookup, which works.
Then it calls the external API for data through the AAAA record and it always results in a NODATA respond.

With external API’s I mean for example: HACS (github), Spotify, Weather stations, HA core updater etc.

I do know that my IPS does not provide a IPv6 address.
However, I can hardly imagine this is the issue since all other (non-docker) devices in my network are connecting without issues.

Any help would be great!

I am in the same spot.

If I start pi-hole container, no external integration will connect anymore. I stop the container and everything works again.

Did you find anything ?

For now, removing network mode host from HA fixes the problem but should block auto discovery…

Maybe moving all of the containers to network mode host could work? Not sure, didn’t tried yet.