Foxcolab

Glossary

DNS TXT record

Definition

TXT record: A DNS record type (type 16, RFC 1035) that holds one or more text strings. Its meaning depends on the name it sits at, so it carries SPF and DMARC policies, DKIM public keys and domain-verification tokens.

Also known asDNS TXT recordtext recordTXT resource record

In short

A TXT record is a DNS record type, defined in RFC 1035, that holds text strings. Its meaning depends on the name it sits at, which is why SPF policies, DKIM public keys, DMARC policies and domain-verification tokens all use it. Several TXT records can share a name, but a domain must publish only one SPF record, and each string holds at most 255 characters, so long values are split into pieces that receivers join.

Key takeaways

  • TXT records hold text whose meaning depends on the name they're published at.
  • SPF sits at the domain itself, DKIM keys at selector._domainkey and DMARC at _dmarc.
  • Many TXT records can share one name. Two SPF records at the same name break SPF.
  • Each string is limited to 255 characters, so long DKIM keys are split into several strings in one record.
  • Verification tokens prove domain control to a service and can sit next to your other TXT records.

Last reviewed 30 November 2026 by Foxcolab Team

A TXT record is a DNS record that holds text. RFC 1035, the 1987 specification that defined it as type 16, says "TXT RRs are used to hold descriptive text. The semantics of the text depends on the domain where it is found." That openness made TXT the place later standards put their data: email authentication policies, public keys and the tokens services use to confirm you control a domain.

What TXT records hold#

Text
example.com.                 IN TXT "v=spf1 include:_spf.mail.example.net ~all"
example.com.                 IN TXT "site-verification=4f9c2a7e1b"
sel1._domainkey.example.com. IN TXT "v=DKIM1; p=MIIBIjANBgkq...IDAQAB"
_dmarc.example.com.          IN TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"
RecordPublished atPurpose
SPFThe domain itselfLists servers allowed to send mail for the domain
Verification tokenUsually the domain itselfProves to a service that you control the domain
DKIM<selector>._domainkeyPublishes the public key that checks mail signatures
DMARC_dmarcSets the policy for mail that fails SPF and DKIM

The name tells software how to read the text. A DMARC checker looks only at _dmarc, and an SPF checker, under RFC 7208, discards every record at the domain that doesn't begin with exactly v=spf1.

Two rules people trip over#

Several TXT records can share a name. The SPF line and the verification token above both live at example.com, and that's fine. Two SPF records are not: RFC 7208 says a domain "MUST NOT have multiple records that would cause an authorization check to select more than one record," and receivers treat two v=spf1 records as an error.

One string holds at most 255 characters. RFC 1035 caps each string at 256 bytes including its length byte. Longer values, such as a long DKIM key, are split into several quoted strings in one record, and receivers join them with nothing in between (RFC 7208, section 3.3):

Text
sel1._domainkey.example.com. IN TXT ( "v=DKIM1; p=MIIBIjANBgkqhkiG9w0BAQEF..."
                                      "...rest of the key...IDAQAB" )

Many DNS dashboards split long values for you. Others expect you to paste the quoted pieces yourself.

In Foxcolab#

When you add a custom domain, the Domains tab lists four TXT records and one MX record. The TXT records are Domain Ownership (foxcolab-verify= plus a token unique to your domain) and SPF Policy, both at @, DKIM Signature at foxcolab._domainkey, and DMARC Policy at _dmarc. The ownership record can sit next to TXT records you already have, because Foxcolab looks for its own token among them. If you already publish SPF, add Foxcolab's include: to that record instead of creating a second one. Then select Verify DNS.

Custom domains start on the Pro plan. See plans.

Keep exploring

All terms

Foxcolab

Private work tools, without the ads.

Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.

Jump to