this post was submitted on 05 May 2025
472 points (98.4% liked)

Technology

69947 readers
5402 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
[–] President@sh.itjust.works 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.

[–] normalexit@lemmy.world 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.

[–] PoopMonster@lemmy.world 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 @starkzarn@infosec.pub 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/

[–] normalexit@lemmy.world 10 points 1 week ago* (last edited 1 week ago)

Thanks, PoopMonster, that's a good tip!

load more comments (2 replies)
[–] acosmichippo@lemmy.world 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.

[–] Brokkr@lemmy.world 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.

[–] adarza@lemmy.ca 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).

[–] curbstickle@lemmy.dbzer0.com 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)
[–] Donut@piefed.social 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

[–] mrnarwall@lemmy.world 14 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

[–] lka1988@lemmy.dbzer0.com 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.

[–] Simulation6@sopuli.xyz 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)
[–] termaxima@programming.dev 47 points 1 week ago (1 children)

66.6% of all traffic is blocked with no functional impact on anything that I do

Okay. I’m convinced.

[–] SpaceCadet@feddit.nl 43 points 1 week ago (2 children)

Misleading statement. It doesn't block "traffic", it blocks DNS requests... you don't know how much traffic this corresponds to.

[–] xavier666@lemm.ee 23 points 1 week ago (6 children)

Correct. The payload of DNS requests is tiny compared to, say requesting a webpage. So there might not be a huge decrease of bandwidth usage reduction. However, having 66.6% less DNS requests is still a win. The router/gateway doesn't have to work that hard because of the dropped requests.

[–] SpaceCadet@feddit.nl 29 points 1 week ago (7 children)

It isn't so much about the payload of the DNS requests, but about the content that would have been loaded if the DNS request hadn't been blocked.

If you load a page that has 100kB of useful information, but 1MB of banner ads and trackers ... you've blocked a lot more than 66%. But if you block 1MB of banner ads on a page that hosts a 200MB video, you've blocked a lot less.

Also a 66% blocked percentage seems very high. I have installed pihole on 2 networks, and I'm seeing 1.7% on my own network, but I do run uBlock on almost everything which catches most stuff before it reaches the pihole, and 25% on the other network.

load more comments (7 replies)
load more comments (5 replies)
[–] DScratch@sh.itjust.works 5 points 1 week ago (1 children)

You can easily find out. 2 machines (even virtual machines) one set it's DNS to the PiHole, one not.

Both hit the same sites in the same order. Compare network traffic.

load more comments (1 replies)
[–] yaroto98@lemmy.org 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.

[–] lupusblackfur@lemmy.world 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...

🤷‍♂️

[–] CosmicTurtle0@lemmy.dbzer0.com 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@programming.dev 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.

[–] lupusblackfur@lemmy.world 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)
[–] shiroininja@lemmy.world 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)
[–] acosmichippo@lemmy.world 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@programming.dev 6 points 1 week ago (3 children)

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

[–] SpaceCadet@feddit.nl 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)
[–] chaospatterns@lemmy.world 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)
[–] cupcakezealot@lemmy.blahaj.zone 23 points 1 week ago (1 children)
[–] lka1988@lemmy.dbzer0.com 11 points 1 week ago

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

[–] Teppichbrand@feddit.org 9 points 1 week ago* (last edited 1 week ago) (3 children)

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

[–] TheGreenWizard@lemmy.zip 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)
[–] Routhinator@startrek.website 7 points 1 week ago

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

[–] confusedwiseman@lemmy.dbzer0.com 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.

[–] lupusblackfur@lemmy.world 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)
[–] randombullet@programming.dev 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.

[–] adhocfungus@midwest.social 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.

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)
load more comments
view more: next ›