NEWUse coupon code SMX20 to get 20% OFF your first billing cycle on any game server or VPS!Explore Store

TUTORIALS & GUIDES

VPS Hosting for DNS Filtering Applications

Run DNS filtering on a VPS with AdGuard Home or Pi-hole: blocking malware, phishing and ads, blocklists, encrypted DNS for remote devices, keeping it private, per-client rules, logging and privacy, redundancy and sizing.

DNS filtering is one of the most cost-effective security controls: a device cannot connect to a known phishing or malware domain if the name never resolves. It also reduces ads and trackers. Hosting the filter on a VPS rather than a home device extends protection to laptops and phones wherever they are, through a VPN or encrypted DNS. This guide covers a private, reliable deployment.

AdGuard Home or Pi-hole?

AspectAdGuard HomePi-hole
Encrypted DNS servingBuilt-in DNS over HTTPS, TLS and QUICTypically added with other software
InterfaceWeb UI with per-client settingsWeb UI, very popular community
BlocklistsAdblock-style and hosts listsHosts-style lists and regex
UpstreamEncrypted upstreams supportedOften paired with Unbound

Both work well. AdGuard Home is convenient for serving encrypted DNS directly; Pi-hole has a very large community and pairs naturally with a local Unbound resolver (see our private DNS guide).

Keep It Private

A DNS server reachable by anyone on the internet becomes an open resolver that attackers abuse for amplification attacks. Choose one of these access models:

  • Through a VPN or mesh network: devices use the filter's private address (see our Tailscale guide or OpenVPN guide).
  • Encrypted DNS with client identification: DNS over HTTPS or TLS with per-client identifiers, plus rate limits, and no plain port 53 exposed.
  • IP allow-listing: only for fixed office IPs.

Firewall port 53 from the internet in all cases (see our UFW guide).

Choosing Blocklists

  • Start with reputable security lists covering malware and phishing.
  • Add tracker and ad lists if appropriate for your users.
  • Avoid stacking dozens of overlapping lists; they increase false positives and maintenance.
  • Update lists automatically, daily or weekly.
  • Keep an allow-list for business domains that are wrongly blocked.

Per-Client Rules

Different users need different rules: developers may need domains blocked for others, shared devices may need stricter filtering. Both tools support client groups or per-client settings, identified by IP, VPN address or encrypted DNS client ID.

Logging and Privacy

Query logs show every domain each device visits, which is sensitive. Keep logging only as long as needed for troubleshooting and security, anonymise where possible, restrict who can view logs, and tell users that filtering is in place. Follow your organisation's policies and applicable privacy law.

Reliability

If the filter stops answering, devices lose internet access. Run two instances on separate servers, keep their configuration in sync, configure clients with both, and monitor availability. Back up configuration and allow-lists.

What DNS Filtering Cannot Do

DNS filtering does not inspect traffic contents, cannot stop connections made by IP address, and can be bypassed by devices that use their own DNS. Browsers with built-in DNS over HTTPS may ignore your filter unless configured through policy. Combine it with endpoint protection, updates and, for managed devices, policies that enforce your resolver.

Sizing

UseSuggested plan
Office or remote team, filter plus VPN2 vCores / 8 GB
Larger organisation with redundancy and other servicesTwo servers of 2–4 vCores / 8–16 GB

Example: Protecting a Remote Team

A 40-person company runs AdGuard Home on two small VPS servers reachable only over its mesh VPN. Malware and phishing lists apply to everyone, tracker lists to most groups, and developers have a lighter profile. Query logs are kept for seven days. Phishing links clicked in emails now fail to resolve, and the security team reviews blocked-domain trends weekly.

Common Mistakes

  • Exposing port 53 publicly and creating an open resolver.
  • Too many overlapping blocklists causing broken sites.
  • Keeping detailed query logs indefinitely.
  • A single filter instance with no fallback.
  • Assuming DNS filtering replaces endpoint security.

Next Steps

Choose AdGuard Home or Pi-hole, deploy it on a VPS reachable only through your VPN or authenticated encrypted DNS, add a few reputable lists, set a short log retention period and add a second instance.

In Short

Filter DNS on a private VPS reachable only by your devices, use reputable lists sparingly, respect privacy in logging, run two instances and combine filtering with other security controls.

Setup Outline

  1. Install AdGuard Home or Pi-hole on a VPS, from the official installer or container image.
  2. Bind the DNS listener to the VPN interface or configure encrypted DNS with client identifiers; block port 53 from the internet.
  3. Set upstream resolvers: a local Unbound, or trusted encrypted upstreams.
  4. Add blocklists and an allow-list, and create client groups.
  5. Point devices at the filter through your VPN's DNS settings or device configuration profiles.
  6. Test that blocked domains fail and normal browsing works, then roll out to everyone.

Using the Data Responsibly

Aggregated statistics, such as the top blocked domains and the number of malware lookups per week, are useful for security reviews and user training without inspecting individuals' browsing. Share trends, not personal histories, and investigate a specific device only when a security incident requires it. Security controls only help if they keep working, so schedule a short quarterly review: confirm who still has access, apply pending updates, test that backups restore and check that nothing you closed has quietly been reopened by a later change. Document each step as you go, including the reasons for every rule and exception, so colleagues can maintain the setup confidently and auditors or customers can see how access is controlled.

ServoMix Plans for This Workload

DNS filtering is light: 2 vCores / 8 GB serves an office or remote team and can run alongside a VPN on the same VPS.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
SMX vPro XS (AMD EPYC)28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹420/moWebsites, small APIs, bots, staging and VPN serversOrder
SMX vPro S (AMD EPYC)416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹560/moWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
SMX vPro M (AMD EPYC)832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹840/moProduction databases, high-traffic sites, multi-container appsOrder
SMX vPro L (AMD EPYC)1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹1,120/moLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
SMX vCore XS (Intel Xeon)28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹270/moBusiness websites, small apps, scheduled jobs and botsOrder
SMX vCore S (Intel Xeon)416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
SMX vCore M (Intel Xeon)832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
SMX vCore L (Intel Xeon)1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,248/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the ServoMix store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

What is DNS filtering?
Blocking requests to unwanted domains at the DNS resolver so devices cannot reach them.
Should I use AdGuard Home or Pi-hole?
Both work; AdGuard Home serves encrypted DNS directly, Pi-hole has a large community and pairs well with Unbound.
Can I expose my DNS filter to the internet?
Not as an open port 53 resolver; use a VPN or authenticated encrypted DNS instead.
How do remote devices use the filter?
Through a VPN or mesh network, or encrypted DNS with client identification.
Which blocklists should I use?
A few reputable malware and phishing lists, plus tracker lists if appropriate.
Does DNS filtering stop all threats?
No, it cannot block connections by IP or inspect content; combine it with other controls.
Is query logging a privacy concern?
Yes, keep logs briefly and restrict access.
What if the filter goes down?
Devices lose name resolution, so run two instances.
Can browsers bypass DNS filtering?
Browsers using their own DNS over HTTPS can, unless managed by policy.
Which plan suits DNS filtering?
2 vCores / 8 GB, ideally two servers for redundancy.

Frequently Asked Questions

What is DNS filtering?

Blocking requests to unwanted domains at the DNS resolver so devices cannot reach them.

Should I use AdGuard Home or Pi-hole?

Both work; AdGuard Home serves encrypted DNS directly, Pi-hole has a large community and pairs well with Unbound.

Can I expose my DNS filter to the internet?

Not as an open port 53 resolver; use a VPN or authenticated encrypted DNS instead.

How do remote devices use the filter?

Through a VPN or mesh network, or encrypted DNS with client identification.

Which blocklists should I use?

A few reputable malware and phishing lists, plus tracker lists if appropriate.

Does DNS filtering stop all threats?

No, it cannot block connections by IP or inspect content; combine it with other controls.

Is query logging a privacy concern?

Yes, keep logs briefly and restrict access.

What if the filter goes down?

Devices lose name resolution, so run two instances.

Can browsers bypass DNS filtering?

Browsers using their own DNS over HTTPS can, unless managed by policy.

Which plan suits DNS filtering?

2 vCores / 8 GB, ideally two servers for redundancy.

Was this article helpful?

Your feedback helps us continuously improve ServoMix guides.

Share this article

Know someone who may find this guide useful?

DNS Filtering on a VPS: AdGuard Home and Pi-hole Guide | ServoMix