What is a TXT Record?

DNS record that holds arbitrary text data, often used for verification and email security.

Detailed Explanation

TXT records store text information in DNS. While originally designed for human-readable text, they're now commonly used for machine-readable data like domain verification (for Google Workspace or Office 365), email authentication (SPF, DKIM, DMARC), and site verification. They can contain up to 255 characters per string, with multiple strings combined for longer values.

Examples

  • example.com TXT "v=spf1 include:_spf.google.com ~all"
  • Domain verification: "google-site-verification=xxx"
  • DMARC: "_dmarc.example.com TXT v=DMARC1; p=reject"