New: mailX now works inside ChatGPT. Try it →
Free TXT Lookup Tool

TXT Record Lookup: See Every DNS TXT Record on a Domain

Enter a domain to list all of its live TXT records with their TTL. Find your SPF record, check domain verification tokens and spot duplicate entries.

Results

  • Free TXT lookup
  • Live DNS results
  • No signup required

What does this TXT record lookup show?

A complete view of the text records published on a domain.

Every TXT record

All TXT records published on the domain you enter, each one listed separately, exactly as DNS returns it.

TTL of each record

How long resolvers cache each record, in seconds, so you know how long an old value can keep showing.

Your SPF record

The record that starts with v=spf1 and lists the services allowed to send email for your domain.

Verification tokens

Ownership proofs added for Google, Microsoft 365, Meta and other services, such as google-site-verification=.

Duplicate entries

Two SPF records, or old tokens left from a previous setup, show up side by side, so you can see what to merge or remove.

Live DNS answer

Each lookup runs a fresh DNS query when you click, so you see the currently published records.

How it works

How to check TXT records

Five steps to confirm a TXT record is published and correct.

01

Enter the domain

Type the domain that should carry the record, such as example.com. SPF records and most verification tokens live on the root domain.

02

Run the lookup

mailX queries DNS and lists every TXT record on that name, each with its TTL.

03

Find the record you need

Look for the prefix that identifies it: v=spf1 for SPF, google-site-verification= for Google, MS= for Microsoft 365.

04

Compare with your provider

Check the value character by character against what the provider gave you, and make sure there is only one SPF record.

05

Re-check after the TTL

If you just added or changed a record and do not see it yet, wait for the previous TTL to pass, then run the lookup again.

What is a TXT record?

A TXT record stores free text in DNS. It was designed for human-readable notes, but today it carries machine-readable policies and proofs that other services read automatically.

For email, three standards rely on TXT records. SPF lists the servers allowed to send for your domain and is published on the domain used in the Return-Path, usually the root domain. DKIM publishes the public key used to verify signatures, at selector._domainkey.example.com. DMARC tells receivers what to do with mail that fails authentication, at _dmarc.example.com.

Services such as Google Search Console, Microsoft 365 and Meta also use TXT records to prove you own a domain. A single TXT string is limited to 255 characters, so long values such as DKIM keys are split into several strings that receivers join back together. Many DNS hosts split long values for you, others ask you to enter the quoted strings yourself.

Typical TXT records on a domain:

example.com. 3600 IN TXT "v=spf1 include:_spf.google.com ~all"
example.com. 3600 IN TXT "google-site-verification=abc123..."

Where DMARC and DKIM live:

_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
google._domainkey.example.com. TXT "v=DKIM1; k=rsa; p=MIIB..."

Common TXT record problems

What a TXT lookup usually reveals when something is not working.

Two SPF records

A domain must have only one record starting with v=spf1. With two, SPF returns a permanent error and receivers may treat your mail as unauthenticated. Merge them into one.

Record on the wrong name

The record was published on www or on a doubled name such as example.com.example.com, so it does not show on the root domain. Check the name field in your DNS host.

Extra quotes or spaces

Some DNS hosts add quotes automatically. Pasting a value that already has quotes, or leading spaces, can corrupt the record.

Verification token removed

Some services check the token again over time. Removing a verification TXT record after setup can make the service lose its verification.

DMARC or DKIM not found

DMARC and DKIM are not on the root domain, so a root TXT lookup does not show them. Use the DMARC checker and DKIM checker instead.

Old value still cached

You updated the record but still see the previous value. Wait for the old TTL to expire, then look it up again.

How to look up TXT records from the command line

You can run the same check from a terminal. These commands list the TXT records of example.com. Replace it with your domain.

To read a DMARC record, query _dmarc.example.com. To read a DKIM key, query the selector name, such as google._domainkey.example.com.

macOS and Linux (dig):

dig TXT example.com +short

Windows (Command Prompt):

nslookup -type=TXT example.com

Windows (PowerShell):

Resolve-DnsName example.com -Type TXT

Reading your TXT lookup results

What each result means and what to do next.

TXT records found

Each record is listed with its TTL. Identify each one by its prefix, then validate the SPF record with the SPF checker.

No TXT records found

The domain has no TXT records on this name. If you expected an SPF record or a token, check where it was published in your DNS host.

Invalid domain

The input is not a valid domain name. Remove http://, paths and spaces, and enter only the domain, such as example.com.

Check the records that decide where your email lands

A TXT lookup shows what is published. The SPF, DKIM & DMARC check tells you if it actually works, in one free test.

TXT Record Lookup FAQ

TXT record basics

What is a TXT record lookup?
A TXT record lookup queries DNS for the text records published on a domain. It lists each record with its TTL, so you can find the SPF record, domain verification tokens and any duplicate or outdated entries.
What are TXT records used for?
TXT records hold policies and proofs that services read automatically. The most common are SPF records for email authentication, DKIM keys, DMARC policies, and verification tokens for Google, Microsoft 365, Meta and other platforms.
Can a domain have multiple TXT records?
Yes. A domain can have many TXT records, such as one SPF record and several verification tokens. The exception is SPF: a domain must have only one record that starts with v=spf1.

Checking TXT records

How do I check the TXT records of a domain?
Enter the domain in the mailX TXT record lookup and run it. You get every TXT record on that name with its TTL. From a terminal, run dig TXT example.com +short, or nslookup -type=TXT example.com on Windows.
Why is my TXT record not showing up?
The record may be on another name, such as www or a doubled name, it may not be saved yet, or an old answer may still be cached. Check the name field in your DNS host, then look it up again after the previous TTL has passed.
How long do TXT record changes take?
A new TXT record is usually visible within minutes. A changed record can show its old value until the previous TTL expires. Lower the TTL a day before a planned change if you need the switch to be fast.

TXT records and email

Why don't I see my DMARC or DKIM record?
DMARC lives at _dmarc.example.com and DKIM at selector._domainkey.example.com, not on the root domain. A lookup on example.com does not return them. Use the mailX DMARC checker and DKIM checker, which query the right names.
What happens if I have two SPF records?
SPF requires a single record per domain. With two records starting with v=spf1, the SPF check returns a permanent error and receivers may treat your mail as unauthenticated. Merge all your senders into one record.
Is it safe to delete old TXT records?
Remove a TXT record only when you know what uses it. Old SPF entries and tokens for services you no longer use can go, but some services re-check their verification token, so deleting it can break that service.