A TXT record lookup helps you check the text records connected to any domain. These records are part of your DNS settings and are commonly used for domain verification, email authentication,
SPF, DKIM, DMARC, Google Search Console verification, Microsoft 365 verification, and many other security or ownership checks.
When you add a TXT record to your domain, you need to confirm whether it is live, correct, and visible across DNS servers. This is where a DNS TXT lookup becomes important. Instead of guessing whether your record is working, you can use a TXT record checker to instantly see the TXT records published for your domain.
For example, if Google gives you a google-site-verification TXT record, your domain will not verify until that record appears correctly in DNS. The same applies to SPF, DKIM, and DMARC records. If they are missing, incorrect, or duplicated, your emails may fail authentication, land in spam, or fail verification.
Before changing DNS settings, you can check your current records using the LeadCanal DNS Lookup tool. LeadCanal lets you check DNS records such as A, AAAA, CAA, CNAME, MX, NS, PTR, SOA, SRV, TXT and more, with DNS server options including Google, Cloudflare, OpenDNS, Quad9, Yandex, and Global lookup.

What Is a TXT Record?
A TXT record is a DNS record that stores text information for a domain. In the early days, TXT records were used mostly for simple notes. Today, they are mainly used by services and platforms to verify ownership
protect email, and confirm domain settings.
A TXT record can contain values like:
google-site-verification=abc123examplecode or:
v=spf1 include:_spf.google.com ~all or:
v=DMARC1; p=none; rua=mailto:dmarc@example.com These values may look technical, but they tell services important information about your domain. Google may use a TXT record to confirm that you own the domain.
Email providers use TXT records to check whether your server is allowed to send emails. Security tools use TXT records to protect your domain from spoofing and phishing.
Why TXT Record Lookup Matters
A TXT record lookup online helps you confirm whether your DNS record is live and readable. This is important because DNS changes do not always appear instantly everywhere.
Sometimes a record is added correctly but still takes time to propagate. Other times, the record is added in the wrong place, with the wrong host value, or under the wrong DNS provider.
A TXT lookup is useful when you want to:
- Check TXT record for a domain
- Verify Google TXT record
- Confirm SPF record
- Check DKIM TXT record
- Check DMARC TXT record
- Troubleshoot email deliverability
- Fix domain verification problems
- Find duplicate TXT records
Many users search for terms like txt record lookup google, Google TXT record lookup, check DNS TXT record, and TXT record lookup command line because they are facing a real setup or verification issue.
A good TXT lookup process gives them the answer quickly.
How to Perform a TXT Record Lookup Step by Step
Follow these steps to check TXT records for any domain.

Step 1, Open a TXT Record Lookup Tool
Go to the LeadCanal DNS Lookup tool. This tool allows you to check all DNS records for a domain, including TXT records. You can also view other DNS records such as MX, SPF related records, NS, CNAME, and more.
Step 2, Enter Your Domain Name
| Instruction | Example |
|---|---|
Type your domain without https:// or www | example.com |
| Correct example | example.com |
| Incorrect example | https://www.example.com |
| If you want to check a subdomain, enter the exact subdomain | mail.example.com |
Step 3, Select TXT or All Records
If the tool gives you a record type option, choose TXT. If you are not sure, choose all records and then look for the TXT section
Step 4, Review the TXT Value Carefully
A small mistake can break verification. Check whether the value is complete, has no missing characters, and is added under the correct hostname.
For example,
this is a clean Google TXT verification value:
google-site-verification=abc123xyz But this may cause problems if your DNS provider does not expect spaces around the equals sign:
google-site-verification = abc123xyz Always copy the exact value given by Google, Microsoft, your email provider, or any service that asks for domain verification.
TXT Record Lookup Google, Domain Verification
One of the most common reasons people use a TXT record lookup is Google verification. Google may ask you to add a TXT record when setting up Google Search Console,
Google Workspace, Google Cloud, or domain ownership verification.
A Google TXT record usually looks like this:
google-site-verification=exampleVerificationCode To verify your domain with Google, copy the TXT value from Google, open your DNS provider, create a new TXT record, paste the value save changes,
and then check whether the record is live.
If Google cannot find the TXT record, do not keep deleting and re-adding it without checking DNS first. Use a TXT record lookup tool to confirm whether the record is visible.
If the record does not show the issue is usually one of these problems:
- You added it to the wrong DNS provider
- You used the wrong host value
- DNS propagation is still pending
- The verification code was copied incorrectly
- Your domain is using different nameservers
This is where a proper DNS TXT lookup saves time. It helps you identify whether the issue is with Google verification or with your DNS configuration.
TXT Record Lookup Command Line
Technical users can also check TXT records using command line tools. This is useful for developers, system administrators, and email setup teams.
Check TXT Records with nslookup
On Windows, open Command Prompt and run:
nslookup -type=TXT example.com To check using Google DNS, run:
nslookup -type=TXT example.com 8.8.8.8 Check TXT Records with dig
On Mac or Linux, use:
dig TXT example.com To query Google DNS:
dig @8.8.8.8 TXT example.com To query Cloudflare DNS:
dig @1.1.1.1 TXT example.com If the command line result is different from an online lookup result, it may be due to resolver cache, propagation delay, or checking the wrong hostname.
Common TXT Record Examples
TXT records are used for different purposes. Below are the most common examples.
| TXT Record Type | Example | What It Does |
|---|---|---|
| Google Site Verification TXT Record | google-site-verification=abc123example | Confirms that you own the domain. |
| SPF TXT Record | v=spf1 include:_spf.google.com ~all | Tells mail servers which platforms are allowed to send emails from your domain. |
| DKIM TXT Record | v=DKIM1; k=rsa; p=MIIBIjANBgkqh... | Helps email receivers verify that your email was not changed during delivery. |
| DMARC TXT Record | v=DMARC1; p=none; rua=mailto:dmarc@example.com | Tells mail servers what to do when SPF or DKIM checks fail. |
Why Your TXT Record Is Not Showing
A common problem is adding a TXT record and then not seeing it in search results or verification tools. This can happen for several reasons.
Wrong DNS Provider
Your domain registrar and DNS provider may not be the same.
For example, your domain may be registered at one company but DNS may be managed by Cloudflare, Namecheap, GoDaddy, or another provider.
If your nameservers point to Cloudflare, adding the TXT record inside another registrar dashboard will not work. Always check your NS records first.
Wrong Hostname
For root domain verification, many DNS providers use @ as the host for subdomains you may need to enter only the subdomain part.
For example
mail.example.com some DNS providers want the host as:
mail not the full domain.
DNS Propagation Delay
TXT records can take time to appear everywhere. TTL, DNS resolver cache, and provider update speed can affect this. If you just added the record, wait and check again from multiple DNS servers.
Incorrect TXT Value
Verification records are sensitive. If even one character is missing, the verification may fail.
Duplicate SPF Records
A domain can have multiple TXT records, but it should usually have only one SPF record.
Bad example:
v=spf1 include:_spf.google.com ~all
v=spf1 include:mailgun.org ~all Better example:
v=spf1 include:_spf.google.com include:mailgun.org ~all Duplicate SPF records can cause email authentication failure, which may affect email deliverability.
How LeadCanal Helps You Check and Fix TXT Record Issues
LeadCanal makes TXT record lookup simple by letting you check your domain’s DNS records from one place. Instead of using multiple tools,
you can use LeadCanal DNS Lookup to review TXT, MX, NS, CNAME, A, AAAA, CAA, PTR, SOA, and SRV records quickly.
This is helpful when your TXT record is not showing, Google verification fails, or your SPF, DKIM, and DMARC records are not working properly.
LeadCanal helps you confirm whether the record is live, added under the correct domain, and visible in DNS.
It also helps you avoid common mistakes such as using the wrong DNS provider, entering the wrong hostname, copying an incorrect TXT value,
or waiting during DNS propagation.
For best results, check your current records before making changes update your DNS then use LeadCanal again to confirm that the new TXT record is published correctly.