Skip to content

TXT Record

Medium — good to knowNetworking

ELI5 — The Vibe Check

A TXT record is a free-form DNS record where you can store any text. It started as a way to add notes, but now it's used to prove you own a domain and configure email security. Setting up Google Workspace or Cloudflare? You'll paste a TXT record.

Real Talk

TXT (Text) DNS records store arbitrary text strings associated with a domain. Common uses include domain ownership verification (for services like Google Search Console), SPF records (email spoofing prevention), DKIM keys, and DMARC policies.

Show Me The Code

# Common TXT record examples

# Domain verification
example.com. IN TXT "google-site-verification=abc123"

# SPF record (email security)
example.com. IN TXT "v=spf1 include:_spf.google.com ~all"

# DMARC policy
_dmarc.example.com. IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc@example.com"

When You'll Hear This

"Add that TXT record to verify domain ownership." / "The SPF TXT record is missing — that's why emails are going to spam."

Made with passive-aggressive love by manoga.digital. Powered by Claude.