this post was submitted on 05 May 2025
458 points (98.3% liked)

Technology

69804 readers
3200 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
you are viewing a single comment's thread
view the rest of the comments
[–] President@sh.itjust.works 55 points 2 days 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.

[–] AtariDump@lemmy.world 4 points 23 hours ago

Setup and run two.

This way if one goes down, the other takes over (also makes updates / maintenance easier)

[–] normalexit@lemmy.world 36 points 2 days ago* (last edited 2 days 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 2 days ago* (last edited 16 hours ago) (2 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/

[–] starkzarn@infosec.pub 2 points 1 day ago (1 children)

That's not how that works. network_mode: host shares the network namespace with the container host, so it doesn't do any NAT, it only exists on the host's IP. It would be akin to running a natively installed app, rather than in a container. macvlan networking is what gives a container its own IP on the logical network, without the layer of NAT that the default bridge mode networking that docker typically does.

[–] PoopMonster@lemmy.world 2 points 16 hours ago

Thanks for the clarification I had mixed up the details and went to check my containers. You sir are correct. I added some documentation to my post regarding macvlan network creation.

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

Thanks, PoopMonster, that's a good tip!

[–] acosmichippo@lemmy.world 23 points 2 days ago* (last edited 2 days 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 2 days 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.

[–] fmstrat@lemmy.nowsci.com 3 points 1 day ago

I run mine in Docker. Three containers: PiHole which resolves using Unbound, and a VPN container for Unbound.

That being said, if you routinely restart that device, or it crashes because of something else you are doing, it gets annoying real quick.

A cheap mini-PC running a low wattage n150 is a good thing to have for essential services in docker.

[–] curbstickle@lemmy.dbzer0.com 7 points 2 days 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).

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

[–] themurphy@lemmy.ml 5 points 2 days ago

I have it on my Pi, and it does the job just fine. But if you have a home server with a little more power, do it there instead.

The last thing you want is your DNS to bottleneck. Never had a problem with my Rasp5, but it all depends on how many other services you try to run.

[–] JK_Flip_Flop@lemmy.world 3 points 2 days ago

I run mine on a Intel N100 based mini PC from Beelink running Proxmox. It's just about the only thing it does at the moment so I've had no concerns about bottlenecking.

It's much more powerful than a pi and costs a not too dissimilar amount to one after you factor in a case, storage, power supply.

I run my main pihole on a pi and the backup on a NUC mini pc. Le Potato is a cheap pi alternative.