DNS filtering and web content filtering for small organizations: how it works, protective DNS, DoH and DoT bypass, logging and privacy, firewall vs agent
How DNS filtering and web content filtering work, protective DNS (NIST, NSA, CISA), DoH/DoT bypass, logging and privacy, and firewall vs agent deployment.
Almost every connection on the internet starts with a DNS lookup: a device asks a resolver for the address of a name like example.com before it connects. DNS filtering uses that moment to block connections to malicious or unwanted sites. It is one of the simplest controls a small office or school can add, and federal guidance now treats it as a standard layer.
This guide explains how DNS filtering works, what protective DNS means (including NIST SP 800-81r3, NSA and CISA guidance, and what CISA’s own Protective DNS service is), how encrypted DNS (DoH, DoT, DoQ) can bypass it and what to do about that, logging and privacy, and where to deploy it (firewall, cloud resolver, or device agent). It is vendor-neutral: we do not recommend a product.
How this differs from our firewall guides: our business firewall buying guide and how to choose a firewall list web or DNS filtering as one feature to compare when buying a firewall. This post goes deeper on DNS filtering itself: the mechanics, the bypass problem, logging, and deployment choices, whether or not your firewall does the filtering.
How does DNS filtering work?
A normal lookup goes like this: a device asks its configured resolver (often your firewall or a server, handed out by DHCP) for a name; the resolver answers from cache or asks other DNS servers on the internet; the device connects to the returned address.
A filtering resolver adds a policy check:
- The device sends a query for a domain.
- The resolver checks the name, and often the IP address it would return, against threat intelligence (known phishing, malware, command and control, newly registered or algorithm-generated domains) and category lists (for example gambling or adult content) that you choose to block.
- If the domain is allowed, it answers normally.
- If the domain is blocked, it answers with an error such as NXDOMAIN (“no such domain”), redirects to a block page, or sinkholes it to a controlled address. It logs the event.
NIST SP 800-81r3 calls this name resolution filtering: “a protective DNS implementation might refuse to resolve a set of domain names that are known to be used in phishing campaigns or that identify malware command-and-control infrastructure.” The usual mechanisms are DNS firewalls and Response Policy Zones (RPZs), which let a resolver load policy feeds and apply them during resolution.
Because DNS comes first, the block happens before a connection is made, before a page loads and before malware can fetch its next stage. That is the main appeal.
What is protective DNS?
Protective DNS is the term federal guidance uses for DNS resolution with security analysis built in.
- NIST SP 800-81r3, the Secure DNS Deployment Guide, was finalized on 03/19/2026 (it supersedes SP 800-81-2 from 09/18/2013). Its first high-level recommendation is to “employ protective DNS wherever technically feasible,” for blocking malicious traffic in real time, filtering categories that do not fit policy, generating query data for forensics and incident response, and integrating with the wider security stack. It notes the term is generic “and does not indicate the CISA program of the same name.”
- NSA and CISA’s Selecting a Protective DNS Service (first issued in 2021; the copy we read is marked Ver. 1.5, 06/2026) describes protective DNS as “a security service – not a protocol – that analyzes DNS queries and takes action to mitigate threats.” It lists the domain types typically addressed: phishing, malware distribution and command and control, domain generation algorithms, and content filtering. It includes a comparison table of commercial providers based on reported capabilities, with the explicit caveat that it is “not … recommendations for provider selection.”
- CISA’s Protective DNS Resolver is a specific service. Per CISA’s service page and FAQ, it launched for federal civilian executive branch agencies in 09/2022, is offered at no cost to participating agencies, and is open to critical infrastructure entities “on a limited basis through the CI Pilot program.” Small businesses and schools generally use commercial or self-hosted protective DNS instead.
What protective DNS blocks (and does not)
| Threat or need | Can DNS filtering help? | Notes |
|---|---|---|
| Phishing links to known bad or lookalike domains | Yes | Depends on how fast the feed lists new domains |
| Malware downloads from known bad domains | Yes | Not if hosted on a trusted domain (cloud storage, popular sites) |
| Malware calling home (command and control) | Yes | Also flags infected devices through block logs |
| Domain generation algorithms | Often | Providers use heuristics on random-looking names |
| Data exfiltration through DNS tunneling | Sometimes | Depends on provider analysis |
| Content categories (adult, gambling, social media) | Yes, by domain | Cannot separate pages within one domain |
| Malicious content on an otherwise legitimate domain | No | Needs URL or content inspection |
| Connections made directly to IP addresses | No | NSA: protective DNS “is bypassed by any traffic using IP addresses directly” |
| Devices using their own encrypted DNS resolver | No, unless blocked | See the bypass section below |
NSA and CISA put it plainly: “customers should not rely on it alone to detect and prevent malicious traffic.” DNS filtering is a layer, alongside the firewall, endpoint protection, email filtering, MFA and patching in our ransomware protection checklist.
How is DNS filtering different from web content filtering?
| DNS filtering | Web content filtering (URL/proxy) | |
|---|---|---|
| Decides on | Domain name (and sometimes resolved IP) | Full URL, file type, page content, application |
| Where it runs | Resolver: cloud service, on-prem DNS server, firewall DNS proxy, device agent | Firewall, secure web gateway, cloud proxy, browser extension, device agent |
| Sees inside HTTPS? | No | Only with TLS inspection, or from the endpoint |
| Granularity | Whole domain | Per page, per path, per application feature |
| Covers non-web traffic (apps, IoT, malware) | Yes, anything that does DNS lookups | Usually web traffic only |
| Setup effort | Low: point DNS at the filter | Higher, especially with TLS inspection (certificates on devices) |
| Typical use | Broad security layer for every device | Finer policy (for example schools allowing educational pages on a mostly blocked domain) |
The growing use of Encrypted Client Hello (RFC 9849, 03/2026), which hides the server name inside TLS, makes network devices less able to see which site a device is connecting to. Filtering at the resolver or on the device is not affected by that the same way.
How can DNS filtering be bypassed, and what can you do?
DNS filtering only works if devices actually use your filtering resolver.
The bypass routes
| Route | How it works | What to do |
|---|---|---|
| Different DNS server | User or malware sets a public resolver manually | Block outbound TCP/UDP 53 except from your resolvers or firewall |
| DNS over TLS (DoT, RFC 7858) | Encrypted DNS on TCP port 853 | Block TCP 853 outbound except to approved resolvers |
| DNS over QUIC (DoQ, RFC 9250) | Encrypted DNS on UDP port 853 | Block UDP 853 outbound except to approved resolvers |
| DNS over HTTPS (DoH, RFC 8484) | Encrypted DNS inside normal HTTPS on port 443 | Block known DoH resolver domains (via DNS policy) and IPs (firewall); set browser and OS policies; use an agent |
| Browser-level DoH | Browser uses its own resolver regardless of DHCP | Enterprise browser policy (for example Chrome’s DnsOverHttpsMode) |
| Direct IP connections | No DNS lookup at all | Firewall policy, IP reputation, web filtering |
| VPNs, proxies, Tor | Tunnels everything past local controls | Block VPN/proxy categories; restrict app installs on managed devices |
| Off-network devices | Laptop at home uses home DNS | Roaming agent or always-on VPN |
| Hotspots | Phone tethering on a school or office laptop | Device policy; agent |
What federal guidance says about encrypted DNS
Encrypted DNS is good for privacy and integrity, and federal guidance supports it, but on the organization’s terms:
- NSA’s Adopting Encrypted DNS in Enterprise Environments (01/2021) recommends that enterprises use only designated enterprise DNS resolvers, which should support encrypted DNS, and that “all other encrypted DNS resolvers should be disabled and blocked.” If your resolver does not support encrypted DNS, NSA says to still use it and disable encrypted DNS “until encrypted DNS capabilities can be fully integrated.” It also notes a device configured with an external DoH resolver “will ignore the address of the DNS resolver assigned to it through the DHCP,” which can leak internal names and break split DNS.
- NIST SP 800-81r3 section 4.2.2 lists the same controls: block outbound DNS from the internal network except authorized servers; block unauthorized DoT (TCP 853) and DoQ (UDP 853); block unauthorized DoH using RPZs (for known DoH domain names) and firewall rules (for DoH services on dedicated IPs), noting DoH “is more difficult to block because it uses the same TCP port as TLS”; and use MDM or other central management “to prevent users from configuring non-approved external encrypted DNS services.”
- NSA and CISA’s protective DNS guidance repeats it: block outbound port 53 and 853, block unauthorized DoH servers, and configure browsers “with enterprise policies that configure DoH solely for designated resolvers, or disable DoH entirely.”
Browser and operating system settings
Browser DoH behavior is controlled by policy on managed devices. For Chrome, the DnsOverHttpsMode policy has three values: off, automatic (DoH with insecure fallback) and secure (DoH only); Google’s policy text says that if the policy is unset, “for managed devices DNS-over-HTTPS queries will not be sent.” A companion policy sets the DoH resolver template. NSA’s paper notes that Firefox and Chrome automatically disable DoH when enterprise policies are configured, and describes the “canary domain” signal some browsers check. Set the policy explicitly rather than relying on defaults, and check each browser and operating system you manage; vendors change defaults.
Newer standards such as Discovery of Designated Resolvers (RFC 9462, 11/2023) let a network advertise an encrypted version of its own resolver, so devices can use encrypted DNS without leaving your filter. Support varies by operating system and resolver.
Where should DNS filtering run: firewall, cloud resolver or agent?
| Deployment | How it works | Strengths | Weaknesses |
|---|---|---|---|
| Firewall DNS filter | Firewall inspects or proxies DNS and applies its own category and threat lists | One box; per-VLAN policy; covers every on-site device | Only on-site; feature may need a subscription; depends on the firewall vendor’s lists |
| Firewall or local resolver forwarding to a cloud protective DNS service | DHCP hands out the local resolver; it forwards to the filtering service | Covers all on-site devices including IoT, printers, cameras; local names still work; NIST shows this pattern (cloud service with local forwarder) | Cloud service sees only the forwarder’s IP unless it supports per-network or per-client identification |
| Devices pointed straight at a cloud resolver | DHCP hands out the provider’s addresses | Simplest | Internal names break; little per-device attribution |
| On-prem resolver with RPZ feeds | Your own DNS server loads threat feeds | Full control, low latency, keeps working if the cloud is unreachable | Needs skills to run and keep current; feed costs |
| Endpoint agent (roaming client) | Small client on laptops and phones sends DNS to the filter from anywhere | Works off-network; identifies user and device; can enforce encrypted DNS to the filter | Only managed devices; must be installed and kept running |
| Browser extension | Filtering in the browser (common on school Chromebooks) | User-level policy; works anywhere | Browser only; not other apps |
NIST SP 800-81r3 notes trade-offs: cloud services bring more threat intelligence and scale but “a loss of confidentiality, higher latency, and challenges in quickly and accurately attributing DNS queries to their sources.” It suggests a hybrid where feasible: a cloud service plus on-premises protective DNS, so an organization that fails open when the cloud is unreachable is still protected. NSA and CISA add that “one PDNS policy will not often fit the entire enterprise” and that roaming clients provide flexibility for mobile and home users.
A common small-organization pattern:
- On site: the firewall or a local resolver forwards to the filtering service; outbound DNS, DoT and DoQ from anything else are blocked; known DoH resolvers are blocked.
- Different policies per network: staff, guest, students and IoT each get a policy that fits. Our VLAN and segmentation guide covers mapping networks to policies.
- Managed laptops and phones: a roaming agent (installed through MDM) so filtering follows the device.
- Browser policies pushed through MDM or Google Admin.
What should you log, and what about privacy?
DNS logs are some of the most useful records in an investigation: they show which devices tried to reach a bad domain and when. They are also sensitive: they reveal browsing.
What guidance says:
- NIST SP 800-81r3: “DNS queries and the responses associated with domains that are classified as malicious or unauthorized by protective DNS services should always be logged.” Full logging can be heavy; organizations may trim known-safe domains before sending logs to a SIEM “but should keep a complete log for future forensics.” It also stresses keeping DHCP lease history so an IP address in a log can be tied to a device.
- NSA and CISA: protective DNS providers “should collect and store the logs of DNS queries or provide them to the organization,” because historical logs help search for “indications of earlier intrusions using indicators that only become known later on.”
- Joint logging guidance from ASD’s ACSC, CISA, NSA and others (Best practices for event logging and threat detection, 08/2024) lists “DNS services used by organisational users” among priority log sources and says retention should be informed by risk, noting it “can take up to 18 months to discover a cyber security incident.”
Privacy decisions to make in writing:
| Question | Why it matters |
|---|---|
| What does the provider log, where, and for how long? | Sets what you can investigate later and what a third party holds |
| Does the provider use your query data for anything other than security? | NSA and CISA tell buyers to understand “whether the provider will use the data for any non-security purposes” |
| Who in your organization can view logs, and is access itself logged? | Browsing history is sensitive; limit and audit access |
| Are logs tied to user names or only devices? | Agents often attribute to users; network filtering often to IP only |
| How long do you keep logs, and how are they deleted? | Retention should be a decision, not a default |
| Have staff, students and families been told? | Your acceptable use policy should say browsing is filtered and logged |
| Do blocked-category reports go to managers or teachers? | Decide who acts on reports and how |
Our data classification and retention guide covers writing retention periods down; our AI acceptable use policy guide has a model for stating what is monitored.
Notes for schools: CIPA
Schools and libraries that receive E-Rate discounts for internet access or internal connections must certify compliance with the Children’s Internet Protection Act. Under 47 CFR 54.520, the internet safety policy must include a technology protection measure that protects against access to visual depictions that are obscene, child pornography, or, for minors, harmful to minors; an authorized person may disable it for an adult’s bona fide research or other lawful purpose; and the policy must include monitoring the online activities of minors and, since 07/01/2012, education about appropriate online behavior.
Practical points for schools:
- DNS filtering is often one part of a CIPA technology protection measure, combined with browser-level filtering on Chromebooks and network filtering on the student VLAN.
- Student devices that go home need filtering that follows the device (agent or browser extension) if your policy requires it off campus.
- Over-blocking hurts learning; set a clear, quick process for teachers to request unblocks.
- This post makes no claim about whether any filtering product or service is E-Rate eligible. Check the current Eligible Services List and USAC guidance before planning a funding request.
Our Google Workspace for Education security guide covers Chromebook policies that sit alongside filtering.
How do you roll out DNS filtering?
- Inventory resolvers and DNS paths. What hands out DNS today (firewall, server, ISP router)? Do internal names (Active Directory, printers, NAS) need local resolution?
- Choose a model. Firewall feature, cloud protective DNS with a local forwarder, on-prem RPZ, plus agents for roaming devices.
- Evaluate providers on your criteria. Use the NSA and CISA capability list: malware, phishing and DGA blocking; content categories; API or SIEM integration; dashboard; DNSSEC validation; DoH/DoT support; per-group policy; hybrid and roaming support; high availability; log access and retention; data-use terms.
- Start in monitor mode. Log without blocking for a short period to see what would be blocked.
- Set policies per network and group. Security categories on for everyone; content categories by group.
- Lock down bypass. Block outbound 53 except from resolvers; block TCP and UDP 853; block known DoH resolvers; set browser policies; block VPN and proxy categories where appropriate.
- Deploy agents to managed laptops and phones through MDM.
- Set up a block page and an unblock request path.
- Connect logs to whatever you use for alerting, and decide retention.
- Test. Confirm blocks from each network; confirm a device with a manual DNS setting fails; confirm a laptop off-site is filtered.
- Review monthly at first. Look at top blocked threat domains, devices with repeated security blocks (possible infection), and false positives.
DNS filtering checklist
- All on-site devices use the filtering resolver (DHCP checked on every VLAN).
- Internal names still resolve correctly.
- Security categories (malware, phishing, command and control, newly seen domains) blocked for everyone.
- Content categories set per group (staff, guest, students, IoT).
- Outbound TCP/UDP 53 blocked except from approved resolvers.
- Outbound TCP 853 and UDP 853 blocked except to approved resolvers.
- Known DoH resolver domains and IPs blocked.
- Browser DoH policy set explicitly on managed devices.
- VPN, proxy and anonymizer categories reviewed.
- Roaming agent on managed laptops and phones.
- Block page explains the block and how to request a review.
- Blocked security events alert someone who will act.
- DHCP lease history kept so logged IPs map to devices.
- Log retention and access decided in writing; provider data-use terms reviewed.
- Staff, students and families told that browsing is filtered and logged.
- Provider and failover tested (what happens if the cloud service is unreachable?).
- Schools: CIPA technology protection measure, monitoring and education covered.
Common mistakes
- Filtering only the main network. Guest, IoT and student networks get forgotten.
- Leaving outbound DNS open. Any device can use any resolver.
- Ignoring DoH. Browsers and apps can quietly route around the filter.
- No agent on laptops. Filtering ends at the front door.
- Pointing every device straight at a public filtering resolver and breaking internal names.
- Treating DNS filtering as the whole defense. It does not see direct-IP traffic or content on trusted domains.
- No unblock process. Users find workarounds.
- Logs no one reads, or logs everyone can read.
Where Kyber Systems fits
Kyber Systems sets up DNS and web filtering as part of firewall and network security and managed IT services for offices and schools in Jersey City, Hoboken and New York City: resolver design, per-VLAN policies, bypass controls on the firewall, browser policies and agents through MDM, and log review. We are vendor-neutral in this guide and do not quote prices.
Related guides
- Business firewall buying guide: what to compare before you buy
- Zero trust for small organizations: what CISA’s maturity model and NIST SP 800-207 mean, and practical first steps
- VLANs and network segmentation for offices and schools: guest, IoT, camera, VoIP and staff networks, firewall rules and DHCP
- Ransomware protection for small offices and schools: a practical checklist
- Choosing a domain registrar and managing DNS safely: registrar lock, MFA, DNSSEC, TTL planning, records inventory, renewals and subdomain takeover
- Guest Wi-Fi for businesses and schools: captive portals, client isolation, bandwidth limits, WPA3 and Enhanced Open (OWE), CIPA considerations, logging and terms of use
Checked against NIST SP 800-81r3, NSA and CISA protective DNS and encrypted DNS guidance, CISA’s Protective DNS pages, the joint event logging guidance, IETF RFCs, Google’s Chrome Enterprise policy list and 47 CFR 54.520 listed below on 12/04/2026. Browser and operating system DNS defaults change; check current vendor documentation.