SecDNS

Why DNS filtering — the pros, cons, alternatives and complementary controls

An honest look at the strengths and limits of DNS-layer filtering, how it compares to web proxies and EDR, and the cases where a protective resolver is the most cost-effective control.

Why DNS filtering — the pros, cons, alternatives and complementary controls

DNS-layer filtering is one of those security controls that sounds underwhelming on paper — refusing to resolve some names — and outperforms expectations once it is deployed. It is also frequently oversold. This article tries to give an honest account of where DNS filtering wins, where it does not, and which controls round it out.

Why it works

Three properties make DNS filtering attractive:

  1. Early in the kill chain. Almost every internet-borne attack does a name lookup before any TLS handshake. Blocking at DNS aborts the attack before any code runs on the endpoint.
  2. Cheap to operate. A query takes a microsecond at the resolver. A block is a database lookup, not a packet capture. Cost per protected user is typically a few dollars a year.
  3. Universal. Anything that uses the network uses DNS — Windows, Linux, macOS, iOS, Android, IoT toasters, BYOD phones. You do not need an agent on the device.

The 2021 CISA / NSA joint guidance "Selecting a Protective DNS Service" leans on exactly these properties when it recommends PDNS as a baseline control for federal agencies.

Where it falls short

Equally honest about the limits:

  • DNS-bypassing malware. A sample with a hard-coded IP never asks DNS for anything. DNS filtering cannot see it.
  • Encrypted SNI / ECH. As Encrypted ClientHello rolls out, hostname-level inspection at the TLS layer becomes harder. DNS still sees the lookup, but downstream controls that relied on SNI need to evolve.
  • Resolver bypass. A determined user on an unmanaged device can change their DNS settings. MDM and DoH discovery (DDR) close this gap on managed fleets.
  • False positives. Aggressive blocklists routinely flag legitimate CDNs. The cure is curation (covered in our protective DNS overview), not bigger lists.
  • No payload inspection. DNS sees the question, not the answer body. A phishing page on a long-lived legitimate hosting domain often slips through.

A useful mental model: DNS filtering catches the majority of opportunistic threats and a meaningful slice of targeted ones, but it is not the last line of defence.

How it compares to neighbouring controls

ControlStrengthWeaknessWhere to use it
Protective DNSUniversal, early, cheapHostname onlyEvery device, every network
Email gatewayCatches phishing before users clickEmail channel onlyInbound mail
Web proxy / SSEFull URL and (with TLS MITM) body inspectionExpensive, agent-dependentManaged laptops and offices
Endpoint EDRBehaviour on the hostReactive once malware runsEvery endpoint
Firewall / IDSCross-protocol policyLimited app awarenessNetwork choke points

The strongest stacks use all five. The fastest improvement-per-dollar for most organisations is to add protective DNS first if it is not already in place — see Why DNS filtering? and What is protective DNS?.

Picking a deployment model

DNS filtering can be delivered in three shapes:

  • Cloud recursive resolver. Devices point at an external DoH/DoT endpoint. Easiest to deploy, no on-prem hardware.
  • On-prem resolver with cloud threat feeds. Run BIND or PowerDNS Recursor in-house and pull RPZ feeds from a vendor. Best for high-throughput sites and air-gapped networks.
  • Hybrid SSE. DNS filtering as one inspection point in a larger SASE platform, often with the same vendor providing SWG and ZTNA.

A SecDNS deployment usually starts in the first model. You create a profile, install the per-device DoH URL through MDM, and watch the dashboard for the first week to calibrate categories.

curl -X POST https://api.secdns.app/v1/profiles \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"name":"corporate-laptops","categories":["malware","phishing","nrd"]}'

Complementary controls

Once the DNS layer is in place, the next investments depend on the threat model:

  • High-phishing exposure: a strong email gateway plus user training.
  • BYOD-heavy environment: MDM and conditional access to keep policies pinned.
  • High-value data: an EDR with managed detection and response.
  • Regulated industries: a SIEM that ingests DNS logs and correlates with identity and endpoint telemetry.

The goal is not to layer endlessly but to put each control where its strengths show. DNS does the cheap, broad sweep; the other controls handle what slips through.

Further reading

Frequently asked questions

Is DNS filtering enough on its own?

No. It is a high-leverage layer because it stops a lot of attacks for very little money, but it does not see TLS payloads, it cannot stop malware that uses hard-coded IPs, and it cannot inspect files on disk. Pair it with email security, a web proxy or SSE, and endpoint protection.

Does DNS filtering hurt application performance?

A protective resolver typically adds 1-3 ms over an unfiltered resolver on the same anycast network and the cost is the same on a clean query as on a blocked one. Performance regressions, when they happen, almost always come from picking a geographically distant resolver rather than from the filtering itself.

What about false positives?

They are real and unavoidable. The right answer is fast triage — a clear admin console with per-query logs and a one-click allowlist — rather than no filtering at all. SecDNS surfaces the matched feed and confidence score on every block so triage takes seconds.

How does DNS filtering compare to a web proxy?

A proxy inspects the full request including URL path and (with TLS interception) the response body. DNS filtering acts earlier and cheaper but only sees the hostname. They are complementary; many organisations use DNS for breadth and a proxy for depth on a subset of traffic.

Will my users know they are filtered?

Only when something is blocked. SecDNS supports either an NXDOMAIN response (browser shows a generic error) or a configurable sinkhole page that explains the block and links to a help-desk request form.