DNSVerdict

TXT Record Lookup

Look up all TXT records of a domain, grouped into SPF, DMARC, DKIM, MTA-STS, BIMI and verification tokens, with common mistakes flagged. Free, in your browser.

Updated 2026-10-20

Your query is sent only to the resolver shown; this site keeps no logs.

Result

What is a TXT record lookup?

DNSVerdict's TXT Record Lookup is a free tool that reads every TXT record of a domain over DNS-over-HTTPS and sorts them into SPF, DMARC, DKIM, MTA-STS, TLS-RPT, BIMI, site-verification tokens and other text. It flags a second SPF record, quotation marks pasted into the value and mail records published at the wrong name. Everything runs in your browser; nothing is logged.

What this checks

A TXT record holds free text attached to a domain name. Today it carries mostly machine-readable data: the SPF policy, the DMARC policy at _dmarc, DKIM public keys at selector._domainkey, MTA-STS and TLS-RPT announcements, BIMI logos and the tokens that Google, Microsoft, Meta, Apple and many others ask you to publish to prove you control a domain. DNSVerdict's TXT lookup fetches the records of the name you enter, and for a plain domain also looks at the standard mail names _dmarc, _mta-sts, _smtp._tls and default._bimi, so one page shows the whole email-authentication picture.

How to read the result. The first block says how many records exist at the name. The overview lists the five mail records and whether each was found. Below it every group has its own table: the exact value and its TTL, the time resolvers may cache it. Verification tokens are labelled "looks like" because the tool recognises only the prefix, for example google-site-verification= or MS=; the label does not prove which service published it or that the service still uses it. Check with the service before deleting a token. Links under the tables open the SPF, DMARC or DKIM checker for the record found.

Strings and length. A TXT record is a list of character-strings of at most 255 octets each (RFC 1035 §3.3, §3.3.14). A long value, such as a 2048-bit DKIM key, is therefore stored as several strings, and receivers join them without adding spaces (RFC 7208 §3.3 for SPF, RFC 6376 §3.6.2.2 for DKIM). Resolvers present the same record differently: Cloudflare returns several quoted strings, Google one joined string. This tool always shows the joined value, which is what a receiver evaluates. The split points are not visible over DNS-over-HTTPS, so the tool cannot tell you where your DNS host cut the value.

The same check in a terminal. dig example.com TXT +short lists the records, dig _dmarc.example.com TXT +short shows the DMARC policy and dig selector._domainkey.example.com TXT +short a DKIM key. On Windows, nslookup -type=TXT example.com does the first step. Output with several quoted pieces on one line is one record split into strings, not several records.

Common mistakes. Publishing two SPF records instead of merging them into one; typing the quotation marks into your DNS host's value field, which stores them as part of the text and makes the record unrecognisable; putting the DMARC record on the bare domain instead of _dmarc; leaving long-dead SPF includes in place; and leaving old verification tokens in place for services you no longer use. How to set up SPF and how to set up DMARC show the correct names, and the record types guide explains TXT next to its neighbours. To validate what you found, use the SPF checker, the DMARC checker or the DKIM checker.

If it fails

FAQ

What is a TXT record used for?

A TXT record stores text for a domain name. Mostly it carries data for other systems: the SPF policy that lists your mail senders, the DMARC policy at _dmarc, DKIM public keys, MTA-STS and BIMI settings, and the verification tokens services such as Google or Microsoft ask for to prove that you control the domain. One name can hold many TXT records.

Why does my TXT record show up in several pieces?

A single character-string inside a TXT record is limited to 255 octets, so long values such as DKIM keys are stored as several strings. Receivers must join them without spaces (RFC 7208 §3.3, RFC 6376 §3.6.2.2). Some resolvers show the pieces, others show them already joined. This tool always shows the joined value that a receiver evaluates.

Can a domain have more than one TXT record?

Yes. Verification tokens, SPF, and other data each use their own TXT record at the same name, and there is no fixed limit besides the size of the DNS answer. The exception is SPF: a domain must publish exactly one record starting with v=spf1, and two make SPF fail with a permanent error (RFC 7208 §4.5).

Should I put quotation marks around a TXT value?

Only in a zone file. Most DNS control panels add the quotation marks themselves, so typing them stores them as part of the text and the record is not recognised as SPF or DMARC. If your panel shows the saved value with quotes inside, remove them and save again. This tool warns when a value contains literal quotation marks.

Guides

DNS record types explained: A, MX, TXT, CNAME and moreHow to set up a DMARC record, from p=none to p=rejectHow to create an SPF record (syntax and examples)Two SPF records on one domain: permerror and how to mergeTXT record 255-character limit: splitting and quoting

Related tools

DNS LookupSPF Record CheckerDMARC Record CheckerDKIM Record CheckerEmail Deliverability Score