News for hackers. Stuff that matters.
Re:I ditched my Pi-hole but still block ads with NextDNS by bhaney on Wednesday February 19, 2025 @01:07PM (#43105245)
I've just been dumping ad blocking hosts files into /etc/hosts.d/ on my router since long before pi-hole was a thing.
Re:I ditched my Pi-hole but still block ads with NextDNS by vwadhwani on Wednesday February 19, 2025 @04:12PM (#43107745)
Works great for PCs, but my pi-hole doubles as a VPN and lets me block ads on my iPhone too.
Re:I ditched my Pi-hole but still block ads with NextDNS by doubled112 on Wednesday February 19, 2025 @04:21PM (#43107858)
My router supports DNS blocklists and VPN too.
Re:I ditched my Pi-hole but still block ads with NextDNS by bhaney on Wednesday February 19, 2025 @04:29PM (#43107958)
> my pi-hole doubles as a VPN

So does any non-trash router.

Re:I ditched my Pi-hole but still block ads with NextDNS by MattSayar on Wednesday February 19, 2025 @01:11PM (#43105306)
How do you keep them updated?
Re:I ditched my Pi-hole but still block ads with NextDNS by bhaney on Wednesday February 19, 2025 @01:14PM (#43105340)
curl in a cronjob
Re:I ditched my Pi-hole but still block ads with NextDNS by ahepp on Wednesday February 19, 2025 @04:25PM (#43107916)
I find pi-hole fascinating since it shows there is a sizeable market for open Linux routers in the home, but for some reason people seem fixated with running it on a raspberry pi. That’s fine, but it seems like the worst of all worlds? I wouldn’t say the Pi is particularly reliable, and it doesn’t have a switch chip inside it, or enough beef for heavier processing.

It’s all just standard *nix software that will work on anything from my SFP module running openwrt, to a reflashed MIPS Ubiquiti router, to my x86 FreeBSD box.

Re:I ditched my Pi-hole but still block ads with NextDNS by gh02t on Wednesday February 19, 2025 @05:54PM (#43108806)
The Pi is familiar and comfortable for a lot of people who wouldn't otherwise use Linux or run any kind of server. It's genuinely not the best option in a lot of respects, but it's also the only thing a lot of people know and going to a dedicated server or generic Linux/BSD router seems intimidating, even if they appreciate the possible advantages.

Pi Hole was started specifically as a project targeting the Pi. It wasn't the first to do ad blocking DNS by a long shot, but it did marry a nice web UI to DNS and made it a lot more accessible. Nowadays I think there are much better options like AdGuard that do the same thing, but "running PiHole on a Pi" is a tangible thing to do with the RasPi you got as a gift and is an approachable project for a lot of Linux beginners with real benefits. You can find a million people on YouTube recommending exactly that, and walking you through how to do it step-by-step on a RasPi. Lot of people who are interested in tech but not so skilled probably don't have dedicated servers or know how to set one up, and I expect PiHole on a RasPi gets a lot of momentum from that as something cool and actually useful to do that isn't actually difficult/there are a million tutorials for.

Tl;dr is I agree with you, there are clearly technically superior options. But for a lot of the people you're referring to the alternative is not to run something better on a dedicated server/router, it's to do nothing at all and go back to using the router from your ISP.

Re:I ditched my Pi-hole but still block ads with NextDNS by ddejohn on Wednesday February 19, 2025 @07:09PM (#43109506)
I'm one of those users -- I set up a pihole as my DHCP server to get ad blocking on all devices on my network a few years ago and haven't really thought about it since. Raspberry Pi was familiar enough. Networking in general is mostly Greek to me, so it wasn't the easiest thing to do, but it's pretty much been set-and-forget since the initial setup (aside from updating pihole itself and the web interface every few months).

I've seen AdGuard recommended a lot recently but from what I can tell this doesn't do the same thing as a DHCP pihole.

Something I'd love to do some day is replace my consumer router with something open source and run an all-in-one solution (ad blocking for all devices on network, DoH, as well as just a generally competent home router for a small apartment). Do you have any recommendations for where to start if I were to go down this road?

Re:I ditched my Pi-hole but still block ads with NextDNS by gh02t on Wednesday February 19, 2025 @08:52PM (#43110159)
Easiest first step is to see if your current router has support for OpenWRT. I find OpenWRT kinda hard to use, but a lot of people swear by it and it's very capable even.

More powerful options are projects like PfSense or Opnsense, but those require more expensive hardware and for most uses you probably also need a separate switch. I personally use PfSense and find it relatively easy to use while being extremely powerful, absolutely jam packed with features but an accessible WebUI and clear documentation.

Probably the best all round option are the semi open, prosumer-ish products from companies like Ubiquiti or gl.inet (the latter is even based on OpenWRT, but with a nicer UI... I have one of their routers as a travel router). Ubiquiti's Unifi routers are very easy to use and jam packed with features for a pretty great price, but their platform is not truly open source. Still, gl.inet or Unifi are what I would probably most recommend to someone like you looking to upgrade but feeling overwhelmed by lack of knowledge.

Beware it's fun to tinker and that's how I learnd pretty much everything I know about networking, but breaking the Internet will not endear your new toys to your family. It's good to have a spare in case you mess up so you can keep the bits flowing while you undo your mistake. Anything you choose is going to be an ongoing learning experience if you're starting from no knowledge, but there are lots of high quality tutorials on places like YouTube.

Re:I ditched my Pi-hole but still block ads with NextDNS by ddejohn on Thursday February 20, 2025 @05:14PM (#43120999)
Thanks a bunch. I have actually used unifi routers in the past and didn't always have a great experience with them, but it's been a while and I feel like I might be ready to try again. Will also look into gl.inet, thanks!
Re:I ditched my Pi-hole but still block ads with NextDNS by ahepp on Saturday February 22, 2025 @11:42AM (#43140514)
Some of Ubiquiti's old EdgeRouter line supports OpenWRT. I'm running it on a Ubiquiti EdgeRouter X. I doubt any of their newer Unifi stuff does though.
Re:I ditched my Pi-hole but still block ads with NextDNS by gh02t on Monday February 24, 2025 @01:27PM (#43162990)
Unifi has improved a lot in very recent times in terms of both features and ease of use. I wasn't that keen on their router/firewalls previously, but I quite like them now and the prices on some of their gateway hardware are unbeatable. The Unifi Express is $150 and includes a built in access point and runs their software stack so you don't need to host it elsewhere like you used to. Only real downside is it doesn't have a built-in switch, but a cheap dumb switch should be plenty for normal uses and you always have the option to buy a Unifi (or other brand) managed switch if you want to do more advanced stuff.
Re:I ditched my Pi-hole but still block ads with NextDNS by ahepp on Wednesday February 19, 2025 @04:28PM (#43107953)
In classic HN fashion I forgot to mention that the nice web UI must play a key role here, and make up for all the other UX issues that come with using a pi rather than just “apt-get dnsmasq”
Re:I ditched my Pi-hole but still block ads with NextDNS by LinuxBender on Wednesday February 19, 2025 @04:53PM (#43108237)
Similar here. I use Unbound DNS plus 1Hosts [1] and a few others here and there and I block all the DoH/DoT servers. I also blackhole route known malicious networks.

[1] - https://github.com/badmojr/1Hosts