DNS Filtering for Families and Offices
Choose and set up DNS filtering at home or work, understand what it can block, where it falls short and how to handle mistakes.
Key takeaways
- A filtering resolver decides by domain name, so it blocks entire sites rather than individual pages or messages.
- Router-level setup covers a whole network, while device-level setup follows a laptop or phone elsewhere.
- Encrypted DNS, VPNs and mobile data can bypass network filtering unless devices are managed.
- Tell the people affected what is filtered and logged, and give them a way to report mistakes.
DNS filtering blocks unwanted sites at the moment a device looks up their address. You point your router or devices at a resolver that refuses to give real answers for names on a block list, such as known malware hosts or adult sites. Setup takes minutes and covers most devices without installing software on them.
It's a useful first layer with clear limits. It works on whole hostnames, can't see inside pages and can be sidestepped by a device that uses a different resolver. Use it to cut accidents and known threats, and pair it with other safeguards.
How it works
Every time a device wants to visit a name, it asks a resolver for the address. A filtering resolver checks the name against its lists first. If it's blocked, the resolver returns something other than the real address. What happens during a DNS lookup shows the normal path.
The blocked reply takes one of several forms.
| Reply style | What the user sees | Note |
|---|---|---|
| NXDOMAIN | A "site not found" error | Clean, but looks like a typo |
Address 0.0.0.0 | A quick connection failure | Common with local blockers |
| Block page address | A page explaining the block | HTTPS sites show a certificate warning instead |
| REFUSED | A general lookup failure | Software may try another resolver |
The block page limitation is worth knowing. Because the filter doesn't hold a valid certificate for the blocked site, a browser can't show your friendly explanation on an HTTPS request without a warning, unless managed devices have been set up to trust the filter.
What it can and cannot do
It can block known malicious and phishing domains, categories such as adult or gambling sites, many advertising and tracking hosts and specific names you add yourself.
It cannot block one video or channel on a large platform while allowing the rest, read search terms, filter messages inside apps, stop content that arrives from an allowed domain or protect against a brand new malicious domain that isn't yet listed. It also can't see traffic that connects straight to an IP address without a lookup.
No category list is perfect. Expect some harmless sites blocked and some unwanted ones missed.
Your options
A public filtering resolver. Several operators offer free addresses with built-in filtering. Cloudflare, for example, offers 1.1.1.2 for malware blocking and 1.1.1.3 for malware plus adult content. Check the operator's own page for current addresses, secondary addresses, IPv6 addresses and privacy terms.
A configurable hosted service. You create an account, choose categories, add allow and block entries and view reports. Business versions add per-user policies and an agent for roaming laptops.
Your router or mesh system. Many include parental controls or a security subscription. Features and costs vary widely.
A local blocker. Software on a small computer at home answers DNS for the network, with lists you control. Pi-hole and network-wide blocking covers this route.
Device-level controls. Operating system family features filter on the device itself and add screen time and app limits that DNS can't provide.
Setting it up on a home network
- Write down your router's current DNS settings so you can restore them.
- Sign in to the router's admin page. Logging in to your router shows how.
- Find the DNS setting, often under internet, WAN or DHCP settings.
- Enter the filtering resolver's primary and secondary addresses. Both must filter, or devices may use the unfiltered one.
- Set IPv6 DNS as well if your connection uses IPv6. Otherwise lookups may go around the filter.
- Reconnect devices or restart them so they pick up the new setting.
- Test with a test domain the provider publishes, not by visiting a real harmful site.
Some provider-supplied routers don't allow DNS changes. You can change settings per device instead, or add your own router. How to change DNS servers covers each platform.
Setting it up in an office
Point your internal DNS server's forwarding at the filtering service, so internal names keep working and everything else is filtered. Have DHCP hand out only your resolvers. Block outbound DNS on port 53 from other devices at the firewall, so they can't quietly use another server.
Give laptops that leave the building an agent or a managed encrypted DNS setting. Create separate policies for guests, staff and sensitive systems if the service supports it. Name someone who handles requests to unblock a site, with a target response time, or people will find their own way around.
Choosing categories without overblocking
Start with the lists that have the clearest benefit: malware, phishing and, for households with young children, adult content. These rarely get in the way of normal use. Add other categories only when there's a specific reason.
Broad categories such as "social media", "streaming" or "forums" catch far more than people expect. A forum block can cut off hobby help and technical support pages. A video block may break training courses or homework. If your goal is limiting time rather than blocking content, a schedule on the router or the device's screen time tools does that job better.
Write your own short allow list for the services your household or business depends on, such as school portals, payment systems and software update servers. Then browse normally for a week and read the blocked entries. Adjust based on what you see.
Testing that the filter works
Check from several devices, since each may be configured differently.
# Windows: shows which DNS servers each adapter uses
Get-DnsClientServerAddress
Resolve-DnsName www.example.com # macOS or Linux: ask the filtering resolver directly
dig @1.1.1.2 www.example.com +short Then visit the provider's test page or test domain in a browser on each device. If the command line shows filtering but the browser doesn't, the browser is probably using its own secure DNS setting. If one device skips the filter entirely, look for manually entered DNS servers, a VPN or an IPv6 resolver you didn't change. Repeat the test after router firmware updates, which sometimes reset settings.
Roaming devices
A router filter stops at your front door. For a laptop or phone that travels, set the protection on the device. Options include a system-wide encrypted DNS hostname pointing to your filtering service, the service's own app or agent, or a VPN back to a network that filters.
Expect friction on hotel and airport Wi-Fi, where a sign-in page may not appear while strict encrypted DNS is on. Decide in advance whether users may switch protection off briefly, and how they turn it back on.
Bypasses to expect
- Encrypted DNS in browsers can send queries to a different resolver. Browser policies on managed devices control this, and some browsers respect network signals that ask them not to switch automatically. See DNS over HTTPS and DNS over TLS.
- VPNs and proxies move lookups elsewhere.
- Manually changed DNS settings on a device with administrator access.
- Mobile data, which skips your network entirely.
On your own managed devices, standard user accounts, management policies and clear expectations close most of these. With children, conversation matters at least as much as configuration. Determined teenagers learn fast, and a filter they understand and can appeal tends to cause fewer fights than a secret one.
Privacy and consent
A filtering resolver sees the names every device looks up, and many services show them in a dashboard. That's a detailed record of habits. Decide how long to keep logs, who may see them and whether you need per-device detail at all.
At work, tell staff what's filtered and logged, in writing. Rules about monitoring employees differ by place, so confirm yours. At home, consider what's appropriate for each person's age, and be open about it.
Handling false positives
When something legitimate breaks, check the filter's query log for the blocked name. Modern pages load resources from several domains, so the blocked one may not be the one in the address bar. Add a narrow allow entry for that specific name, note why and report the miscategorization to the list or service owner.
If a site fails and nothing shows in the log, the cause may be elsewhere. Troubleshooting an unresponsive DNS server helps separate filter trouble from network trouble.
Common questions
Does DNS filtering slow down the internet?
Usually not noticeably. It affects only the lookup, and a nearby resolver with a good cache answers quickly. Blocking advertising hosts can even make some pages load faster.
Is it enough to protect children online?
No. It reduces accidental exposure to listed sites. Contact from strangers, content inside popular apps and screen habits need other tools and ongoing attention.
Will it replace antivirus software?
No. It stops some connections to known bad domains but can't inspect files or running programs. Keep updates and security software in place.