DNS · Klaviyo on Cloudflare

Set up Klaviyo DKIM and DNS records on Cloudflare

The exact name and value to enter at Cloudflare for each Klaviyo record, with the mistakes that stop it verifying.

  1. Get the records from Klaviyo. Settings, Domains. Klaviyo generates the records after you choose a subdomain and a routing type.
  2. Confirm Cloudflare hosts your DNS. Run dig +short NS yourdomain.com and expect: Two names ending in .ns.cloudflare.com. If you see something else, edits at Cloudflare have no effect.
  3. Open the DNS panel at Cloudflare. Dashboard, your domain, DNS, Records, Add record.
  4. Add each record. Enter only the part before your domain. Cloudflare appends the zone name. Set every one of these CNAMEs to DNS only (the grey cloud). A proxied CNAME answers with Cloudflare's own addresses instead of the target, and the lookup fails.
  5. Verify in Klaviyo. Klaviyo shows a Verifying status while it checks; DNS updates can take up to 48 hours.

What to type at Cloudflare

Placeholders such as account numbers and tokens are illustrative. Use the values Klaviyo shows you, with the name entered the way Cloudflare expects it.

TypeName fieldValue
CNAMEsend1.klaviyodns.com
CNAMEkm1._domainkeykm1._domainkey.1.klaviyodns.com
CNAMEkm2._domainkeykm2._domainkey.1.klaviyodns.com
TXT@klaviyo-site-verification=YOUR_PUBLIC_API_KEY

Where it goes wrong on Cloudflare

  • Enter only the part before your domain. Cloudflare appends the zone name.
  • Set every one of these CNAMEs to DNS only (the grey cloud). A proxied CNAME answers with Cloudflare's own addresses instead of the target, and the lookup fails.
  • TXT records cannot be proxied, so there is no cloud toggle on them.
  • If Cloudflare Email Routing is on, the domain already has an SPF record of Cloudflare's. Merge into it; do not add a second.

Specific to Klaviyo

  • Klaviyo offers two routing types. Static routing uses the CNAME and TXT records shown here. Dynamic routing delegates the subdomain with NS records pointing at ns1.klaviyo.com to ns4.klaviyo.com, and Klaviyo then manages everything under it.
  • The DKIM selectors depend on the kind of mail: km1 and km2 for marketing, kt1 and kt2 for transactional, ks1 and ks2 for service. Older static domains may use kl1 and kl2.
  • "send" is the most common subdomain for marketing mail. It must be a subdomain you are not already using.
  • Add the records in the DNS zone of the root domain. Do not create a separate zone for the subdomain.

Check it from the command line

Replace yourdomain.com and the placeholder names with your own. Each command should print the value you entered.

dig +short CNAME send.yourdomain.com
dig +short CNAME km1._domainkey.yourdomain.com
dig +short CNAME km2._domainkey.yourdomain.com

Klaviyo record shapes read from its documentation on 11 November 2026. Klaviyo on another host: GoDaddy · Namecheap · Amazon Route 53. Another platform on Cloudflare: SendGrid · Mailchimp · Amazon SES · Instantly.

Check the records after you save

Look up the live DNS. This tool does not spend credits.

Related