this post was submitted on 05 May 2025
471 points (98.8% liked)

Technology

70080 readers
2601 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 57 points 1 week ago (10 children)

I've been thinking of setting one up for a while, if I have a home server would I be better off hosting it on that or as a separate device? What are the alternatives to a raspberry pi? They've shot up in price over the years.

[–] [email protected] 38 points 1 week ago* (last edited 1 week ago) (1 children)

If you have a server running, I wouldn't buy more hardware. They have good example documentation for just such a configuration:

https://docs.pi-hole.net/docker/

If your server already has those ports bound (specifically the DNS port 53) you are going to have to get creative; otherwise it'll work well!

Worst case, a cheapo pi 3 will do the job. At one point I had it running on a pi zero, so hardware requirements are pretty low.

[–] [email protected] 21 points 1 week ago* (last edited 1 week ago) (3 children)

If your using docker and the ports are bound you can just use the network mode host so the container gets it's own ip. It's how I have adguard running on my unraid server

edit: Sorry I mixed up the details as @[email protected] pointed out. It's a macvlan configuration. My intention was to point out it's possible. Here's some documentation https://docs.docker.com/engine/network/drivers/macvlan/

[–] [email protected] 10 points 1 week ago* (last edited 1 week ago)

Thanks, PoopMonster, that's a good tip!

load more comments (2 replies)
[–] [email protected] 23 points 1 week ago* (last edited 1 week ago)

I personally like it on a dedicated Pi simplly because I don't want DNS to die if i'm doing other server maintenance. the Pi is pretty much set it and forget it.

But i guerss you might as well try it on your server first and you can always buy a Pi if you find it to be too much of a pain.

[–] [email protected] 16 points 1 week ago

I put it onto my home server and it is working great. I can't tell you about all the options, but it was so easy to start another VM for it that I didn't look at other options too carefully.

[–] [email protected] 9 points 1 week ago

if you've already got something running 24/7, you could just put it there. it doesn't need much for resources.

pihole does not need it's own box. it can run as a container (docker instructions in the official docs) or in a small vm.

i have two small vm running dietpi and used that to install pihole. i fully expected to run a few more things on them, that's why i chose dietpi--just have never gotten that far (it's only been like three years now).

[–] [email protected] 7 points 1 week ago

Definitely dont bother with buying a pi if you've got other hardware.

I have one physical (a 3b I had no use for anymore), and two running as containers. The containers do most of the heavy lifting, since they are so much faster than a pi they respond far faster, but the physical is nice for when I take down the clusters for maintenance (or when I lose power, the clusters shut down after about 3 minutes, the pi will keep going for a while on UPS).

load more comments (5 replies)
[–] [email protected] 50 points 1 week ago (4 children)

Don't fall for the trap that they recommend an expensive Pi 5: I am running Pi-hole on a Pi 2 but you can basically run this on obsolete hardware, whether that's a Pi or a PC/laptop

[–] [email protected] 13 points 1 week ago

Can confirm. I have 10 year old pi2 that is dedicated to pi hole and even that is not utilizing all of its 1gb of memory

[–] [email protected] 12 points 1 week ago* (last edited 1 week ago)

I'm running Pi-hole and Pi-VPN on a Zero W (using a Geekworm case w/RJ45). It's not very taxing at all.

I also run two other Pi-hole instances in my server cluster (one in Docker and one in an LXC container). Mostly just for uptime reasons, so I can take any one of them down at any time to perform maintenance and/or upgrade.

[–] [email protected] 10 points 1 week ago (3 children)

I run mine on a PI 0. Also use it as a samba disk partition for transferring files.

load more comments (3 replies)
load more comments (1 replies)
[–] [email protected] 38 points 1 week ago (12 children)

I recommend having two. Otherwise your home internet goes down everytime you update or reboot or it crashes.

[–] [email protected] 35 points 1 week ago* (last edited 1 week ago) (9 children)

Interesting... And this is not a criticism, simply an observation...

I've a single Pihole instance running on a RPi 4 and have experienced not a single instance of any of the 3 probs you mention. Except, of course, the very few minutes it takes for a reboot which I can schedule and am aware when it's happening...

🤷‍♂️

[–] [email protected] 14 points 1 week ago (3 children)

Literally just had my pihole hard crash this weekend due to a bad update to FTL. Apparently they had a major version upgrade and didn't bother to read the notes so I had to do a full OS reinstall.

Back up your configs people. Had to dig through documentation to find the sqlite file and then parse through it like some sort of animal.

load more comments (3 replies)
[–] muhyb 6 points 1 week ago (1 children)

I didn't have a problem on my Pi-hole for a very long time too. OP has that probably because s/he's using it as a DHCP server as well.

[–] [email protected] 6 points 1 week ago

Certainly possible though not so versed in Pihole capabilities that I can imagine how that happens...

My DHCP is handled by an EdgerouterX...

My Pihole is limited to DNS only.

load more comments (6 replies)
[–] [email protected] 10 points 1 week ago (1 children)

Mine never crashed until the latest major update, now it’s down every time I come home. Am mad

load more comments (1 replies)
[–] [email protected] 6 points 1 week ago (1 children)

honestly don't find it necessary. raspberry OS basically never needs to be rebooted and if you really need planned maintenance you can just use a normal DNS server til you're done.

load more comments (1 replies)
[–] JackbyDev 6 points 1 week ago (3 children)

Huh? Typically you have a secondary DNS entry on your router

[–] [email protected] 10 points 1 week ago* (last edited 1 week ago) (1 children)

Secondary DNS is not for redundancy!

The way secondary DNS works is that a client distributes DNS requests across the primary and secondary DNS servers. So if you have pihole as your primary DNS and, say, 8.8.8.8 as your secondary DNS, you're sending half of your DNS requests to google unfiltered. And if your pihole DNS goes down, half of your DNS queries time out.

The way to have redundancy with DNS is with a standby server that takes over the IP of the primary server if it goes down. You can do this with keepalived.

load more comments (1 replies)
[–] [email protected] 6 points 1 week ago (8 children)

And what do you set that secondary DNS entry to? Operating systems may use both, so you need the secondary to point to a pi hole or else you're letting ads through randomly.

load more comments (8 replies)
load more comments (1 replies)
load more comments (8 replies)
[–] [email protected] 23 points 1 week ago (1 children)
[–] [email protected] 11 points 1 week ago

I'm reasonably certain the name was intentional because of the way it could be phrased.

[–] [email protected] 9 points 1 week ago* (last edited 1 week ago) (3 children)

Raspberry Pi 1b > DietPi > Pi-hole > Unbound <3

[–] [email protected] 6 points 1 week ago (1 children)

I never hear anyone else talk about dietpi, I install that more than raspbian

load more comments (1 replies)
load more comments (2 replies)
[–] [email protected] 7 points 1 week ago (2 children)

I played with a pi-hole setup for a bit. It was nice. I got distracted and set up NextDNS. That’s where I am now.

I like I can easily turn it on/off when I just need to do something and no time to fuss with it.

I’ve got a home server, just not fully setup and going yet, but someday…

Any thoughts on why I might do pi-hole over something like NextDNS? I think the cost is roughly $1/mo.

[–] [email protected] 14 points 1 week ago (1 children)

If that's what you're happy with and works for you, continue.

Personally, I'm creating an environment in which I'm not dependent on any cloud provider on the front end.

I do have a cloud backup solution for all my data files on the off chance I lose every single on-site backup and closely-held remote backups (read: not in main building but still on property...).

Just trying to get away from reliance on the existence of someone else's computer/datacenter...

🤷‍♂️

load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 7 points 1 week ago

The beauty is that you can shove Pi in it of course.

[–] randombullet 6 points 1 week ago

I use adguard home in conjunction with NextDNS.

I find adguard a little better in the UI department. Have it in a docker container so it's a set and forget.

[–] [email protected] 6 points 1 week ago (3 children)

Is it possible to do something like this with a newer router? My wireless-G router is finally dying after 20 years, and if I need to upgrade it'd be nice to wrap it all in one.

[–] [email protected] 7 points 1 week ago

You can do it with any router by manually configuring devices, but one that lets you advertise the PiHole IP as the DHCP DNS option makes it a lot easier.

load more comments (2 replies)
[–] [email protected] 5 points 1 week ago (4 children)

Getting an error trying to access this:

https://den.dev/blog/pihole has a security policy called HTTP Strict Transport Security (HSTS), which means that Firefox can only connect to it securely. You can’t add an exception to visit this site.

[–] [email protected] 5 points 1 week ago

Works for me

load more comments (3 replies)
load more comments
view more: next ›