OfferEarly Access 100: FAMILIE free for 90 days – only 100 places. Learn more →

XIBRO SHIELD
Language: EN
My account

WireGuard and Pi-hole Explained: DNS Protection Without a Classic VPN

XIBRO SHIELD 7 min readSviatoslav Lohvinov
WireGuard and Pi-hole explained: DNS protection without a classic VPN

WireGuard and Pi-hole explained in brief: Pi-hole is a filter that blocks known ad, tracking and phishing addresses before your device loads them. WireGuard is a lightweight tunnel that carries your address requests to this filter – and only those. Everything else runs directly, as usual. That is why it is not a classic VPN, which reroutes all of your traffic.

Why does every app ask for an address first?

Imagine the internet as a huge phone book. You type in a name like “example.com”, but your device needs a number to find the site. This phone book is called DNS (Domain Name System). Every website and every app asks it first: “Where do I find this address?” Only then does the actual request begin.

This also applies to everything you don’t want to see. A page often loads not only its own text but also content from third-party servers: ad banners, measurement scripts, trackers. These addresses also have to be looked up in the phone book first. This is exactly where a DNS filter steps in.

Good to knowA DNS filter only sees addresses of servers, so-called domains. It does not see the content of a page or your messages.

What does Pi-hole actually do?

Pi-hole is like a bouncer at the phone book. It has lists of known addresses for ads, tracking and phishing. If your device asks for an address on such a list, it gets no usable answer. The connection is never established. Pi-hole passes on all other requests as normal.

The advantage: The filter works at the source. You don’t need a browser extension, and it also works for apps you have no control over. The drawback: The lists are maintained by people. A brand-new address often appears on them only later.

What does WireGuard do – and why only for DNS requests?

WireGuard is a modern tunnel protocol. “Protocol” here simply means a fixed set of rules for how two devices exchange data. The “tunnel” is a protected connection path between your device and the filter. WireGuard is considered especially lightweight, which is why it is popular with tech fans.

Why do you need the tunnel? On a mobile network or in a café’s Wi-Fi, your phone normally asks the phone book of that particular network. If you want your own filter everywhere, the requests have to reach it. The tunnel takes care of that. Only the DNS requests go through the tunnel. Videos, photos, downloads and pages go straight to the internet, just as they do without protection.

WireGuard and Pi-hole explained: the path of a request

The simple diagram: Device → Tunnel → Filter → Internet

  1. Device: You open a page or an app. Your device asks for the address.
  2. Tunnel: WireGuard carries this question to the filter. Only the question, not the page itself.
  3. Filter: Pi-hole checks the address. If it is on a blocklist, no usable answer comes back. Otherwise the request is answered as normal.
  4. Internet: If the address is allowed, your device loads the page directly, without a detour through the tunnel.

The result in everyday use: You can block ads and trackers that come from known addresses, and known phishing domains are never even opened.

A small glossary

WireGuard and Pi-hole Explained: DNS Protection Without a Classic VPN
  • DNS: the phone book of the internet. It translates names into addresses.
  • Domain: the name of a site or a server, for example “example.com”.
  • Resolver: the service that answers the address question.
  • Pi-hole: free filter software that blocks requests for unwanted domains.
  • WireGuard: a lightweight tunnel protocol for secure connections.
  • Blocklist: a list of known ad, tracking or phishing domains.

How does this differ from a classic VPN?

A classic VPN (Virtual Private Network) sends all of your traffic through a third-party server. To the outside, you then usually appear with the IP address of that server, and so in a different country. A DNS protection shield doesn’t do that. Your IP address and your country stay as they are. So it does not hide your IP address.

These are two tools for two jobs. If you want to change your connection location, you need a classic VPN. If you want fewer ads, less tracking and fewer phishing sites in everyday use, a DNS filter serves you well. You can also combine the two.

Can I set up Pi-hole and WireGuard myself?

Yes, and for tech fans it is a nice project. Pi-hole runs, for example, on a small single-board computer at home. You can set up WireGuard on a server of your own or on a router that supports it. Then your phone is connected to the filter on the go as well.

WireGuard and Pi-hole Explained: DNS Protection Without a Classic VPN

But expect some effort: getting the hardware, installing the software, maintaining blocklists, applying updates and securing access from outside. With a router, the menu item for WireGuard is named a little differently depending on the model. The manufacturer’s instructions will help you. If you enjoy it, a do-it-yourself solution is a good choice. If you simply want fewer ads, it is a lot of work for an everyday problem.

Where do DNS filters stop?

The limitsA DNS filter is one layer of protection, not all-round protection. It only works for addresses that are already known to be problematic.

  • Ads in apps: A DNS filter cannot remove ads inside YouTube or in the Instagram feed. They come from the same servers as the content.
  • Messages: SMS, WhatsApp and emails are not checked. The filter only steps in when you open a link to an already known phishing domain. The message itself still arrives.
  • New threats: A completely new, still unknown site can slip through. Checking the sender and not entering data on questionable sites remains important.
  • Push notifications: Notifications from websites that you once allowed in the browser stay. You turn them off in the settings of your browser or phone.
  • Strict lists: They can occasionally interfere with a site or app. In that case you allow the domain as an exception.

What does XIBRO SHIELD do in this picture?

XIBRO SHIELD combines these building blocks into a ready-made service: a WireGuard tunnel for the DNS requests and Pi-hole as the filter. The DNS filtering runs on our servers in Germany. In the background we use a Cloudflare resolver with built-in protection against malicious and phishing sites. On top of that come our blocklists against ads, trackers and threats. We update them automatically twice a day – you don’t have to do anything. There is also extended filtering with additional lists, switched on by default for new subscriptions. It applies to your whole subscription, so to all of your devices.

A phone, tablet or laptop with its own WireGuard configuration is protected on any network as long as the connection is switched on. If you switch it off, nothing is filtered any more. Setup takes a few minutes and needs no technical knowledge. For transparency: servers in Germany, DNS logs without your IP address and with automatic deletion after 91 days. In your customer account you can see the DNS statistics of the last 24 hours, for all devices together or for each device individually. Your country and your IP address do not change in the process.

TipYou can try it out. Test it free for 7 days – without a customer account and without payment details. The trial runs on one device with all protection features and ends by itself after 7 days. Afterwards, switch off or delete the “XIBRO-Test” connection in the WireGuard app, otherwise the device will no longer open any pages.

Frequently asked questions

Is WireGuard with Pi-hole the same as a VPN?

No. A classic VPN routes all of your traffic through another server and often changes the visible IP address. With WireGuard and Pi-hole as DNS protection, only the address requests go through the tunnel. Your IP address and country stay the same.

Does a DNS filter slow down my internet?

Only small address requests go through the tunnel; the actual data runs directly. In everyday use you usually notice little. Some pages even load faster because ads and trackers are not loaded in the first place.

Does the filter protect me on the go, too?

Yes, if the device has its own WireGuard connection and it is switched on. Then the filter works on the mobile network and in other people’s Wi-Fi just as it does at home. If you switch the connection off, the filter is off on that device.

Does a DNS filter block ads on YouTube?

No. Ads inside YouTube come from the same servers as the video. A DNS filter cannot separate them. It does block many ad and tracking addresses on websites and in apps, though.

Conclusion

Pi-hole filters, WireGuard carries the requests securely to the filter, and the rest of your traffic stays untouched. That is a DNS protection shield for everyday life, not a miracle cure. If you want to see how it feels, try it out: Test free for 7 days on xibro.de – without a customer account and without payment details.

Share this article
Picture of Sviatoslav Lohvinov
Sviatoslav Lohvinov
Founder of XIBRO SHIELD. Writes about child safety, home networks and DNS filters.
More in XIBRO SHIELD