Skip to content
Live $100 credit at signup, up to $300 total Offer ends December 31, 2026 Get started →

TXT Records

A TXT record stores free text at a name. The common uses are email authentication (SPF, DKIM, DMARC) and proving domain ownership to a third-party service.

FieldExampleNotes
Name@ or a labelVerification records often use a label like _dmarc.
TypeTXT
Content"v=spf1 -all"The text, wrapped in double quotes.
TTL14400Seconds.

Console (zone-file view):

@ TXT "v=spf1 mx -all" 14400
_dmarc TXT "v=DMARC1; p=reject; rua=mailto:dmarc@example.com" 14400

CLI (wrap the content so the quotes reach the record):

zcp dns record-create --domain examplecom --name @ --type TXT --content '"v=spf1 -all"'

API: POST with { "name": "@", "type": "TXT", "content": "\"v=spf1 -all\"", "ttl": 14400 }.

dig TXT example.com +short
# "v=spf1 -all"
  • SPF: "v=spf1 mx -all" lists the hosts allowed to send mail for your domain.
  • DKIM: a long public key at a selector name like selector._domainkey.
  • DMARC: a policy at _dmarc, for example "v=DMARC1; p=reject".
  • Domain verification: a value a provider gives you to prove you control the domain.
  • Quoting. The value is a quoted string. On the CLI, wrap it so the shell passes the quotes through, for example '"v=spf1 -all"'.
  • One string per record. For a long DKIM key, keep it as a single record. The platform stores it as given.
  • Multiple TXT records. A resolver returns all TXT records sharing a name.

See also: MX records, Worked examples, Record types