Cloudflare

Adding an SPF Record in Cloudflare DNS

Adding an SPF record in Cloudflare takes under 2 minutes. The key rule: never create two TXT records starting with v=spf1. Merge everything into one.

Exact fields in Cloudflare

DNS → Records → Add record Type: TXT Name: @ Content: v=spf1 include:_spf.google.com ~all TTL: Auto Proxy: DNS only (grey cloud) — TXT records cannot be proxied

The proxy warning

TXT records in Cloudflare are always DNS-only — the proxy toggle doesn’t apply. But MX records must also be DNS-only (grey). Never proxy MX or mail-related A records.

Verify SPF after publish

Open DNS Preflight →

Step by step

Step 1 Cloudflare Dashboard → select your domain → DNS → Records.
Step 2 Click Add record.
Step 3 Type: TXT, Name: @
Step 4 Content: paste your full SPF record (v=spf1 ... ~all)
Step 5 TTL: Auto, Save
Step 6 Run DNS Preflight to verify SPF and lookup count

FAQ

How do I add a TXT record in Cloudflare?

DNS → Records → Add record → Type: TXT → Name: @ → paste your SPF value → Save.

Should I proxy my SPF TXT record?

TXT records can't be proxied — Cloudflare ignores the proxy toggle for TXT. Leave it grey.

I already have an SPF record — do I add another?

No — merge both into one. Only one TXT record can start with v=spf1.

How long until Cloudflare SPF changes propagate?

Usually minutes — Cloudflare's DNS is fast. Run DNS Preflight to confirm.

The Name field says @ — is that right?

Yes. @ means your root domain. SPF always goes at the root.