DNS security

What Is a TXT Record? (And Why It Matters)

By Kalenfy · Updated 27 June 2026 · 5 min read

What Is a TXT Record? (And Why It Matters)

TL;DR: A TXT record stores free-form text in your DNS. It's used for domain verification and, crucially, for your email securitySPF, DKIM and DMARC are all TXT records. Getting them right (and avoiding common formatting mistakes) is what keeps your domain from being spoofed. Scan your domain free to check yours.

What a TXT record is for

Originally TXT records held human notes, but today they're mostly machine-readable instructions. The big ones:

How to add one

In your DNS, create a record of type TXT, set the host/name (e.g. @ for the root, or _dmarc), and paste the value exactly as given. Save, then wait for propagation.

Common TXT mistakes

FAQ

Can I have multiple TXT records?

Yes — you can have many TXT records (DKIM, verification, DMARC on its subdomain). The exception is SPF: only one v=spf1 record.

Are TXT records public?

Yes — anyone can read them, which is fine; SPF/DKIM/DMARC are meant to be public.

Why isn't my new TXT record working?

Usually propagation (give it time) or a formatting error (re-paste the value).

Not sure your TXT-based email security is right? Scan your domain, then reply to your report — we're developers and we'll get your SPF, DKIM and DMARC records correct for you.

Check your own domain — free

Kalenfy runs a passive scan of your SPF, DKIM, DMARC, DNSSEC, CAA and more, then gives you a downloadable PDF report with exact fixes. You see your grade first — no email needed to view it.

Scan my site free

Related guides