Adding DMARC, SPF, and DKIM records in ClouDNS
ClouDNS keeps every record for a domain in one zone under DNS hosting. This guide covers where that zone is, which field takes the value, what ClouDNS does with a long DKIM key, and the nameserver check to do first.
Before you start: check your nameservers
Records you add in ClouDNS only take effect if your domain uses ClouDNS nameservers. Look them up:
dig +short NS yourdomain.com
ClouDNS nameservers end in cloudns.net (for example dns51.cloudns.net, ns1.cloudns.net, or pns31.cloudns.net), and some end in cloudns.com or cloudns.uk. ClouDNS does not publish one fixed list: the right servers for your zone are the ones shown on your ClouDNS dashboard, and they depend on your plan (the free plan uses unicast servers, premium plans add Anycast). If your nameservers point to another provider, edit your records there instead.
Step 1: Open the zone in DNS hosting
- Log in to ClouDNS and go to the Dashboard (cloudns.net/dashboard).
- Open DNS hosting. The table lists every zone in your account.
- Click the zone for your domain.
- Click Add new record.
Step 2: Add the TXT record
Set Type to TXT. Put the host in the Host field and paste the value into the field labeled Points to. For a record on the root domain, leave Host empty, as ClouDNS's own TXT example does. For TTL, ClouDNS's example uses 1 Hour.
DMARC
Type: TXT Host: _dmarc Points to: v=DMARC1; p=none; rua=mailto:you@yourdomain.com TTL: 1 Hour
Start at p=none, then move past p=none once your reports are clean.
SPF
Type: TXT Host: (leave empty for the root domain) Points to: v=spf1 include:_spf.yourprovider.com ~all TTL: 1 Hour
Keep a single v=spf1 record. If the zone already has one, edit it to add your sender instead of adding a second record.
DKIM
Type: TXT Host: selector._domainkey Points to: v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG... (your full public key) TTL: 1 Hour
Paste the whole key into Points to as one value, even when it is long. A single TXT string is limited to 255 characters, so a 2048-bit DKIM key cannot be entered as one string. ClouDNS handles that for you: a value over the limit is broken into multiple strings inside the same record. Do not split the key yourself, and do not create a second record for the rest of it.
When you look the record up later, dig prints the key as several quoted pieces in one answer. That is normal. Mail servers join the pieces back together before they check a signature.
MTA-STS pointer
Type: TXT Host: _mta-sts Points to: v=STSv1; id=20261126000000 TTL: 1 Hour
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.
ClouDNS quirks that bite
- The value goes in Points to. ClouDNS labels the value field Points to, and the name field Host. Paste the record text into Points to.
- Long keys look split. A DKIM key over 255 characters is stored as several strings in one record. That is how DNS carries long text, not a broken record.
- Use the nameservers on your dashboard. ClouDNS tells you to use the servers shown on your dashboard. If your domain lists other nameservers, your ClouDNS zone is not the one the internet reads.
- Allow time. ClouDNS says to allow up to 24 hours for a change 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 ClouDNS? The universal walkthrough finds your real DNS host.