Skip to content
← All DNS record types
TXT

Text Record

TXT holds arbitrary text. In practice used for SPF, DKIM, DMARC, and domain verification.

Syntax

name TTL IN TXT "text_value"

Example

example.com.    300    IN    TXT    "v=spf1 include:_spf.google.com ~all"

When to use

When: configuring email security (SPF/DKIM/DMARC), domain verification in Google/Microsoft/social platforms.

Common mistakes

Common mistakes: SPF longer than 255 chars, SPF DNS-lookup count > 10. Quoting issues.

Check TXT records for any domain:

Open DNS Lookup →

Related record types