Email DNS Generator
Generate the full set of email authentication records — SPF, DKIM and DMARC.
SPF record
Authorises the servers allowed to send mail as this domain.
~all — softfail while the domain is still being cut over.
DMARC record
Tells receivers what to do with mail that fails SPF and DKIM, and where to send the reports.
Records to add
Everything generated above, in the shape a DNS panel asks for it.
No records yet
Generate an SPF or DMARC record and it will be listed here, ready to paste.
| Type | Host | Value | TTL | Copy |
|---|
Host @ means the domain itself — some panels want the full domain name instead, and some
append it automatically. TTL 3600 is a sane default; use the zone's own if it already has one.
About SPF and DMARC
SPF (Sender Policy Framework)
SPF helps prevent email spoofing by specifying which mail servers are authorised to send email on behalf of your domain.
- include: Include another domain's SPF record
- a: Authorise the domain's A record
- mx: Authorise the domain's MX records
- ip4: Authorise a specific IPv4 address or range
- ip6: Authorise a specific IPv6 address or range
- all: Default action for non-matching senders
Best practices
- Use
-all(fail) for a strict policy,~all(softfail) for a gradual rollout - Keep DNS lookups under 10 — include, a, mx, ptr and exists each count as one
- Only list IP addresses of actual mail servers, never DNS resolvers
- Test with
~allbefore switching to-all - One SPF record per domain — never two TXT records starting with
v=spf1
DMARC (Domain-based Message Authentication)
DMARC builds on SPF and DKIM to give domain owners control over what happens to email that fails authentication.
- none: Monitor mode — no action taken, reports only
- quarantine: Treat suspicious email as spam
- reject: Reject unauthenticated email entirely
- rua: Aggregate reports (daily summaries)
- ruf: Forensic reports (individual failures)
p=none and read a fortnight of aggregate reports before enforcing anything. Going straight to p=reject on a domain you have not measured is how a client stops receiving their own invoices.