Join our Newsletter — 33% off our NHI Course

DNS Filtering

DNS filtering is a control that blocks, allows, redirects, or reroutes traffic based on domain resolution requests. It reduces exposure to phishing, malware, and unwanted destinations by applying policy at the point where devices attempt to resolve names into reachable internet endpoints.

Expanded Definition

DNS filtering is a policy enforcement control applied during name resolution, before a device reaches the destination host. Rather than inspecting only web content after a connection is established, it evaluates the requested domain and decides whether to allow, block, redirect, or log the lookup. That makes it useful for stopping known malicious destinations, reducing casual access to unwanted sites, and enforcing acceptable use policies across managed endpoints and networks.

In security operations, DNS filtering sits between network access control and web security because it can reduce exposure early in the connection chain. It is often used alongside endpoint protection, secure web gateways, and NIST Cybersecurity Framework 2.0 outcome mapping for preventative controls and monitoring. Definitions vary across vendors on whether DNS filtering includes recursive resolver hardening, sinkholing, or cloud security features, so the term should be interpreted by actual enforcement behavior rather than product category labels. The most common misapplication is treating DNS filtering as complete web protection, which occurs when teams assume domain blocking alone will prevent access to malicious content delivered through already trusted services or encrypted channels.

Examples and Use Cases

Implementing DNS filtering rigorously often introduces operational exceptions, requiring organisations to weigh stronger preventative coverage against the cost of false positives and policy upkeep.

  • Blocking newly registered or known malicious domains used in phishing campaigns, helping stop credential theft before a browser loads the page.
  • Preventing workstation connections to command-and-control infrastructure associated with malware, especially when endpoint detections are delayed.
  • Redirecting requests for internal-only services to a warning page or approved resolver, supporting safer remote access and policy enforcement.
  • Filtering category-based domains, such as gambling or adult content, to support acceptable use policies in schools, enterprises, or regulated environments.
  • Combining DNS logs with incident response workflows so analysts can trace which hosts attempted to resolve suspicious domains during an alert investigation.

For organisations formalising this control, the NIST Cybersecurity Framework 2.0 provides a useful governance lens for aligning prevention, detection, and response outcomes. DNS filtering is most effective when resolver policy, endpoint coverage, and exception handling are managed together rather than as isolated settings.

Why It Matters for Security Teams

DNS filtering matters because it can interrupt attack chains at a very early stage, especially where users click before security teams can respond. It is not a substitute for identity controls, patching, or malware defense, but it does reduce the number of destinations that endpoints can successfully reach. That makes it valuable for phishing resilience, ransomware disruption, and policy enforcement across distributed workforces.

Security teams also need to understand its limits. DNS filtering cannot reliably inspect traffic once a device already knows the endpoint, and it may be bypassed by hardcoded IP addresses, alternative resolvers, or misconfigured applications. When deployed in identity-centric environments, it can also complement NHI governance by limiting where non-human identities and automated services can resolve external dependencies, especially for scripts and agents that rely on outbound API lookups. The strongest programmes treat DNS filtering as one layer in a broader prevention strategy, paired with logging, identity-aware access, and network controls. Organisations typically encounter its importance only after a phishing click or malware beacon is blocked at the resolver, at which point DNS filtering becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 define the regulatory obligations.

Framework Control / Reference Relevance
NIST CSF 2.0 PR.AC-4 DNS filtering supports restricting access to approved destinations through policy enforcement.
NIST SP 800-53 Rev 5 SC-7 Boundary protection governs control of inbound and outbound communications, including DNS enforcement points.
ISO/IEC 27001:2022 A.8.20 Network security controls cover traffic filtering and protective rules for communications.

Define and operate DNS filtering as a documented network security control with reviewable rules.