I ditched Google’s DNS for a $20 Raspberry Pi, and I stopped handing my web history to third parties


Unless you’re typing in IP addresses by hand, every single time you visit a website, you perform a DNS lookup first. By default, your network probably points to a public DNS server, like your ISP’s server, Google’s 8.8.8.8, or Cloudflare’s 1.1.1.1. They’re convenient and fast, but it also means that a third-party gets an unredacted view of the websites you visit.

If you want to minimize the amount of information you give away to Google, you can swap out a public DNS server for an inexpensive Raspberry Pi running a Pi-hole and Unbound.

Your DNS server knows every website you visit

Your DNS lookup requests aren’t usually encrypted either

Isometric illustration of a self-hosting setup, with a laptop connected to black server towers, a router, a blue globe, a label with 'DNS' and a domain address. Credit: Lucas Gouveia/How-To Geek | Rvector/Shutterstock

Any time you connect to a website using a domain name, a DNS server somewhere in the world translates that domain name into an IP address that your computer uses behind the scenes to actually connect. Whatever DNS server you use has full visibility of every domain you enter into your browser, and if your DNS requests aren’t encrypted, anyone that intercepts your DNS requests can also view the websites you’re visiting. That is a lot of information to trust to a third party.

Your ISP can still see which IP address you’re connected to, which can then be linked to a domain, unless you’re using a VPN.

Fortunately, you can use an inexpensive Raspberry Pi Zero 2 W and a few open-source projects to address the issue.

A Pi-hole and Unbound can give you privacy and security

You don’t need to directly query a DNS server

A Pi Zero W in an aluminum case.

You do need a DNS server if you want to use domain names to connect to websites, but nothing says you actually need to directly ask the DNS server. Instead, you can build your own using a program called Unbound, which is a recursive resolver.

Unbound talks directly to the entire “DNS hierarchy,” which means it pulls data directly from the root server, TLD servers, the authoritative name servers. Basically, it asks all of the computers involved in linking domains to IP addresses for their information, and then saves that information locally. Whenever you need to access that domain in the future, you’ll be able to draw from Unbound’s saved result instead of asking Google or Cloudflare to connect you to the website.

Raspberry Pi Zero 2 W,png

Brand

Raspberry Pi

CPU

Quad-core 64-bit ARM Cortex-A53

Memory

512MB of SDRAM

The Raspberry Pi Zero 2 W is super tiny and super affordable, but it packs enough computing power for a variety of DIY projects. You can use it to create a handheld retro gaming console, for Klipper/Mainsail, a super compact home or media server, and more. 


You don’t need Google’s 8.8.8.8 server at all—everything required lives on your home network.

Additionally, Unbound is capable of using DNSSEC, which uses cryptography to verify that the DNS records you’re receiving have not been tampered with. Though it is rare, DNS poisoning has been used to reroute traffic from legitimate websites to malicious clones to steal sensitive information, like credit card numbers. Big DNS servers are appealing targets because successfully compromising one could affect tens of millions of people.

It isn’t likely to be a problem, but running your own tiny DNS resolver that double-checks the identity of a website makes you very resistant to that sort of attack.

A Pi-hole is a great natural combination with Unbound. A Pi-hole acts as a network-wide DNS “sinkhole.” When your devices ask to connect to a domain, the Pi-hole checks its blocklists. If the domain is known to run ads, trackers, or host malware, Pi-hole returns 0.0.0.0, which prevents you from ever connecting to the blocked domain in the first place.


A Raspberry Pi in a case lying on top of a Beelink Mini S12 Pro mini PC.


This Raspberry Pi project quickly became the cornerstone of my homelab

The hole shebang.

Because the filtering happens at the DNS layer, you don’t need to install software on every individual phone, smart TV, or IoT device in your house.

When used together with Unbound, you get two layers functioning in tandem. Everything on your network first communicates with the Pi-hole, which automatically blocks undesired domains. Once your traffic has been filtered by the Pi-hole, it gets forwarded to Unbound, which then links the domain name to the IP address for you and you connect.

There is no third-party required, and you can block a reasonable amount of malware before it ever has a chance to infect any devices. For a small one-time hardware cost and a miniscule amount of electricity, you have full control over your network. Once the local cache gets loaded, repeat lookups are almost instantaneous.

Setting up your Pi-hole and Unbound

One hour and a Raspberry Pi is all you need

To begin, flash Raspberry Pi OS Lite (64-bit) to a microSD card using the Raspberry Pi Imager and install it in your Raspberry Pi. Then, log into your router and assign the Raspberry Pi a static IP address—if it changes, everything will stop working.

With that set, SSH into the Raspberry Pi, install Pi-hole by running curl -sSL https://install.pi-hole.net | bashand then connect to the web dashboard to complete the setup. It is pretty hands-off—the installer is designed to be very user-friendly, and will walk you through the important parts.

After that is done, SSH in again and install Unbound using sudo apt install unbound. You need to make sure it is listening to the loopback address (127.0.0.1) on port 5335 and that DNSSEC is enabled. To do that, create the configuration file at “/etc/unbound/unbound.conf.d/pi-hole.conf” according to the Pi-hole instructions. It should look like this:

The Pi-hole Unbound configuration file open in Nano.

Now, you need to tell the two devices to actually talk to each other. Open up the Pi-hole dashboard and go to the settings, then set your upstream DNS to the custom entry 127.0.0.1#5335 and untick all other options, including Google’s 8.8.8.8. Leave Pi-hole’s DNSSEC disabled.

Finally, point your router’s DNS settings to the Pi’s IP address like you would normally for a Pi-hole.


There are a few tradeoffs

The Pi-hole and Unbound combination is great if you’re privacy minded, or if you’re a homelabber that can make use of the granular control. However, it does have a few drawbacks.

The first time you visit a fresh domain, the lookup will be slower than a public resolver because Unbound has to load everything once the first time. Subsequent visits are much faster, but that initial delay is something you’ll probably notice.

Additionally, remember that you are creating a single point of failure. If your Raspberry Pi gets thrown off a bookshelf by an inquisitive cat, your entire home network will lose internet access unless you have a backup resolver configured or until you fix the problem.



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


Plex’s Remote Watch Pass is getting a 50% price hike starting June 1, 2026. Plex introduced the Remote Watch Pass in April 2025 as a cheaper alternative to the Plex Pass. Remote Watch Pass allows users to remotely stream from any Plex Media Server that a user has access to.

Remote Watch Pass essentially gives a user access to remote streaming, but that’s about it. It’s ideal for those who only want to use Plex as a viewer who is accessing someone else’s Plex Media Server. Core features and benefits of a Plex Server are locked behind the Plex Pass subscription instead.

Currently, Remote Watch Pass is available for $1.99 per month, and its annual plan is for $19.99. This has been the introductory price since the April launch last year. It’s now getting a price bump, and it’s a considerable increase.

A Reddit user received the price increase information via email and shared it with other users. The email said, “We hope you’re enjoying your Remote Watch Pass and the ability to stream personal media wherever you go. We wanted to let you know that your Remote Watch Pass introductory pricing is ending on June 1st, 2026. Beginning on June 1st, 2026, renewals for your subscription will be at the normal subscription price.”


A phone with the Plex logo and a laptop beside it with the Plex home screen.


Plex Pass Lifetime Memberships Double in Price Next Month, so Sign Up Now

Plex Pass will experience a major price hike on April 29th. Grab a lifetime membership today to avoid the price hike.

Plex Remote Watch Pass will increase from $1.99/month to $2.99/month, and its annual plan will increase from $19.99 to $29.99/year. Given that users have enjoyed the introductory price for over a year, the price increase was expected to come at some point.

Users who own a server and have a Plex Pass can share their benefits and let other users stream from their server for free. That’s another reason why Plex Pass continues to be the popular choice for Plex users. You can also get a Plex Pass lifetime subscription, but there’s no such option for Remote Watch Pass yet.

Sharing thoughts in the same Reddit post, there’s a majority of Plex users who feel that the Plex Pass lifetime pass, which is available for $249.99, is an increasingly attractive option. “Best thing I ever did was buy the lifetime pass,” shared one user.

However, for those who only want the Plex experience as a viewer on someone else’s server, the Remote Watch Pass is the cheaper option when compared to the standard pricing of a Plex Pass subscription, which is available for $6.99 per month, or $69.99 for a year.

Source: Reddit

Compatibility

Windows, Linux, macOS, Android, iOS, and various other devices

Free Trial Period

Free account available




Source link