Skip to content

TXT Record

A TXT record is a type of DNS record that allows arbitrary text to be associated with a domain, used for SPF, DKIM, DMARC, and domain ownership verification.

Definition

What it is

A TXT record (Text record) is a type of DNS record that allows arbitrary text to be associated with a domain [1]. Although originally a general-purpose field, it is now used primarily to publish email authentication policies (SPF, DKIM, DMARC) and to verify domain ownership with third-party services.

Why it matters

TXT records are essential for email deliverability. SPF, DKIM, and DMARC are published as TXT. They are also used to verify domains in Google Search Console, Microsoft 365, and other platforms. A misconfigured TXT can break email authentication.

How it works in practice

The TXT is defined in the DNS zone. For example, example.com. IN TXT "v=spf1 include:_spf.google.com ~all". A domain can have multiple TXT records at the same name, allowing SPF, DKIM, and domain verification to be combined [1]. Each TXT string is limited to 255 characters, but multiple strings can be used.

Connections

  • dns — the system containing the record
  • mx-record — the record that routes email
  • spf — the authorized-sender policy
  • dkim — the cryptographic email signature
  • dmarc — the alignment policy

Common mistakes

  • Exceeding the length. Each TXT string is limited to 255 characters; multiple strings must be used.
  • Misconfigured SPF. An incorrect SPF can cause legitimate email to be rejected.
  • Stale TXT records. Leaving old verification records can be a security risk.

Evidence

Etymology

Origin: acronym

Text record — text record

  • TXT (root): Text
Cognates

Morphology

Variants

Typographical errors

  • TXT record
  • txt-record

Plurals

  • TXT records

Semantic network

TXT Recorddns-recordDNSMX RecordSPFDKIMDMARC

● broader ● narrower ● related

Broader

  • dns-record

Related

Sources