Cyberstudy
4.5 In progress

DNS Filtering

14 flashcards

Summary

Almost every connection starts with a DNS lookup, so filtering DNS is a simple, wide-reaching control. Blocking lookups for malicious or unwanted domains stops many threats before a connection is made. DNS servers themselves must also be secured, and DNSSEC protects the integrity of DNS answers.

In plain words

DNS filtering blocks access to malicious or unwanted domains by refusing to resolve them. It protects every device that uses the resolver, including IoT. Options include filtering services (Quad9, OpenDNS, CleanBrowsing), your own DNS servers, DNS firewalls, endpoint agents, or Pi-hole. Secure the DNS itself too: make it fault-tolerant, allow recursion only for internal hosts, patch it, block unauthorized zone transfers, and use DNSSEC against spoofing and poisoning.

Detailed explanation

  • DNS filtering: Refusing or redirecting DNS lookups for domains on block lists or in blocked categories.
    • Benefits: Stops connections to known-malicious domains early, enforces policy, protects all devices on the network and is easy to deploy.
    • Options: Filtering DNS services, DNS firewalls, endpoint agents and open-source resolvers with block lists.
  • Response policy zone (RPZ): A way for DNS servers to override answers for listed domains.

Securing DNS servers

  • Redundancy: Multiple DNS servers for availability.
  • Access control: Restrict zone transfers to authorized servers and limit who can make changes.
  • Patching: Keep DNS software up to date.
  • Limit exposure: Avoid revealing internal records to external queries.
  • DNS Security Extensions (DNSSEC): Digitally signs DNS records so resolvers can verify they are authentic and unchanged; it does not encrypt queries.
  • Encrypted DNS: DNS over HTTPS (DoH) and DNS over TLS (DoT) protect query privacy.

Important terms

taken from the text above
DNS filtering
Refusing or redirecting DNS lookups for domains on block lists or in blocked categories.
Response policy zone (RPZ)
A way for DNS servers to override answers for listed domains.
Redundancy
Multiple DNS servers for availability.
Access control
Restrict zone transfers to authorized servers and limit who can make changes.
Patching
Keep DNS software up to date.
Limit exposure
Avoid revealing internal records to external queries.
DNS Security Extensions (DNSSEC)
Digitally signs DNS records so resolvers can verify they are authentic and unchanged; it does not encrypt queries.
Encrypted DNS
DNS over HTTPS (DoH) and DNS over TLS (DoT) protect query privacy.

Examples & real-world scenarios

  • Pointing a home network at Quad9 to block known-malicious domains.
  • Restricting zone transfers to secondary DNS servers only.
  • Enabling DNSSEC validation on resolvers.

Scenario

A user clicks a phishing link, but the domain is on the DNS filter's block list, so it never resolves and the page doesn't load. The attack is stopped before any content is downloaded.

Common mistakes

  • Relying on DNS filtering alone. Direct IP connections bypass it.
  • Allowing open recursion from the Internet on your DNS servers.

Practical skills

  • Set up DNS filtering for your own home network.
  • List DNS server hardening steps.

What I should remember

  • DNS filtering: Blocks malicious domains at lookup time.
  • DNSSEC: Signs DNS records for integrity and authenticity.
  • Zone transfer restriction: Prevents leaking DNS records.
  • DoH and DoT: Encrypt DNS queries.