DNS is the internet's phone book, and almost no one looks at it. Every connection begins with a name lookup, those lookups are usually permitted to leave a network unfiltered, and for decades they traveled in plaintext with no way to tell a real answer from a forged one. That combination of trusted, universal and historically unauthenticated makes DNS both a target for poisoning and a channel for abuse. DNS security covers three separate problems.

The first problem is integrity: can you trust the answer? Classic DNS has no authentication, so a well-positioned attacker can forge or poison a response and send a victim to a server they control while the address bar looks correct. The second is confidentiality: who can see your lookups? Plaintext DNS lets anyone on the path read exactly which sites you visit. The third, which defenders underrate, is exfiltration: DNS as a covert tunnel out of a network that blocks everything else.

DNSSEC and DoH solve different halves

DNS Security: DNSSEC, DoH and the Exfiltration ChannelDiagram with these labels, in reading order: query; validated answer; uncontrolled DoH / tunneling; Client; Monitored resolver; DNSSEC + DoH; Authoritative; zone; Attacker zone; long random subdomains; Uncontrolled DoH and; unmonitored queries; → C2 and exfil leave; as DNS.queryvalidated answeruncontrolled DoH / tunnelingClientMonitored resolverDNSSEC + DoHAuthoritativezoneAttacker zonelong random subdomainsUncontrolled DoH andunmonitored queries→ C2 and exfil leaveas DNS
DNS is a control plane and a covert channel: validate the answer, encrypt on your terms, watch the queries.

DNSSEC addresses integrity. It signs DNS records so a resolver can cryptographically verify that an answer came from the zone's owner and was not altered in transit. It authenticates the response and leaves the query visible. DoH and DoT (DNS over HTTPS/TLS) address confidentiality by encrypting the query so on-path observers cannot read it or easily alter it. They complement each other: one proves the answer is genuine, the other keeps the question private. Conflating them is the most common DNS-security confusion.

The tradeoff: Encrypted DNS protects users from surveillance, and it also blinds defenders who relied on watching plaintext DNS to catch malware. The same DoH that hides a query from an ISP can hide a beacon from your security team.

DNS as the exfiltration channel

Because DNS is allowed to leave almost every network, attackers encode stolen data into the names they look up. A query for a long, random-looking subdomain of an attacker-controlled zone carries data outward; the attacker's authoritative server reads it and can answer back. It is slow and clumsy, and it works because egress filtering often ignores DNS. Malware has used this for command-and-control and for quietly draining data past firewalls that block every other outbound path.

  • Enable DNSSEC validation on your resolvers, and sign your own zones. Validation rejects forged answers; signing lets others verify yours. Together they make forged answers much harder to inject.
  • Set a DoH policy. Decide whether clients and browsers use your controlled encrypted resolver, because uncontrolled DoH to a third party bypasses your DNS security.
  • Route DNS through resolvers you monitor. Centralize resolution so you can still see and analyze queries; block direct DNS to arbitrary external resolvers.
  • Watch for tunneling signatures. Abnormally long subdomains, high query volume to a single domain, and high-entropy names are the classic tells of DNS exfiltration.
  • Apply DNS filtering. Blocking resolution of known-malicious and newly-registered domains stops a large fraction of malware before the first connection is even made.

Treat resolvers as security infrastructure

DNS security rarely gets budget because DNS 'just works', which is why it deserves attention. DNS touches every connection, reveals intent before the payload arrives, and is an egress path most networks leave wide open. Run your resolvers as security infrastructure: validated, encrypted on your terms, monitored and filtered. An organization that cannot see its own DNS queries has given up its earliest and cheapest signal.

You cannot secure or monitor DNS you do not control, and rogue resolvers and unmanaged devices route around you. DNS security begins by discovering every resolution path in your estate, because you cannot watch what you have not discovered.

Back to the knowledge baseRequest an assessment