Glossary / DNS records
TXT record
A TXT record is a DNS record that stores free-form text on a domain name. It began as a place for human notes, and now carries machine-read data: SPF sender rules, DKIM keys, DMARC policies and the verification tokens services use to confirm you control a domain.
Copy the syntax
Site verification record
example.com. 3600 IN TXT "verification-token=abc123"Paste the exact token the service gives you.
ACME challenge for a certificate
_acme-challenge.example.com. 300 IN TXT "token-from-your-client"Used by DNS-validated and wildcard certificates.
Have a name in mind?
.com $24.99 first year, renews at $24.99/yr. Other endings: not on sale yet.
In plain English
A TXT record is a note in your DNS that machines read, mostly for email checks and proving you own the domain.
What to do
- Paste verification tokens exactly as the service gives them.
- Keep only one SPF record among your TXT records.
- Remove tokens for services you no longer use.
- Defined in
- RFC 1035, section 3.3.14Source: RFC 1035
- Type code
- 16Source: IANA
- String length
- Up to 255 octets per string; long values split into severalSource: RFC 1035
- Used by SPF
- RFC 7208Source: RFC 7208
What is a TXT record used for?
Mostly email authentication and ownership checks. SPF lives in a TXT record on the bare domain, DKIM keys sit at selector._domainkey names, and DMARC policies at _dmarc. Search consoles, email platforms and certificate authorities ask for TXT tokens to confirm you control the domain.
Can a domain have several TXT records?
Yes. A name can hold many TXT records, one per purpose. The exception is SPF: keep exactly one v=spf1 record, or SPF checks fail.
Why is my long TXT record split?
A single string in a TXT record can hold 255 octets. Longer values, such as 2048-bit DKIM keys, are stored as several quoted strings in one record, which readers join back together. Most DNS editors split them for you.
TXT record examples
| Name | Value | Purpose |
|---|---|---|
| @ | v=spf1 include:_spf.example.net ~all | SPF sender list |
| s1._domainkey | v=DKIM1; k=rsa; p=MIIBIjAN… | DKIM public key |
| _dmarc | v=DMARC1; p=none; rua=mailto:dmarc@example.com | DMARC policy |
| _acme-challenge | token-from-your-client | Certificate validation |
Check it
dig example.com TXT +shortLists every TXT value on the name.
Questions about TXT record
How long does a TXT record take to update?
A new TXT name usually resolves within minutes. Changing an existing value waits for the old record’s TTL. Verification services may also cache their own result, so retry after a short wait.
Do I need quotes around TXT values?
In zone files, yes, especially when the value has spaces. Most web DNS editors add the quotes for you, so paste the value without them unless the editor says otherwise.
Can I delete old verification TXT records?
Some services check the token again later and lose verification if it disappears. Keep tokens for services you still use and remove ones for services you have left.
What is an acme-challenge TXT record?
It is a temporary TXT record at _acme-challenge.yourdomain that a certificate authority reads to confirm you control the domain before issuing a certificate. ACME clients can create and remove it automatically.
Put it to work on your own domain
See the first-year and renewal price before you pay.