#Home assistant and pi hole on raspberry Pi
45 messages · Page 1 of 1 (latest)
Hi @sullen crescent,
There is a pihole addon.
Oh great thank you
Is there a video or soenthing
To make this easier because I can not find it
I feel like this require a pi-hole hosted somewhere also
Add guard I’m new to this I tried it but I couldn’t get it running on my WiFi
Like I had the add on run and everything but it wasn’t over my internet I tried finding a video on how to do it but didn’t have any luck
Were you able to view the AdGuard web interface?
Yes
Configure your devices
To start using AdGuard Home, you need to configure your devices to use it.
AdGuard Home DNS server is listening on the following addresses:
So, I’d suggest using pihole or adguard on a completely separate machine. The reason being that if your HA instance is down for any reason, you are going to have network issues. Especially if you are looking to do local DNS. It isn’t an “if” but a “when”. Plus, if you’re going to go that route, I’d setup 2 instances of either pihole or adguard (primary and secondary). That way if one of them goes down, the second one will step in and handle the traffic.
@sullen crescent did you configure your devices to use it for DNS as it’s saying? You can try to use a DNS lookup tool to verify.
@placid yoke if HA, which runs in a container, fails, the Ad Guard instance will still run. I so agree that running two is a good idea, but it should be fairly stable.
Be ready to switch back to your default DNS if your Pi dies.
Yup. In a Container install (which is what I run myself), that's fine. But pihole/adguard as addons always leaves me with a "what if" kind of question mark.
(Also, been there, done that lol)
The addons are containers.
I’m HAOS, when you install an addon Home Assistant Supervisor just schedules a docker container with some predefined configuration.
True. But I've seen plenty of times where when HAOS isn't starting (after a reboot or whatever), the addons don't start either.
But yea. Pi will die. It’s not an if, but when. The SD card will eventually fail on you. 😀 I keep a spare around so I can swap for any of my Pi’s without much downtime.
lol 100% true
That’s interesting. I’ve never had that happen. I only reboot when installing a new HAOS update and it’s always come back online. Containers and all. It could happen, but I don’t know if that’s more likely than any other OS or device failing to come back online. Maybe though.
We see it A LOT here where supervisor gets itself into trouble or can't hit github (or a dozen other reasons) and then doesn't start. We've also seen where I user sets HA's local DNS to the pihole/adguard container (or gets it DHCP'd from the DHCP server) and when it can't hit DNS and can't fallback, it fails.
Yea. DNS as a protocol sucks. Mostly can’t set up primary and fallback. Especially when using something like PiHole or AdGuard which is going to give a null response for a domain. If you have another DNS configured, the device will ignore your blocking response and get an IP from the other server.
I now run two Blocky instances in a Nomad cluster, one on a NUC and one on a Pi 4, but then a CoreDNS instance on a Pi 3 which is configured to forward to the other two and fall back to a public DNS server only if there is a connection issue to both upstreams.
That keeps my DNS fairly stable, but not perfect. That one is on a Pi and I had the SDCard die just the other day. Thankfully it was while the other two primary servers were behaving.
As long as you’re ready to switch back your DNS every time your internet appears to have gone out, it’s not much of a big deal.
Just remember
I just use keepalived to have redundancy, or rather high availability. Running a DNS server as an addon sounds like a terrible idea to me.
yes i agree but i had one two different wifi
addguard runs for one of the wifi
i got the DNS setting it works now traffic flows thru
but i still get adds like pop up add and stuff on application and websites
is there a way to do this
my current block list is
OISD Blocklist Big
HaGeZi's Ultimate Blocklist
Your device might not even use your DNS.
it works and block apps like tiktok and stuff
but not pop up adds is there way to do that
Check the log and see what it requests. What kind of ads do you still see?
Pop up ads might come from the same site, or rather domain, you visit. You cannot block every ad via DNS. Same reason you can't block youtube ads with it.
okay