TXT Record Lookup |
A TXT record holds text that a domain publishes in DNS. Most are for email (SPF, DMARC, DKIM) or prove domain ownership to services like Google Search Console and Microsoft 365.
What Is a TXT Record?
A TXT record is free text attached to a name in DNS; services read it to check settings or ownership.
One name can hold many TXT records, and each record is one or more strings of up to 255 characters. Long values such as 2048-bit DKIM keys must be split into several strings; receivers join them back together with nothing in between. The result above shows the joined value, and the strings as published when there are several.
Records don't all live on the domain itself: DMARC is on _dmarc.example.com, DKIM keys on
selector._domainkey.example.com, MTA-STS on _mta-sts.example.com. This page
checks those names for you.
What Each TXT Record Means
The start of the value tells you what it's for: v=spf1 is SPF, google-site-verification= is Google.
| Value starts with | What it is | Where |
|---|---|---|
v=spf1 | SPF: the servers allowed to send email for the domain. Validate it | domain |
v=DMARC1 | DMARC: what receivers do with mail that fails SPF and DKIM | _dmarc |
v=DKIM1 | DKIM public key that checks email signatures | selector._domainkey |
v=STSv1 | MTA-STS: senders must use encrypted connections to your mail servers | _mta-sts |
v=TLSRPTv1 | TLS-RPT: where to send reports about failed encrypted deliveries | _smtp._tls |
v=BIMI1 | BIMI: brand logo shown next to your emails in some inboxes (check BIMI) | default._bimi |
google-site-verification= | Proves ownership to Google (Search Console, Google Workspace) | domain |
MS=ms… | Microsoft 365 domain verification | domain |
facebook-domain-verification= | Meta (Facebook, Instagram) domain verification | domain |
apple-domain-verification= | Apple (Business Manager, iCloud custom domain) | domain |
docusign= · stripe-verification= · atlassian-domain-verification= | Ownership checks for DocuSign, Stripe, Atlassian and many other services | domain |
The lookup labels more than 35 of these verification codes. A record without a label is custom text: ask whoever manages the domain before you delete it. Keep verification records after setup, since many services check them again later.
DMARC TXT Record
DMARC lives at _dmarc.example.com and tells receivers what to do when SPF and DKIM fail: p=none, quarantine or reject.
v=DMARC1; p=quarantine; rua=mailto:[email protected]
| Tag | Meaning |
|---|---|
p= | Policy: none (monitor only), quarantine (spam folder), reject (refuse) |
sp= · np= | Policy for subdomains, and for subdomains that don't exist (np, new in RFC 9989) |
rua= | Where daily aggregate reports go. An address on another domain only works if that domain authorizes yours; the lookup checks it |
ruf= | Failure reports; few receivers send them |
adkim= · aspf= | Alignment: r relaxed (subdomains match, default) or s strict |
t=y | Test mode (RFC 9989): receivers apply one step less, reject acts like quarantine and quarantine like none |
pct= · rf= · ri= | Historic since RFC 9989; receivers may ignore them |
DMARC became a standard in May 2026: RFC 9989 replaced RFC 7489. A valid old record stays valid. The main change for lookups is the DNS tree walk: when a name has no DMARC record, receivers look at parent names, at most 8 queries, and use the first record they find. This page does the same and tells you where the policy came from.
Gmail and Yahoo have required DMARC (at least p=none) from senders of more than 5,000
messages a day since February 2024, and Outlook.com since May 2025. p=none meets that
rule but stops nothing: move to quarantine, then reject, once the reports show
that all your real senders pass.
DKIM TXT Record
DKIM keys live at selector._domainkey.example.com. You need the selector, which is in the s= tag of an email's DKIM-Signature header.
DNS can't list the names under _domainkey, so no tool can find every DKIM key of a domain.
Open the headers of a message from the domain (the email header analyzer
shows them), find DKIM-Signature: … d=example.com; s=google;, and enter the
s= value above. Or try the common selectors:
| Service | Usual selectors |
|---|---|
| Google Workspace | google (the default prefix in the Admin console) |
| Microsoft 365 | selector1, selector2 (CNAMEs to Microsoft's keys) |
| Mailchimp | k1, k2, k3 |
| SendGrid | s1, s2 |
| Proton Mail · Fastmail | protonmail, protonmail2, protonmail3 · fm1, fm2, fm3 |
The check shows the key type and length. Use 2048-bit RSA keys: 1024-bit keys still
work but are weak, and receivers reject keys under 1024 bits (RFC 8301). An empty p= means the
key was revoked on purpose. Ed25519 keys (RFC 8463) are shorter but not checked by every receiver, so
publish them next to an RSA key, not instead of it.
How to Add a TXT Record for Domain Verification
Copy the value from the service, add a TXT record at the root (@) in your DNS provider, then check it here.
- Copy the full value from the service (for example
google-site-verification=…). - In your DNS provider, add a record: type TXT, host
@(or leave it empty), value = what you copied. Keep the other TXT records. - Save, then look up the domain above with Authoritative DNS: it shows what your provider publishes, without cache.
- Click verify in the service. If it fails, wait for the TTL shown above (often 1 hour) and try again.
| DNS provider | Where to add the TXT record |
|---|---|
| GoDaddy | Domain Portfolio > select the domain > DNS > Add New Record > type TXT. Name @, Value, then Save |
| Cloudflare | Select the domain > DNS > Records > Add record > type TXT. Name @, Content, then Save |
| Namecheap | Domain List > Manage > Advanced DNS > Add New Record > TXT Record. Host @, Value, then Save all changes |
| Squarespace (and former Google Domains) | Domains > select the domain > DNS > Custom records > Add record > type TXT. Name (Host) @, Data |
| Amazon Route 53 | Hosted zones > select the zone > Create record > type TXT. Leave the name empty for the root; put the value in double quotes |
Your domain's DNS may be hosted somewhere else than where you bought it: the NS lookup shows which company runs it, and that is where the record goes.
Common mistakes: the host field set to the full domain (the panel adds it, giving example.com.example.com), quotes added around the value when the panel doesn't expect them (check your provider's help: Route 53 requires them, Cloudflare adds them itself), and a second SPF record created instead of editing the first.
Do it yourself
How to Check TXT Records with nslookup or dig
nslookup -type=txt example.com or dig example.com txt +short.
Windows Command Prompt
nslookup -type=txt example.com
nslookup -type=txt _dmarc.example.com
nslookup -type=txt google._domainkey.example.com
Windows PowerShell
Resolve-DnsName example.com -Type TXT
Resolve-DnsName _dmarc.example.com -Type TXT -Server 1.1.1.1
Mac / Linux dig
dig +short example.com txt
dig +short _dmarc.example.com txt
dig +short selector1._domainkey.example.com txt
dig prints each string in its own quotes: a DKIM key often appears as two or more quoted parts, which is normal. Add @1.1.1.1 to ask a specific resolver.
How This TXT Lookup Works
| Query | Live DNS query (no cache) to the server you pick: Google, Cloudflare, Quad9, OpenDNS, DNS4EU, AdGuard, Control D, Yandex, or the domain's own authoritative servers; or all of them with "Compare" |
| Values | Shown exactly as receivers read them: strings joined with nothing in between, and the separate strings listed when there are several |
| Labels | From the start of each value (SPF, DMARC, DKIM, MTA-STS, BIMI and 35+ verification codes); no match, no label |
| DMARC | Queried automatically with the RFC 9989 tree walk (max 8 queries); external report addresses checked (RFC 9990) |
| DKIM | Only with a selector, or the list of common selectors on request: DKIM keys can't be listed from DNS |
| Also checked | _mta-sts, _smtp._tls (TLS-RPT) and default._bimi. The MTA-STS policy file itself is not downloaded |
| Runs on | Our server in the US (AWS, N. Virginia) |
| What we keep | Lookups are not saved. Our server and Cloudflare keep standard access logs. |
Frequently Asked Questions
How do I look up TXT records?
nslookup -type=txt example.com or dig example.com txt +short.What is a TXT record used for?
v=spf1 is SPF, google-site-verification= is Google.Why doesn't my new TXT record show up?
example.com creates example.com.example.com. To watch the new value reach resolvers around the world, use the DNS propagation checker.How do I find a domain's DKIM record?
s= value in the DKIM-Signature header of an email from the domain. Enter it in the DKIM selector field after a lookup; the key is at selector._domainkey.domain. If you don't know it, click "Try common selectors": we check the defaults of Google Workspace, Microsoft 365, Mailchimp and other services.Where is the DMARC record?
_dmarc. plus the domain, for example _dmarc.example.com. A subdomain without its own record uses its parent's policy. This page finds and decodes it automatically.Can a domain have several TXT records?
v=spf1 on the domain, v=DMARC1 on _dmarc); two of either and receivers ignore them.Next steps