Cloudflare

Adding a DKIM Record in Cloudflare DNS

DKIM records in Cloudflare go at [selector]._domainkey.yourdomain.com. The most common mistake is using the wrong Name field — the subdomain part only, not the full hostname.

Exact Cloudflare format

DNS → Records → Add record Type: TXT Name: google._domainkey (NOT google._domainkey.yourdomain.com — Cloudflare adds your domain automatically) Content: "v=DKIM1; k=rsa; p=MIIBIjAN..." TTL: Auto

Step by step

Step 1 Get your DKIM record from your email provider dashboard
Step 2 Cloudflare DNS → Add record → Type: TXT
Step 3 Name: [selector]._domainkey (e.g. google._domainkey) — do NOT include your domain name in the Name
Step 4 Content: paste the full v=DKIM1 value
Step 5 Save → wait 5 minutes
Step 6 Run DNS Preflight to confirm DKIM pass

FAQ

What do I put in the Name field for DKIM?

Just the subdomain part — google._domainkey (not the full hostname). Cloudflare adds your domain automatically.

My DKIM record is very long — will Cloudflare truncate it?

Cloudflare handles long TXT records correctly. Paste the full value — it won't be truncated.

How do I know which selector to use?

Your email provider tells you. Google uses google, SendGrid uses s1 and s2, M365 uses selector1 and selector2.

DKIM shows as pass in DNS Preflight but my provider says pending — why?

Providers cache verification. If DNS Preflight shows the record, propagation is done — your provider just needs time to check.

Can I add multiple DKIM records for different providers?

Yes — each uses a different selector so they don't conflict. Add as many as you need.