How-to Security

Protective DNS on your router: what each resolver blocks and where to set it

One DNS change on the router puts malware and phishing blocking in front of every device. What each protective resolver blocks, where to set it and what it can't stop.

  • 37 sources cited
  • Checked
  • AI fact-checked, no human editor
  • Not tested hands-on
How we researched this
Based on
  • DNS providers' own setup, filter and privacy pages (Quad9, Cloudflare, Cisco OpenDNS, CleanBrowsing, AdGuard DNS, NextDNS, Control D, DNS4EU, Google Public DNS)
  • Router and mesh makers' support pages (NETGEAR, TP-Link, ASUS, eero, Google Nest Wifi, Linksys, Ubiquiti UniFi, GL.iNet, Firewalla)
  • Internet provider support pages (Xfinity, Verizon, Spectrum, T-Mobile)
Sources checked
, 37 documents listed under Sources.
Testing
RouterHaus didn't test this hands-on.
Review
Its claims were checked against the sources listed below by an AI fact-checker working separately from the writer, on . No named human editor has reviewed it.
Independence
No manufacturer can buy a recommendation. Sponsored blocks, if any, are labelled and kept apart from our own content. Independence policy

The steps in brief

  • Set it once, on the router. Cloudflare says putting its resolver on your router "applies the DNS setting to every device on your network," and Quad9 says doing so extends protection to everything on it, "including IoT devices, many of which otherwise would not have any anti-malware defenses."
  • Pick a filtering address, not just a fast one. 1.1.1.1 and 8.8.8.8 don't filter. Cloudflare's 1.1.1.2, Quad9's 9.9.9.9 and the security filters from CleanBrowsing, AdGuard, Control D and DNS4EU block domains their operators list as malicious; several also offer a family version that blocks adult sites.
  • Use every address of one service. Enter both IPv4 addresses and the IPv6 pair from the same provider. Mixing a filtering primary with a non-filtering secondary means some lookups skip the filter.
  • It's a first line, not the whole defense. It only blocks domains already on a list, and a device or app using its own encrypted DNS or a VPN can go around it. Keep firmware updates, a strong admin password and remote management off as well.
  • Some provider gateways don't let you change it. T-Mobile says DNS on its gateway "is fixed." Then set DNS on each device, or put your own router behind the gateway.
Illustration: a router sending every device's lookups to a protective DNS resolver, which blocks a known malicious site and lets the rest through.
Illustration: RouterHaus

This guide is about choosing a protective resolver and putting it on the router. What DNS is, how speed works and the general privacy trade-offs are in our DNS servers guide, so they aren't repeated here. RouterHaus hasn't set these resolvers up on these routers hands-on; everything below comes from the providers' and makers' own pages, and RouterHaus doesn't rank one provider as best.

Why the router is the place for it, and what it can't do

Your router normally hands every device the DNS servers your internet provider gave it. eero, ASUS and UniFi all say that's their default. source 26 source 24 source 30 Change it there and phones, laptops, TVs, cameras and smart plugs all pick up the new resolver the next time they connect, with nothing to install on each one.

A protective resolver answers lookups for domains on its block list with a dead end instead of the real address. Cloudflare says that when "a queried domain is classified as malicious, Cloudflare returns the address 0.0.0.0 instead of the real address." source 3 Quad9 says it blocks lookups "of malicious host names from an up-to-the-minute list of threats." source 2 That's useful against phishing links, malware that calls home by name, and scam sites, and it costs little to turn on.

Know its limits before you rely on it:

  • It only blocks what's on the list. A brand-new or uncategorized domain resolves normally until the provider adds it. Cloudflare asks people to report miscategorized domains, which tells you lists are maintained, not perfect. source 3
  • Devices can go around it. eero sells filtering that intercepts every DNS request precisely "so users can't bypass eero Plus by changing DNS servers on their devices"; ordinary router DNS doesn't do that. source 26 GL.iNet's override option covers "unencrypted DNS settings for all clients," so a device or browser using its own encrypted DNS still goes its own way. source 29 CleanBrowsing says its adult filter "does not block proxy or VPNs." source 9
  • It doesn't stop attacks that don't need a lookup. An exposed admin page, an unpatched router or a weak Wi-Fi password are separate problems. Our firewall settings checklist and router security settings by brand cover those.
  • Encryption doesn't hide lookups from the resolver. Firewalla puts it plainly: encrypted DNS "will only hide your queries from ISPs, not DoH providers." source 31 Read the privacy column below with that in mind.

Protective resolvers compared

Each row is from that provider's own pages, read on December 3, 2026. "Free tier" and "paid plans" are as each provider describes them; RouterHaus doesn't list prices. Rows are in alphabetical order, not a ranking.

ServiceAddresses (IPv4; IPv6)What it blocksFree or paidEncrypted DNSLogging and privacy, as statedAccount
AdGuard DNS Default94.140.14.14, 94.140.15.15; 2a10:50c0::ad1:ff, 2a10:50c0::ad2:ff source 10"ads, tracking, and phishing"; its privacy policy adds malware domains. Family Protection (94.140.14.15, 94.140.15.16) adds adult sites and Safe Search source 10 source 12Free public servers; a separate private service with its own plans source 11DoH, DoT and DoQ source 10"We do not process any of your Personal Data" on public servers; keeps an anonymous list of domains from the last 24 hours source 12Not for public servers; required for private source 12
CleanBrowsing Security Filter185.228.168.9, 185.228.169.9; 2a0d:2a00:1::2, 2a0d:2a00:2::2 source 9 source 36Phishing, spam, malware and malicious domains; "does not block adult content." Adult and Family filters add adult sites; Family also blocks proxy and VPN domains source 9Free and paid plans. The filters page lists the free service as throttled with no support; the setup guide says "No query limits" source 9 source 36DoH and DoT source 9"CleanBrowsing does not log or sell your DNS queries" (free filters) source 36Free: no; paid: yes source 9
Cloudflare 1.1.1.11.1.1.1, 1.0.0.1; 2606:4700:4700::1111, 2606:4700:4700::1001 source 6Nothing: Cloudflare "does not block or filter any content" here source 4No plan or sign-up in its setup steps source 6Yes; Cloudflare's router page notes DoT on FRITZ!Box and OpenWrt source 6Deletes resolver logs within 25 hours; won't sell data or use it for ads; audited source 4No
Cloudflare 1.1.1.2 (Families, malware)1.1.1.2, 1.0.0.2; 2606:4700:4700::1112, 2606:4700:4700::1002 source 3Domains associated with malware and phishing source 3As aboveDoH and DoT at security.cloudflare-dns.com source 3"the same privacy commitments as the standard 1.1.1.1 resolver" source 3No
Cloudflare 1.1.1.3 (Families, malware and adult)1.1.1.3, 1.0.0.3; 2606:4700:4700::1113, 2606:4700:4700::1003 source 3Malware, phishing and adult content source 3As aboveDoH and DoT at family.cloudflare-dns.com source 3As above source 3No
Control D free (Malware preset)76.76.2.1, 76.76.10.1; 2606:1a40::1, 2606:1a40:1::1 source 37"known dangerous sites." The Family Friendly preset adds ads, trackers, adult content and drug sites source 15Free presets; paid plans for more filters source 15DoH, DoT and DoQ source 37"We don't log or store your DNS queries" source 15Not for the free resolvers source 37
DNS4EU Protective86.54.11.1, 86.54.11.201; 2a13:1001::86:54:11:1, 2a13:1001::86:54:11:201 source 16Malware, phishing and command-and-control domains; variants add child protection or ad blocking source 16Free, for individuals in Europe only; not suited to organisations source 16DoH and DoT source 16Your IP address is "fully anonymised before being logged" source 16No source 16
Google Public DNS (baseline)8.8.8.8, 8.8.4.4; 2001:4860:4860::8888, 2001:4860:4860::8844 source 17Not a filtering service; Google blocks names only under court or government orders in listed places source 18No plan in its docsDoT and DoH source 17Temporary logs deleted within 24 to 48 hours; not used to target ads source 19No
NextDNSNo public address listed on the pages we read; settings belong to your own configuration source 13Malware, phishing, cryptojacking, newly registered and typosquatting domains, ads, trackers; parental controls source 13Free tier with a monthly allowance; paid plans. Over the free allowance it keeps answering "like a classic non-blocking DNS service" source 14DoH and DoT source 13You choose log retention, "from one hour up to two years," or turn logging off source 13"No signup required. Sign up later to save your settings" source 13
OpenDNS FamilyShield (Cisco)208.67.222.123, 208.67.220.123; IPv6 not listed on the pages we read source 8"Preconfigured to block adult content" source 7Free source 7Not listed on the pages we readNot covered on the pages we readNo source 7
OpenDNS Home (Cisco)208.67.222.222, 208.67.220.220 source 7"customizable filtering and basic protection" source 7Free source 7Not listed on the pages we readNot covered on the pages we readYes, sign-up source 7
Quad9 (the service Quad9 labels "Recommended")9.9.9.9, 149.112.112.112; 2620:fe::fe, 2620:fe::9 source 1Malicious host names: "malware, phishing, spyware, and botnets." 9.9.9.11 adds ECS; 9.9.9.10 doesn't block, "for experts only" source 1 source 2Free, run by a not-for-profit foundation in Switzerland source 2DoH and DoT at dns.quad9.net source 1"no data containing your IP address is ever logged" in normal use source 2No source 2

Pick by need

Start from what you want blocked and how much you want to manage, then use the matching row above.

If you wantOptions from the tableWhat to check
Security blocking, nothing to manageAdGuard Default, CleanBrowsing Security, Cloudflare 1.1.1.2, Control D Malware preset, DNS4EU Protective (Europe), Quad9 9.9.9.9Whether it also blocks ads (AdGuard Default does), if you'd rather it didn't
Family filtering for the whole houseAdGuard Family, CleanBrowsing Family or Adult, Cloudflare 1.1.1.3, Control D Family Friendly, DNS4EU child protection, OpenDNS FamilyShieldWhether it blocks VPN and proxy domains, which kids use to get around a filter (CleanBrowsing Family says it does)
A written logging policy you can checkCompare the logging column: every row except OpenDNS states a policy on the pages we readRead the provider's full policy; encryption hides lookups from your internet provider, not from the resolver
Per-device rules, allow lists and logs you can readNextDNS, OpenDNS Home, Control D paid plans, AdGuard private, CleanBrowsing paid plansFree-tier limits (NextDNS stops filtering past its allowance) and whether you want a log kept at all
No filtering, as a baselineCloudflare 1.1.1.1, Google 8.8.8.8, Quad9 9.9.9.10These won't block anything; use them to compare speed or rule out the filter when a site won't load
Don't mix providers in the primary and secondary boxes. Devices may use either server, so a filtering primary with a non-filtering secondary filters only some of the time. TP-Link's own example pairs 8.8.8.8 with 1.1.1.1 source 21; for protection, use both addresses of one filtering service instead. Quad9 asks you to enter all of its addresses, including IPv6 "even if you do not yet have IPv6," so one failure doesn't leave you without it. source 1 Write down your current DNS settings first so you can go back, as Cloudflare and Google both advise. source 6 source 17

Where to set it, by router brand

Cloudflare notes the setting hides under different names: "WAN and IPv6 (Asus routers), IP (MikroTik routers), or Internet (Netgear routers)." source 6 If you can't reach your router's settings at all, start with our router login guide.

BrandWhere the maker says to set DNSWhat to know
NETGEARrouterlogin.net, then Internet; under Domain Name Server (DNS) Address choose Use these DNS Servers, enter primary and secondary, Apply source 20The page shows two boxes; it doesn't describe IPv6 DNS source 20
TP-Link routertplinkwifi.net, Advanced, Network, Internet, then Use the following DNS addresses. DSL modem routers: Advanced, Network, LAN Settings source 21TP-Link says a reboot is needed after saving source 21
TP-Link DecoDeco app, More, Internet Connection, Internet Settings, DNS Address, Manual. If your model can't change WAN DNS, use More, Advanced, DHCP Server source 23Only from the owner account, on the Deco's Wi-Fi, in Router mode; no reboot needed source 23
ASUSNewer firmware: WAN, Internet Connection, WAN DNS Setting, DNS server, then Assign. Older firmware: set Connect to DNS server automatically to No source 24Expect a brief internet drop; check the result under Network Map, Internet Status source 24
eeroeero app, Settings, Advanced networking, DNS, Custom DNS; IPv4 and IPv6 fields source 26Reboots the network. eero Plus filtering must be off first (Advanced Security, Ad Blocking, Content Filters), because it filters DNS itself source 26
Google Nest Wifi, Google WifiGoogle Home app, Home, Wifi, Network settings, Advanced Networking, DNS; pick a public server or enter custom primary and secondary source 27Google says Nest Wifi and Google Wifi "operate as a DNS proxy" source 27
Linksys Velop and meshLinksys app, menu, Advanced Settings, Local Network Settings, DNS Settings, Manual source 28Setting DNS manually turns off Linksys Safe Browsing, an OpenDNS feature: "You can only use one set of DNS servers" source 28
Ubiquiti UniFiUniFi Network, Settings, Internet, DNS Server; or per network under Networks, DHCP Service Management, DNS Server source 30The resolver must answer ui.com domains for updates and remote management; per-network changes apply as DHCP leases renew, "usually after 24 hours" source 30
GL.iNetAdmin panel, NETWORK, DNS: Automatic, Encrypted DNS, Manual DNS or DNS Proxy source 29Turn on Override DNS Settings for All Clients to replace devices' unencrypted DNS settings; firmware v4.10 and earlier source 29
FirewallaServices, DNS over HTTPS; choose devices and servers, or Add Server for Cloudflare's filtering versions source 31Devices use the DoH server even if they have their own DNS set; not compatible with Family Protect in third-party mode; DNS Booster must be on source 31
SynologyNot covered on the pages we readCheck Synology's SRM help for your model

Provider gateways: when you can't change it

Many internet providers' combined modem-routers either hide DNS or lock it. Here's what each provider's own page says.

  • T-Mobile Home Internet. "The DNS server configuration on the gateway itself is fixed," and T-Mobile gateways can't switch to bridge mode. T-Mobile says you can set DNS on connected devices, or connect your own router to the gateway's Ethernet port; you'll then see two Wi-Fi networks unless you turn the gateway's off in the T-Life app. source 35
  • Spectrum. My Spectrum app, Services, Your WiFi Network, Advanced Settings, where Spectrum lists "DNS, UPnP, Port Forwarding" among the settings. source 34
  • Verizon 5G Home (LVSKIHP gateway). Admin page, System Settings, LAN settings, DNS Server set to Manual. Verizon warns that advanced changes "may be harmful to the stability, performance and security" of the gateway. source 33 We didn't find a Verizon page on DNS for Fios routers.
  • Xfinity. The pages we read don't describe changing DNS on the gateway. To use your own router, Xfinity says to turn on Bridge Mode, which turns off the gateway's routing; you lose network controls in the Xfinity app and Xfinity CyberSecure. source 32
  • AT&T. We didn't find an AT&T page on changing gateway DNS. Use one of the two fallbacks below.

The fallbacks are the same for any locked gateway: set the protective resolver on each device, or put your own router behind the gateway and set it there. Our DNS guide covers where else DNS can be set. If the gateway won't let your router take over cleanly, compare options in our gateway rankings.

Encrypted DNS on the router

Plain DNS travels unencrypted between your router and the resolver. Some routers can encrypt that leg with DNS over TLS (DoT) or DNS over HTTPS (DoH). What it changes is explained in our encrypted DNS section; here's where makers document it.

  • ASUS. Firmware later than 3.0.0.4.386.4xxxx: WAN, Internet Connection, DNS Privacy Protocol, DNS over TLS (DoT). Strict mode, the default, only uses a server whose identity checks out; Opportunistic mode uses it even if that check fails. source 25
  • TP-Link Deco. Deco app, More, Advanced, DoH&DoT. Default Mode falls back to your regular DNS if the encrypted servers are unavailable; Secure Mode doesn't, so devices lose internet instead. source 22 Features vary by model.
  • GL.iNet. Encrypted DNS mode with DoT and DoH for providers including Quad9, CleanBrowsing, AdGuard DNS, Cloudflare, Control D and NextDNS; DoQ for Control D, NextDNS and AdGuard DNS. source 29
  • Firewalla. DNS over HTTPS under Services, per device. source 31

The choice between a fallback and a hard fail matters. A fallback keeps the internet up but can quietly drop the filter; a hard fail keeps the filter but takes the internet down with the resolver.

Check that it's working

  1. Confirm which resolver you're on. For Cloudflare, go to 1.1.1.1/help, which "runs a series of tests and shows whether your connection to 1.1.1.1 is working." source 5 For OpenDNS, its setup guide links a test page at welcome.opendns.com. source 8 ASUS shows the DNS server in use under Network Map, Internet Status. source 24
  2. Confirm blocking. Cloudflare's malware.testcategory.com "tests whether known malware domains are blocked." source 3 Quad9's home page lets you check whether a domain is on its block list, and Control D has a link checker for its filters. source 2 source 15
  3. Test on more than one device, including a phone on Wi-Fi with private DNS turned off, so you know the router setting, not the device, is doing the work.
  4. Check that browsing still feels normal. A resolver that's slow from your location makes every new page wait.

If sites stop loading entirely after the change, set DNS back to automatic and work through our DNS server not responding guide. If you suspect something already got in, see how to tell if your router was hacked.

When new equipment is justified

Every router maker whose pages we read documents a DNS setting. If yours has none, can't take IPv6 DNS, or no longer gets firmware updates (see router end-of-life support), it's missing more than DNS. Compare current models in our router rankings, and put your own router behind a locked provider gateway rather than living with it.

When to get professional help

A home can do this in a few minutes. A small office with its own DNS server, VPN users or several networks needs a plan so filtering doesn't break internal names or sign-ins; UniFi, for example, cautions that custom internal DNS may fail to resolve its own ui.com services. source 30 When the job needs hands on site, RouterHaus can connect you with a contractor, licensed where local rules require it, through a consultation request.

Frequently asked questions

What is the best DNS for security?

RouterHaus doesn't rank one as best. Quad9 9.9.9.9, Cloudflare 1.1.1.2, CleanBrowsing Security, AdGuard DNS, Control D and DNS4EU (for individuals in Europe) all say they block malware or phishing domains. Pick by what else you want, such as family filtering, a log you can read, or a particular privacy policy.

Is 1.1.1.1 the same as 1.1.1.2?

No. Cloudflare says 1.1.1.1 does not block or filter anything. 1.1.1.2 blocks domains associated with malware and phishing, and 1.1.1.3 also blocks adult content. Cloudflare says both follow the same privacy commitments as 1.1.1.1.

Should I set DNS on the router or on each device?

On the router when you can, because every device that connects picks it up, including smart TVs and cameras you can't configure. Set it on devices only when the gateway locks DNS, as T-Mobile says its gateways do, or for a device that leaves home.

Can I use one provider as primary and another as secondary?

You can, but if one filters and the other doesn't, devices that use the secondary skip the filter. Use both addresses of the same filtering service, plus its IPv6 addresses.

Will protective DNS slow my internet down?

It only affects the lookup before a connection starts, not download speed. Run Network Health before and after the change; if lookups got slower, try another address from the same provider or another resolver.

Does protective DNS replace antivirus or router updates?

No. It blocks known-bad domains when devices use it. Devices with their own encrypted DNS or a VPN can go around it, and it does nothing for an unpatched router or an exposed admin page.

Sources

Read on December 3, 2026. Pages without a date are marked undated.

  1. Quad9: Service Addresses & Features (undated)
  2. Quad9: home page (undated)
  3. Cloudflare: Set up 1.1.1.1 (May 6, 2026)
  4. Cloudflare: 1.1.1.1 Public DNS Resolver privacy (March 27, 2024)
  5. Cloudflare: Verify connection (April 30, 2026)
  6. Cloudflare: Router setup (May 1, 2026)
  7. Cisco OpenDNS: Home Internet Security (undated)
  8. Cisco OpenDNS: FamilyShield setup guide (undated)
  9. CleanBrowsing: Free DNS filters (undated)
  10. AdGuard DNS: Known DNS providers (undated)
  11. AdGuard DNS: Public DNS (undated)
  12. AdGuard DNS: Privacy policy (August 6, 2024)
  13. NextDNS: home page (undated)
  14. NextDNS: Pricing (undated)
  15. Control D: Free DNS (undated)
  16. DNS4EU: Public service (undated)
  17. Google Public DNS: Get started (September 3, 2024)
  18. Google Public DNS: Blocking behavior (December 2, 2025)
  19. Google Public DNS: Your privacy (September 3, 2024)
  20. NETGEAR: How do I set static DNS servers on my NETGEAR router? (July 7, 2025)
  21. TP-Link: FAQ 1712, changing DNS on a TP-Link router (April 17, 2026)
  22. TP-Link: FAQ 4254, DoH and DoT on Deco (October 17, 2024)
  23. TP-Link: FAQ 1855, changing DNS on Deco (May 26, 2026)
  24. ASUS: FAQ 1045253, DNS server settings on an ASUS router (July 22, 2024)
  25. ASUS: FAQ 1051428, DNS over TLS on an ASUS router (July 22, 2024)
  26. eero: How do I set up custom DNS servers with eero? (undated)
  27. Google: Change your DNS server (Nest Wifi and Google Wifi) (undated)
  28. Linksys: Configuring the DNS settings of your Linksys mesh system (undated)
  29. GL.iNet: DNS, Router Docs 4 (November 30, 2026)
  30. Ubiquiti: UniFi DNS Troubleshooting Guide (undated)
  31. Firewalla: DNS over HTTPS (DoH) (undated; updated in November 2026, per the page)
  32. Xfinity: Use Bridge Mode on your wireless gateway (undated)
  33. Verizon: 5G Internet Gateway (LVSKIHP), configure LAN settings (undated)
  34. Spectrum: Managing advanced settings with the My Spectrum app (undated)
  35. T-Mobile: Home Internet, connect your devices (undated)
  36. CleanBrowsing: How to set up CleanBrowsing's free DNS filters (undated)
  37. Control D: Free DNS resolvers (August 17, 2026)

Your privacy choices

RouterHaus uses Google Analytics to understand which pages help people. We don't sell personal information. Advertising cookies are off.

Until you save a choice here, analytics cookies are off for visitors in the EEA, UK and Switzerland and in browsers that send Global Privacy Control; elsewhere they're on. When they're off, Google may still receive cookieless pings without identifiers. A choice you save here applies in this browser wherever you are, and your analytics choice applies even if the browser sends Global Privacy Control.

Details are in our privacy policy.