POWER-USER
Some of the links in this guide pay us a small commission if you sign up. We only recommend tools we use and trust. It never costs you extra, and it helps keep the lights on at Making Sense Of Security.
Most malware needs DNS to function. The malicious link in a phishing email, the C2 server an info-stealer phones home to, the tracking pixel embedded in an ad — every one of them starts with a DNS lookup. Block the lookup, and the threat dies before it makes a single connection.
DNS filtering is the single highest-leverage network-level defense an individual or small business can deploy. It works for every device on the network — phones, smart TVs, IoT, laptops — without installing software anywhere. No agent. No update cycle. Set it once and forget it.
By the end of this guide you’ll have a filtering DNS configured at the router level, every device on your network protected, and an audit dashboard showing exactly what’s being blocked.
By the end of this guide your accounts and devices will be safer.
Pick a filtering DNS provider, configure at the router, set up dashboards, test that it works.
Quick Snapshot
| What you’ll learn | Pick a filtering DNS provider, configure at the router, set up dashboards, test that it works. |
| Skill level | Intermediate · Router admin access required |
| Time required | 30 minutes |
| What you’ll need | Router admin login, a DNS filtering account (free options available) |
| Risk if you skip this | Every device must defend itself individually against malware/phishing domains |
| PDF kit | ✅ Download at the bottom of this page |
Why This Matters
DNS sits at the start of nearly every network operation. By filtering at the DNS layer, you block threats before they can transfer any payload — much more efficient than detecting compromise after the fact.
Endpoint protection (Defender, etc.) works at the device level. DNS filtering works at the network level. They complement each other: endpoints catch what gets through; DNS stops most threats from ever reaching the endpoint.
Modern providers (NextDNS, Pi-hole, Cloudflare for Families, ControlD) maintain large block lists for known-malicious domains, phishing kits, ad networks, and trackers. Updates happen automatically — your protection improves daily.
Before You Start
Decide on a provider. NextDNS (free tier 300k/month queries, paid ~$2/mo unlimited) — most full-featured. Cloudflare for Families (free, simple) — best for set-and-forget. Pi-hole (free, self-hosted) — full control but requires a Raspberry Pi.
Have router admin access. You’ll change DNS settings either at the router (preferred — applies to every device) or per-device (works but tedious).
Decide on filtering aggressiveness. Malware-only is invisible to users. Ads + trackers may break a few sites until you whitelist them. Family-safe adds adult-content filtering.
Step 1 — Pick A Provider + Create An Account
NextDNS: nextdns.io → Try It Now. Creates a config with a unique ID. The ID becomes part of your DNS endpoint URL.
Cloudflare for Families: simpler — just use these DNS IPs. Malware-only: 1.1.1.2 and 1.0.0.2. Malware + adult: 1.1.1.3 and 1.0.0.3.
Step 2 — Choose Your Blocklists
NextDNS: Settings → Security → toggle malware blocking, phishing, cryptojacking, threat intelligence feeds. Settings → Privacy → toggle the major ad/tracker lists.
Add curated lists by category: NextDNS lets you mix and match dozens. Start conservative; you can always add more after a few days of normal use.
Step 3 — Configure Your Router
Log into your router admin (typically 192.168.1.1 or 192.168.0.1). Find WAN / Internet / DHCP settings. Look for DNS Server fields. Replace with your provider’s DNS IPs.
For Cloudflare for Families: Primary 1.1.1.2, Secondary 1.0.0.2. For NextDNS: use the IPs shown in your config dashboard. Save and reboot the router.
Step 4 — Verify It’s Working
From any device on the network, visit https://test.nextdns.io (works for any provider — shows your active DNS). Should show the filtering provider, not your ISP’s DNS.
Test a known-blocked domain: visit https://internetbadguys.com — should fail to load or show a block page. If it loads, your DNS isn’t being filtered.
Step 5 — Set Up DNS-Over-HTTPS (DoH) On Devices
DNS at the router protects your network but a device on cellular bypasses it. Configure DoH per device for protection everywhere.
iOS: Settings → General → VPN & Device Management → Add NextDNS config profile. Android: Private DNS → set to nextdns.io URL. Windows 11: Settings → Network & Internet → Wi-Fi → Hardware properties → DNS server assignment → Manual → enable Encrypted DNS.
Step 6 — Monitor The Dashboard
NextDNS dashboard shows real-time query log: what was looked up, what was blocked, by which device. Worth checking weekly initially.
Set up alerts for high-volume blocks from a single device — could indicate an infected device making repeated callouts.
Step 7 — Whitelist As Needed
A few sites may break because they depend on tracker domains. NextDNS: Allowlist → add the broken domain. Cloudflare: less granular but errs on permissive.
Watch for one week; whitelist anything legitimate that breaks. After that, false positives are rare.
Step 8 — Set Up Secondary Protection (Recommended)
DNS filtering blocks domains. It doesn’t catch infected files via direct IP, USB, or other vectors. Keep endpoint protection (Defender / Sophos / etc.) running alongside.
The combination is strong: DNS catches the network-side, endpoint catches what slips through.
If you stop here, you have already done more for your security than 95% of people. If you want to go further, the next section is for you.
PRO TIP
DNS Filtering Is The Free Upgrade Everyone Should Run.
No software to install per device.
Works for IoT and TVs that can’t run endpoint protection.
Catches phishing before the page loads.
Combine with endpoint AV for layered defense.
If You Want To Go Further: Power-User Upgrades
Power-User Upgrade #1 — Self-Host Pi-Hole
Raspberry Pi running Pi-hole gives you full control of blocklists. Combine with Unbound recursive resolver for zero third-party DNS dependency.
Trade-off: Pi hardware + setup time.
Power-User Upgrade #2 — Set Up Per-Device Profiles In NextDNS
Different filtering for kids’ devices vs adult devices vs IoT.
Trade-off: NextDNS Pro tier.
Power-User Upgrade #3 — Block By Category (Gambling, Adult, Social Media)
Useful for kids’ devices or focus-mode adult use.
Trade-off: occasional whitelisting.
Power-User Upgrade #4 — Enable AI-Based Threat Detection (NextDNS)
NextDNS uses ML on query patterns to flag new threats.
Trade-off: small false-positive rate.
Power-User Upgrade #5 — Set DNS-Over-HTTPS In Browsers Explicitly
Force browsers to use DoH to your filtering provider, bypassing system DNS leaks.
Trade-off: per-browser setting.
Power-User Upgrade #6 — Block DoH Bypasses
Some apps (Chrome’s built-in DoH) bypass your filtering DNS. Block standard DoH endpoints at the firewall except your chosen provider.
Trade-off: requires firewall config.
Common Mistakes & Pitfalls
Mistake — Setting filtering DNS only on one device.
Fix — Misses every other device on the network. Configure at the router.
Mistake — Skipping DoH on mobile.
Fix — Cellular bypasses your home filtering. Configure per device too.
Mistake — Whitelisting too aggressively.
Fix — Defeats the protection. Whitelist specific subdomains, not whole TLDs.
Mistake — Trusting ISP DNS.
Fix — ISPs do limited filtering, often log queries, sometimes inject ads.
Mistake — Skipping endpoint AV.
Fix — DNS doesn’t catch USB-delivered or local malware. Layer.
Mistake — Forgetting to enable DNSSEC where available.
Fix — Adds cryptographic verification to DNS responses.
Mistake — Not monitoring the dashboard.
Fix — You miss signs of an infected device.
Pro Tips
Pro tip 1. Use NextDNS’s Apple Configuration Profile — auto-installs on iPhone, iPad, Mac.
Pro tip 2. Test from multiple devices after setup — confirms router-wide filtering is working.
Pro tip 3. Enable Cache Boost / persistent cache for performance on slower upstream providers.
Pro tip 4. Use ‘Logs’ to spot weird subdomains your devices look up — often surfaces compromised IoT.
Pro tip 5. Combine NextDNS with a VPN provider (Mullvad, IVPN) for whole-stack privacy.
Frequently Asked Questions
Will This Slow Down My Internet?
Typically no — filtering DNS providers run globally distributed infrastructure. Often slightly faster than ISP DNS.
Does This Break Websites?
A small percentage, usually due to tracker dependencies. Whitelist as needed — fewer than 5% of users see any real-world breakage.
Can I See What My Kids Are Looking Up?
Yes — query log shows everything. Use ethical considerations and have a conversation about it. Filtering DNS isn’t surveillance, but it’s a powerful tool.
Should I Use NextDNS Over Pi-Hole?
NextDNS for ease + features. Pi-hole for full control + no third party. Both excellent.
What About Smart TVs That Hardcode Their DNS?
Some do (Samsung especially). Block their hardcoded DNS at the firewall to force them through your filtering.
Is DNS Filtering Legal In My Country?
Yes everywhere. You’re choosing what DNS your network uses — that’s your right.
Does This Conflict With My VPN?
Many VPNs include filtering DNS. Mullvad and IVPN have excellent filtering options.
Quick Recap — Do These In Order
DO THIS RIGHT NOW
The 8-step recap.
1. Choose a provider: NextDNS / Cloudflare for Families / Pi-hole.
2. Enable malware + phishing blocklists.
3. Configure at the router for whole-network coverage.
4. Verify with test.nextdns.io and internetbadguys.com.
5. Set up DoH per mobile device for off-network protection.
6. Monitor dashboard weekly initially.
7. Whitelist legitimate sites that break.
8. Keep endpoint AV running alongside.
📄 Download the article kit
Print, share, save offline. Free with email signup: the 1-page Summary. Members get all four: Summary, Full How-To, Wallet Reference Card, and Companion Checklist.
Summary (1 page)Full How-ToReference CardCompanion Checklist
(Once MemberPress is installed, the Full How-To, Card, and Companion Checklist become members-only; non-members see only the Summary.)
Mini Glossary
DNS: Domain Name System — translates hostnames to IPs.
DoH: DNS over HTTPS — encrypted DNS queries.
DoT: DNS over TLS — alternative encrypted DNS protocol.
Pi-hole: Self-hosted DNS filtering on Raspberry Pi.
NextDNS: Cloud-hosted DNS filtering with rich features.
DNSSEC: Cryptographic authentication of DNS responses.
Stay In The Loop
Weekly: the 3 scams trending this week — 2-minute read. No spam.
We won't send you spam. Unsubscribe any time.

