TXT Records

TXT records allow administrators to add arbitrary text to a domain's DNS configuration. They are commonly used for email verification and SPF (Sender Policy Framework).

Common Uses for TXT Records

SPF (Sender Policy Framework)

v=spf1 include:_spf.google.com ~all

SPF records specify which mail servers are authorized to send email on behalf of your domain. This helps prevent email spoofing.

DKIM (DomainKeys Identified Mail)

v=DKIM1; k=rsa; p=MIGfMA0GCSqGS...

DKIM adds a cryptographic signature to emails to verify they weren't modified in transit.

DMARC

v=DMARC1; p=quarantine; rua=mailto:[email protected]

DMARC builds on SPF and DKIM to provide email authentication policy and reporting.

Domain Verification

Many services (Google, Microsoft, etc.) use TXT records to verify domain ownership.

Best Practices

  • Keep SPF records simple — include only necessary servers
  • Don't exceed 255 characters per string; use semicolons to add more
  • Monitor DMARC reports to catch issues
  • Test TXT records with our TXT Lookup tool
Try it on your domain

See the theory in practice — run a TXT Lookup for your own domain.