Adding DMARC, SPF, and DKIM records in WordPress.com
If your domain is registered or hosted with WordPress.com, its DNS records live under the domain's settings. This guide covers the path, the fields, the root-domain rule, and the nameserver check to do first.
Before you start: check your nameservers
WordPress.com says its DNS records only work when your domain's nameservers point to WordPress.com. Look them up:
dig +short NS yourdomain.com
WordPress.com nameservers are ns1.wordpress.com through ns4.wordpress.com. If you see those, follow the steps below. If your nameservers point to another provider, edit your records there instead.
Step 1: Open DNS records
- Go to my.wordpress.com/domains and click the domain.
- Open Settings, then DNS records.
- Click Add record at the top right.
Step 2: Add the TXT record
Under What kind of record?, choose TXT. Put the host in the Name field, paste the value into the Text field, and click Add DNS record. TTL accepts 300 to 86400 seconds and defaults to 3600; the default is fine.
For the root domain, type @ or leave Name empty. Both do the same thing.
DMARC
Type: TXT Name: _dmarc Text: v=DMARC1; p=none; rua=mailto:you@yourdomain.com
Start at p=none, then move past p=none once your reports are clean.
SPF
Type: TXT Name: @ Text: v=spf1 include:_spf.yourprovider.com ~all
Keep a single v=spf1 record. If DNS records already lists one, edit it to add your sender instead of adding a second record.
DKIM
Type: TXT Name: selector._domainkey Text: v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG... (your full public key)
Paste the whole key as one value. The Text field takes up to 2048 characters.
MTA-STS pointer
Type: TXT Name: _mta-sts Text: v=STSv1; id=20261126000000
Pointer only. The policy file is served over HTTPS at mta-sts.yourdomain.com; you publish that file yourself, and the MTA-STS tab in trustyourinbox shows the exact file. TLS-RPT (_smtp._tls) is the same shape.
WordPress.com quirks that bite
- The domain is added for you. If you type the full name, such as
_dmarc.yourdomain.com, WordPress.com removes your domain from the end. So type only_dmarc. - Quotation marks make no difference. You can paste a value with or without surrounding quotes.
- Only on WordPress.com nameservers. If the domain uses another provider's nameservers, records added here are not the ones the internet reads.
- Allow time. WordPress.com says changes can take up to 72 hours to spread.
Step 3: Verify it published
dig +short TXT _dmarc.yourdomain.com dig +short TXT yourdomain.com | grep spf1 dig +short TXT selector._domainkey.yourdomain.com
Or paste the hostname into dns.google with type TXT. The record is live the moment the lookup returns it.
trustyourinbox picks it up by itself
If you copied the record from a trustyourinbox page, leave that page open. It watches public DNS and updates itself once the record is live. Otherwise, each protocol tab (DMARC, SPF, DKIM, MTA-STS) has a Scan now button. Click it once the lookup returns your record.
Fix DNS issues with one click. See the exact change before it goes live.
Click the fix. We email you the exact record, wait five minutes, write it to Cloudflare or AWS Route 53, and read it back from public DNS. On any other DNS host, you get the record and a link to the right page. Included on every plan.
Was this page helpful?
Keep reading.
- Run a free DMARC auditPaste your domain and read your published SPF, DKIM, and DMARC back in plain English.
- How we change DNS safelyThe safety layers behind an automated fix, and why a hand edit deserves the same care.
- DMARC record builderAnswer a few questions and get the exact _dmarc value to paste in.
- Editing DNS at any providerNot actually on WordPress.com? The universal walkthrough finds your real DNS host.