this post was submitted on 20 Jan 2025
56 points (96.7% liked)

Selfhosted

41281 readers
455 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

TL;DR: I made the switch an hour ago and thought I'd share my motivations and experiences here in case anyone wants to do the same.


A few years ago, when the number of devices in my LAN threatened to get out of hand for reasonable maintainability, I made the switch to network-wide ad blocking. An older Raspberry Pi model connected directly to my router turned out to be a good solution. After checking the available options, I ran AdGuard Home on it for a while, which is (in my opinion) a nicer solution than the top dog Pi-Hole, but essentially does the same thing: every DNS request is forwarded to a customisable DNS server and filtered using equally customisable blocking lists, plus there's a nice web interface.

Third-party DNS servers have some advantages, but they are not protected against censorship (e.g. the attacks by corporations against Quad9) and surveillance. Because what used to be called ‘paranoia’ can now be called healthy caution again, my own DNS server wouldn't be such a bad idea, I thought. The most obvious solution, setting up an Unbound in addition to AdGuard Home, did not seem wise to me for two reasons: Firstly, I have had rather mixed experiences with setting up and running Unbound on my mail server, and secondly, the concept of having to run two different services on the same device for the same purpose, which then have to talk to each other, seemed ill-conceived to me: not only is it quite complex and seems partially redundant, it is also more error-prone than a standardised solution.

Shortly afterwards, I accidentally found the answer to my doubts with the Technitium DNS server. Technitium (they have more products, but I'll cut it short for now) is something similar to AdGuard Home and Pi-Hole: you start a software and this software then acts as a DNS server. Technitium does not (necessarily) use a third-party service, but sends all queries directly to the root nodes. This takes a little longer than usual the first time a domain is called, but is censorship-free and then (naturally, because it is within the local network) lightning-fast.

Technitium works without further configuration, right after starting (and setting the admin password) it is fully operational. Fine-tuning is possible, there are also some plugins, I myself have actually only set up a few ad filters, because Technitium can also use these by default. I like it.

I regret not having started until 2025. I was always put off by Unbound. If I had known that something like Technitium existed (for over five years now), I would probably have skipped AdGuard Home straight away. I am happy to recommend it.

you are viewing a single comment's thread
view the rest of the comments
[–] hendrik@palaver.p3x.de 7 points 3 days ago* (last edited 3 days ago) (1 children)

Blocky is another nice AdBlocker and DNS proxy. I've been using it for quite a while. Seems to be pretty efficient, too. If you're looking at community DNS servers, have a look at https://opennic.org that's a democratic DNS root.

And by the way, take care not to expose your DNS server to the public internet, or some people will start using it for DNS amplification attacks. But that shouldn't be any concern if you run it on a Raspberry Pi at home.

[–] tux0r@feddit.org 4 points 2 days ago* (last edited 2 days ago) (1 children)

Blocky is another nice AdBlocker and DNS proxy.

Blocky does look nice, but there is no way to use it without any upstream DNS server, which limits its usefulness. Technitium works without having to rely on third-party DNS services, which is its main selling point, I guess.

[–] hendrik@palaver.p3x.de 2 points 2 days ago (1 children)

Sure, it's just a proxy/forwarder. I mean I kind of see your point. But I don't think I agree on the word "usefulness". In practice, for an average person, it has the exact same effect, no matter if you pick an intermediary, caching DNS server, or recursively look it up, starting at the root. It returns the same answer and the same webpage opens. With the one requirement that you need to pick an DNS server which doesn't mess with the results. But that's not a huge issue, there are quite some uncensored DNS servers out there. Like the OpenNIC ones for example.

But I don't want to talk you out of it. Originally, it was frowned upon querying the root DNS servers. Since it puts more strain on them and the very core of the internet. And it's a bit more inefficient for you, since your DNS server needs to store more database information and do more queries from a residential internet connection which might be slower than a server in a datacenter. But a lot has changed since DNS got invented and I think it's probably fine to run a full, recursive DNS server at home these days.

So enjoy your unhindered internet access. For the other people who don't want to run a full DNS server, I can recommend opennic.org And I think it's really a shame that lots of ISPs mess with the DNS results and introduce third-party blocklists. Mine does that, too.

[–] tux0r@feddit.org 2 points 2 days ago

With the one requirement that you need to pick an DNS server which doesn’t mess with the results. But that’s not a huge issue, there are quite some uncensored DNS servers out there. Like the OpenNIC ones for example.

I know, and some of them have quite some latency, while others may or may not start censoring and/or logging my requests in the future. The downside is that having my own DNS server outside my LAN doesn't make much sense, because (you're right!) my home internet connection is struggling to keep up with the major providers, as is my hardware. However, at, I've just checked, an average of just under 2,000 requests per hour, it's more than feasible.

There's a good chance that the operators won't even notice my requests, especially because my cache is filling up fast.

And I think it’s really a shame that lots of ISPs mess with the DNS results and introduce third-party blocklists. Mine does that, too.

This. Very much this.