I’m using the Pi-hole add-on, and it was working perfectly until a reboot. After physically restarting Home Assistant, Pi-hole only receives PRT (Port) requests.
In the Home Assistant terminal, I ran some commands. I suspect that the Pi-hole container is no longer running in host network mode. If I reinstall the Pi-hole add-on, everything starts working again. Is there a way to check what network mode the add-on is running in, and change it to host?
→ ~ nslookup google. com 192.168.0.116
;; communications error to 192.168.0.116#53: connection refused
;; communications error to 192.168.0.116#53: connection refused
;; communications error to 192.168.0.116#53: connection refused
;; no servers could be reached
I know the hostname of the Pi-hole add-on — 0da538cf-pihole, and I’m wondering if there’s a command in the Home Assistant terminal that I can use to check the network mode of the add-on — whether it’s using host or bridge, because it seems to me that Pi-hole doesn’t have access to the network.
I was overcomplicating things Although I had reserved a local IP address on the router, for some reason the IP address of Home Assistant changed after a reboot. I set the new Home Assistant address as the router’s DNS, and everything started working again. Thanks!