Quick facts
| Record type | TXT, type 16 |
| Defined in | RFC 1035 |
| What it holds | One or more character strings, each up to 255 bytes |
| Common owners | @, _dmarc, selector._domainkey, _acme-challenge |
| Typical TTL | 120 seconds on Bridge DNS (Auto) |
| Bridge DNS support | Yes, editable |
What is a TXT record used for?
Almost every DNS TXT entry you'll publish falls into one of four groups:
- SPF lists the servers allowed to send mail for the domain (RFC 7208).
- DKIM publishes a public key under
selector._domainkey, so receivers can check message signatures. - DMARC lives at
_dmarcand tells receivers what to do when SPF and DKIM fail. - Verification proves ownership to search consoles, email platforms and certificate authorities. The ACME DNS-01 challenge uses a TXT value at
_acme-challenge. For proxied names, Bridge handles that challenge for you.
Syntax and examples
@ 120 IN TXT "v=spf1 include:_spf.example.net -all"
_dmarc 120 IN TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"
sel1._domainkey 120 IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkq..." "...IDAQAB"
@ 120 IN TXT "site-verification=4f9a1c2e7b"
The first line is a typical SPF TXT record example: mail from example.com may only come from the servers listed by _spf.example.net, and everything else fails. The value sits in quotes. One quoted character string holds up to 255 bytes. Longer values, like a 2048-bit DKIM key, are split into several quoted strings on the same line. Receivers glue them back together without spaces.
How to add a TXT entry in Bridge DNS
To add a TXT record in Bridge DNS:
- Choose Add record and pick type TXT.
- Enter the name exactly as the provider gives it:
@,_dmarcorsel1._domainkey. Don't append the domain. The editor adds it for you. - Enter the value supplied by the service and check the published result with
dig. - Keep TTL on Auto (120 seconds) and save.
The value is served by our nameservers within seconds. Email platforms often re-check on a timer, so their dashboard may take longer to turn green than DNS does.
Multiple TXT values on one name
A single name can carry many TXT entries, and that's normal. The apex often holds SPF plus three or four verification tokens. Each entry is independent, and services look for the one that starts with their prefix.
There's one hard exception: only one SPF policy per name. Two strings starting with v=spf1 make SPF return a permerror (RFC 7208), and many receivers then treat your mail as unauthenticated. When a new sender asks you to "add an SPF record," merge its include: into your existing policy instead. Watch the limit while you merge: SPF allows at most 10 DNS lookups per check.
How to check TXT records
Ask a Bridge nameserver first, then a public resolver:
dig @ns1.bb-ns.com example.com TXT +short
"v=spf1 include:_spf.example.net -all"
"site-verification=4f9a1c2e7b"
dig _dmarc.example.com TXT +short
To check TXT records from Windows, run nslookup -type=TXT example.com. If the dig output shows the DKIM key in two quoted pieces, that's fine. It's how long values are stored.
Common mistakes
- A doubled domain in the name. Typing
_dmarc.example.cominto a field that already appends the domain creates_dmarc.example.com.example.com. Nothing finds it. - Two SPF policies. See above. Merge them into one.
- Smart quotes from a document. Curly quotes pasted from a word processor break the value. Paste from plain text.
- A missing DKIM selector. The selector in the name must match the one your mail provider signs with.
- Old verification tokens piling up. Harmless one by one, but a long list makes the apex answer bigger. Remove tokens for services you no longer use.
Limits and edge cases
- No TXT next to a CNAME. A name with a CNAME can't hold other data. Some mail providers hand you a DKIM CNAME instead of a TXT key; use whichever they give, not both.
- Large answers. A name stuffed with long TXT values can exceed the classic 512-byte UDP size, and resolvers then retry over TCP. It still works, just slower and with more ways to fail.
- Wildcards. A
*TXT entry answers for every undefined name, including typos. Avoid it unless a service explicitly asks for one.
TXT vs dedicated record types
An old SPF record type (99) once existed. RFC 7208 deprecated it, so SPF is published as TXT only. DKIM and DMARC never had their own types. Setup steps for each policy have their own guides:
- SPF setup
- DKIM setup
- DMARC setup
How the four email records work together is explained in DNS records for email. Other types are listed in DNS record types and setup.
TXT questions
What is a TXT record in DNS?
A TXT record is a DNS record type that holds text strings on a name. Services read it to find email policies (SPF, DKIM, DMARC) and domain verification tokens. It's type 16, defined in RFC 1035.
Can I have more than one TXT entry on a domain?
Yes. A name can hold many TXT values, such as SPF plus several verification tokens. Only SPF is limited to a single policy per name.
How long can a TXT value be?
Each quoted string holds up to 255 bytes, and one entry can contain several strings. Very large answers get close to DNS size limits, so keep values to what services need.
Why isn't my TXT verification working?
Usually the name is wrong, the domain was appended twice, or the service hasn't re-checked yet. Query the exact name with dig and compare it character by character.
Do TXT values need quotes?
Zone-file examples use quotes to delimit TXT strings. In a DNS editor, follow the field's format and check the result with dig.