Why unused domains need protecting
Most organizations own more domains than they use for email: older brand names, country versions, typo variations registered defensively, domains for a single website or campaign, and parked domains waiting for a future project.
None of these send mail, but anyone can claim to send mail from them. Without the right DNS records, a receiving server has no way to know that a message "from" [email protected] is fake. Spammers and phishers favor exactly these domains: they carry your name, and nobody is reading reports or complaints about them.
The fix costs nothing and takes a few minutes per domain: publish records that say "this domain sends no email" and "reject anything that claims otherwise". Unlike a domain that does send mail, there's no risk of blocking legitimate messages, so you can go straight to the strictest settings.
The records
For a domain example.net that sends no email and receives none either. These match the UK National Cyber Security Centre's guidance on protecting parked domains, with strict alignment added:
| Record | Name | Type | Value |
|---|---|---|---|
| SPF | @ | TXT | v=spf1 -all |
| DMARC | _dmarc | TXT | v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s |
| Null MX | @ | MX | 0 . |
SPF: v=spf1 -all
An SPF record with no mechanisms except -all says that no server is allowed to send mail for the domain. Every message claiming to be from it fails SPF. It costs no DNS lookups.
DMARC: p=reject
DMARC tells receivers what to do with mail that fails: with p=reject, refuse it. sp=reject applies the same to subdomains, and strict alignment (adkim=s; aspf=s) leaves no room for near matches. Because the domain sends nothing, there's no legitimate mail to break. The DMARC generator builds this record for you.
A report address (rua=) is optional. Adding one lets you see how much spoofing the domain attracts, which can be useful evidence, but it also means receiving reports for a domain you otherwise ignore.
Null MX: 0 .
A single MX record with preference 0 and a target of just ., defined in RFC 7505, says the domain accepts no email at all. Delivery attempts then fail immediately with a clear error, instead of senders trying the domain's website server. It must be the only MX record on the domain. The NCSC recommends it especially for domains that have an A record (a website) but no MX records.
Some DNS hosts don't accept . as an MX target. If yours doesn't, you can leave MX records out entirely, but the null MX is clearer.
Variations
A domain that receives email but never sends
For example, a domain that only forwards mail to another address, through a forwarding service. Keep its real MX records, and keep any SPF record the forwarding service asks you to add. Still publish DMARC with p=reject if the domain itself never sends.
A website domain that sends from a contact form
If the website sends mail as the domain, for example form notifications from [email protected], the domain does send email. Set up SPF and DKIM for whatever sends it, and follow How to set up DMARC instead. Alternatively, have the form send from a domain that's already set up for email.
Subdomains
DMARC covers subdomains automatically: a receiver that finds no DMARC record at mail.example.net falls back to the record at example.net, so sp=reject protects every subdomain. SPF has no such fallback: an SPF record applies only to the exact name it's published on. Since DMARC already rejects failing mail from subdomains, this is rarely a problem, but some organizations also publish a wildcard SPF record for completeness:
*.example.net. TXT "v=spf1 -all"
A wildcard only answers for names that have no records of their own, so it doesn't override TXT records you've published on specific subdomains.
DKIM
A domain that never sends mail has no DKIM keys to publish, and DMARC doesn't need any: without SPF or DKIM passing, everything fails DMARC and is rejected. The NCSC suggests an optional "null" DKIM record, a revoked key that matches every selector:
*._domainkey.example.net. TXT "v=DKIM1; p="
It says this isn't absolutely required, and it makes no difference to DMARC.
Check your work
After publishing, check each domain:
- The SPF checker should show
-alland 0 lookups. - The DMARC checker should show Policy: reject.
- The MX lookup should report a null MX.
If you manage many domains, this is a good moment to list them all, including registrations made years ago by other departments or agencies. Each one needs the same three records.
Frequently asked questions
Can these records break anything?
Only if the domain actually sends email somewhere you didn't know about, such as an old system, a website form or a forgotten mailbox. If you're unsure, publish DMARC with p=none and a report address for a few weeks first, and look for legitimate sources in the reports.
Do I need these records if the domain has no website either?
Yes. Email spoofing doesn't depend on the domain having a website or any other records. A registered domain with no DNS records at all can still be used in a From address.
Is -all or ~all better for a domain that doesn't send?
-all. There's nothing legitimate to protect, so the strictest setting is right.
What about a domain I'm about to sell or let expire?
Keep the protective records in place while you still own it. Once it expires, anyone can register it and publish their own records, which is a good reason to think carefully before letting a domain that was once used for email lapse.
Do these records help against look-alike domains?
Only for the domains you own and protect. A look-alike registered by someone else has its own records. Registering obvious variations of your name, and protecting each one like this, is the defense there.