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?
| Aspect | AdGuard Home | Pi-hole |
|---|---|---|
| Encrypted DNS serving | Built-in DNS over HTTPS, TLS and QUIC | Typically added with other software |
| Interface | Web UI with per-client settings | Web UI, very popular community |
| Blocklists | Adblock-style and hosts lists | Hosts-style lists and regex |
| Upstream | Encrypted upstreams supported | Often 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
| Use | Suggested plan |
|---|---|
| Office or remote team, filter plus VPN | 2 vCores / 8 GB |
| Larger organisation with redundancy and other services | Two 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
- Install AdGuard Home or Pi-hole on a VPS, from the official installer or container image.
- Bind the DNS listener to the VPN interface or configure encrypted DNS with client identifiers; block port 53 from the internet.
- Set upstream resolvers: a local Unbound, or trusted encrypted upstreams.
- Add blocklists and an allow-list, and create client groups.
- Point devices at the filter through your VPN's DNS settings or device configuration profiles.
- 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.
SkyRainCloud 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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.
Frequently Asked Questions
What is DNS filtering?
Should I use AdGuard Home or Pi-hole?
Can I expose my DNS filter to the internet?
How do remote devices use the filter?
Which blocklists should I use?
Does DNS filtering stop all threats?
Is query logging a privacy concern?
What if the filter goes down?
Can browsers bypass DNS filtering?
Which plan suits DNS filtering?
Related Guides
- VPS Hosting for Private DNS Infrastructure
- VPS Hosting for Tailscale Exit Nodes
- VPS Hosting for Zero Trust Infrastructure
- VPS Hosting for OpenVPN Servers
- How to Set Up a UFW Firewall on a Linux VPS
- Cheap DDoS Protected VPS India (2026) from ₹649/mo
- VPS Hosting Pune — KVM VPS India
- VPS Server Setup — Step by Step Guide