ZTGIT

DNS is security: filtering, DNSSEC and why the resolver matters

ZTGIT team

The question that comes before everything

Almost every connection on the internet starts with the same question: “what is the address of example.com?” That question is a DNS query, and the fact that it comes before the connection makes DNS a rare point of defense: you can block access to a dangerous destination without ever opening a connection to it.

DNS filtering: block before connecting

DNS filtering answers “that domain does not exist for you” when the query points somewhere bad: a phishing site, a malware distribution server, the command-and-control channel a piece of malware uses to receive orders. Because this happens before the connection, the defense is cheap and broad — it covers any application on the machine, not just the browser.

It is also a great point of observation: a network’s DNS queries reveal what machines are trying to reach. An infected host often gives itself away through DNS, asking for strange domains, long before it causes visible harm.

DNSSEC: the answer was not swapped

Filtering is not enough if the answer itself can be forged. DNSSEC signs DNS answers, so the resolver can verify that the answer really came from the domain’s owner and was not tampered with on the way. Without DNSSEC, an attacker in a middle position can send you to the wrong address. With it, tampering is detected.

Why run your own resolver

Using a public resolver is convenient, but it hands two things to third parties: control (which domains are blocked, and by what criteria) and the log (who asked what). Running your own resolver gives both back:

  • you decide the blocking policy, with your own lists;
  • queries stay in your infrastructure, not a provider’s;
  • the log feeds your detection, connecting DNS to the SIEM.

It is the principle of autonomy applied to the most basic layer of the network.

In ZTGIT

ZTGIT-DNS and ZTGIT-Resolver provide your own authoritative DNS and resolver; ZTGIT-Blocker applies filtering of dangerous domains; ZTGIT-DNSpanel manages the zones; and ZTGIT-DNSedge takes resolution to the edge. All run from images built from source, pinned by digest and signed — because the layer that decides where everything connects must be trustworthy.

Catalogue status: ZTGIT-DNS, ZTGIT-Resolver and ZTGIT-DNSedge are still in preparation; each component page shows its current state.

From the blog