Read email security DNS records
Look up the MX, SPF and DMARC records for domains you use, and explain what each one tells receiving mail servers.
Environment
PowerShell (Resolve-DnsName) or a terminal (nslookup / dig).
Before you start
- Read Email Services (p.284), Email Security (p.286) and DNS Filtering (p.289).
You will
- Find MX, SPF and DMARC records
- Interpret SPF mechanisms and DMARC policy
Steps
-
1
Pick your email provider's domain, or your own domain if you have one.
-
2
MX records:
Resolve-DnsName example.com -Type MX(ornslookup -type=mx example.com). -
3
SPF:
Resolve-DnsName example.com -Type TXTand find the string startingv=spf1. Note itsinclude:entries and whether it ends in-allor~all. -
4
DMARC:
Resolve-DnsName _dmarc.example.com -Type TXT. Notep=none,quarantineorreject, and therua=reporting address. -
5
Compare two domains. Which one has the stricter policy?
-
6
Connect it to the phishing lab: which of these records produced the
spf=anddmarc=results you saw in the message headers?
Check your understanding
- ?What's the difference between SPF
-alland~all? - ?What does a DMARC policy of
p=rejecttell receivers to do? - ?Why does DKIM need a public key published in DNS?