DML School of Technology
Menu

Open to everyone Reading, lesson 38 of 100, 2 min read

DNS and email security

DNS: the internet's phone book

When you type dmlschooloftechnology.org, your device asks a DNS resolver for the address. The resolver asks the root servers, then the .org servers, then the domain's own name servers, and returns the answer. The DNS lookup lab walks through this step by step.

How DNS is abused

  • Spoofing and cache poisoning: false answers send users to the wrong server.
  • Typosquatting: registering look-alike domains for phishing.
  • Domain hijacking: taking over a domain by breaking into the account at the registrar.
  • DNS tunnelling: hiding stolen data inside DNS queries, because DNS is often allowed out of networks without inspection.

Defences

  • Protect your registrar account with a strong password and MFA, and turn on registrar lock.
  • Use a reputable resolver; some resolvers also block known malicious domains.
  • DNSSEC adds signatures to DNS answers so they cannot be forged in transit.
  • Watch DNS logs for unusual volume or strange names.

Email authentication

Anyone can write any "From" address on an email. Three DNS records let receiving servers check whether a message really comes from your domain:

RecordWhat it says
SPFWhich servers are allowed to send mail for the domain
DKIMA digital signature on each message, checked with a public key published in DNS
DMARCWhat receivers should do when SPF and DKIM checks fail (report, quarantine or reject), and where to send reports

With all three set, and DMARC eventually at reject, criminals find it much harder to send email that pretends to come from your exact domain. They still use look-alike domains, which is why people must still read sender addresses.

Note

Setting SPF, DKIM and DMARC is one of the first tasks for any school or business that sends email from its own domain.