TXT lookup

Short answer

How do I check the TXT records for a domain?

You check the TXT records for a domain with a TXT lookup, which shows all text records on the name in DNS. Enter company.com for SPF and verifications, _dmarc.company.com for DMARC, or selector._domainkey.company.com for a DKIM key. The tool marks what each record is, for example SPF or verification for Microsoft 365.

Enter the domain or name, for example _dmarc.company.com.

Many TXT records

TXT is used for a lot: SPF, ownership verification and keys. Old verifications can safely be removed when the service is no longer used.

Where the records are

  • SPF is on the domain itself and starts with v=spf1.
  • DMARC is on _dmarc in front of the domain and starts with v=DMARC1.
  • DKIM is on selector._domainkey in front of the domain, for example selector1._domainkey.company.com.
  • Verifications are usually on the domain, like google-site-verification=... and MS=ms12345678.

Common mistakes

  • Two records that both start with v=spf1. SPF then fails. Merge them into one.
  • DMARC put on the domain itself instead of _dmarc. Receivers will not find it.
  • Quotes or the domain name pasted into the value itself.
  • Many old verifications that make the answer large. Remove what is not in use.

Questions and answers

Why is the record split into several strings?

A string in DNS can be at most 255 characters. Longer values are split, and joined again by the reader.

Can I delete old verification records?

Yes, when the service is no longer used. Some services, like Microsoft 365 and Google Workspace, may require the record to stay while the domain is connected to them.

Why can I not find the DKIM record with a plain lookup?

DKIM is not on the domain itself but on selector._domainkey. You need to know the selector. Use the DKIM selector finder if you do not know it.

How many TXT records can a domain have?

There is no fixed limit, but many long records make the DNS answer large. Large answers can require TCP and give slow or failed lookups at some receivers. Keep the number down.