DNS LOOKUP GUIDES

TXT Record Lookup: How to Check and Verify DNS TXT Records

Look up TXT records, compare domain-verification values and troubleshoot missing answers, wrong hostnames and cached DNS results.

To check a TXT record, query TXT at the exact name the service gave you, then compare the returned value with that service’s expected value. A verification record for example.com is different from one for support.example.com. Seeing the right text in a DNS dashboard is not enough if it was saved at the wrong name or at a provider that is not authoritative for the domain.

TXT records are used for domain verification, email authentication and other machine-readable policies. This guide focuses on finding the published text and diagnosing verification failures. Finding a record is a DNS check; a service still has to accept it as proof of control.

Run a TXT record lookup

  1. Open TXT-only lookup and enter the exact ordinary hostname you need to check. TXT is selected for you; no domain is placed in the URL and no lookup starts automatically.
  2. Choose a resolver and start the lookup. Read every returned TXT answer, not just the first row.
  3. Compare the expected token with the value published at that same name. Keep unrelated verification strings and email policies separate.
  4. For multiple domains, paste one hostname per line, review the results and export all completed queries as CSV. The general checker accepts up to 500 unique domains.

The Bulk SPF Checker interprets SPF policies and literal dependencies; the Bulk DMARC Checker constructs _dmarc queries internally and checks policy discovery. The general DNS checker rejects underscore-prefixed input labels. Use a suitable DNS client for raw DKIM selectors, _acme-challenge or other prefixed TXT names rather than removing the prefix and asking a different DNS question.

What a TXT lookup returns

A TXT record associates text with a DNS name. One name can have several TXT records, and a single record can contain more than one character string. The grouping matters: unrelated records should not be combined into one value.

For example, this is an illustrative set of records, not a configuration to copy:

example.com.  3600  IN  TXT  "verification-service=illustrative-token"
example.com.  3600  IN  TXT  "v=spf1 ip4:192.0.2.10 -all"

The first record represents a verification use case. The second represents an SPF policy. They can coexist because they serve different purposes. A provider asking you to add its verification text is not normally asking you to overwrite every other TXT value.

Cloudflare’s TXT record overview explains the text-string format and its common uses. For email-policy interpretation, continue to the separate SPF guide.

Check TXT records online with DNSBatch

  1. Open the Bulk DNS Checker.
  2. Enter the hostname where the record should exist. Use the bare domain if the instructions say to create the record at the domain root.
  3. Select TXT and deselect other types if they are not relevant.
  4. Choose a resolver and run the lookup.
  5. Compare each returned TXT record with the expected value from the service’s current setup screen.
  6. Copy or export the returned values when you need to preserve the result for a support request.

For a list of domains, enter one per line. Filtering can help separate results that contain records from names with no matching TXT answers. Read the returned text as well as the status: “records found” does not mean the particular verification token you need is present.

General checker limitation: The Bulk DNS Checker accepts ordinary dotted hostnames and rejects underscore labels. For DMARC, enter the ordinary domain in the dedicated DMARC checker; it constructs the _dmarc query internally. For raw prefixed TXT queries, DKIM selectors and _acme-challenge names, use a suitable DNS client such as dig. This input limitation does not affect underscores inside returned TXT text.

Use nslookup or dig for the same question

With nslookup, request the TXT type:

nslookup -type=TXT example.com

To compare two public resolvers:

nslookup -type=TXT example.com 1.1.1.1
nslookup -type=TXT example.com 8.8.8.8

If dig is available:

dig @1.1.1.1 example.com TXT +noall +answer

Replace the example domain with the actual owner name from your service’s instructions. These commands query DNS; they do not trigger the provider’s verification workflow. For more command examples and help reading the response, use the nslookup guide.

Match the name before matching the value

Verification instructions usually give you a record type, a name or host, and a value. The names of these fields vary between DNS dashboards. A value copied into the hostname field can create a record that is syntactically accepted but useless for verification.

The symbol @ commonly means the zone apex in a provider’s editor. It is not the name you type into a public lookup tool. If the zone is example.com, query example.com to inspect an apex record.

Some dashboards automatically append the zone name. If that editor expects support and you enter support.example.com, you may accidentally publish at support.example.com.example.com. Other editors accept a complete hostname. Check the saved record’s full name rather than applying one provider’s field convention everywhere.

Google’s domain verification instructions illustrate why the unique value and the domain or subdomain being verified must match the setup flow. Always obtain your own token from the service; example tokens in an article cannot verify your domain.

Compare TXT values without changing their meaning

Copy the complete expected value, including any prefix such as a service identifier. Look for missing characters, unexpected spaces and a token generated for a different domain or account.

Quotation marks in a DNS client’s output can describe the presentation format. They are not always literal characters that should be pasted into a dashboard. DNS hosts differ in whether they add quotes automatically. Follow the host’s record editor instructions and inspect what it actually publishes.

A long TXT record may be presented as several quoted strings within one record. For applications such as SPF, those strings are interpreted together. Separate TXT records remain separate records. DNSBatch preserves the resolver’s returned presentation rather than guessing which strings or policies should be merged.

TXT record not showing? Troubleshoot the lookup

The record is visible in the dashboard but missing publicly

First confirm that you edited the active DNS provider. An old hosting account can retain an editable zone long after the domain has moved to another provider. Use the nameserver lookup guide to start investigating who serves the zone.

Next check the full owner name, the selected TXT type, and whether the change was saved. If you query the apex while the record was created under a subdomain, waiting will not make it appear at the apex.

Public resolvers disagree

One resolver may still hold an older value or a cached negative answer. Preserve the lookup time, resolver and exact name before comparing results. The propagation guide covers ordinary and negative caching in more detail.

Avoid repeatedly deleting and recreating the record while investigating. That can make it harder to establish which version each resolver is returning. A provider’s suggested waiting period is not a guarantee that an incorrect record will repair itself.

The expected value is public, but verification still fails

Return to the service’s setup flow and confirm the account, domain and expected token. Retry verification using the service’s own control. A third-party DNS lookup does not complete that final application step.

If it still fails, give support the exact owner name, a resolver result, the time of the lookup and the error displayed by the service. Microsoft documents its TXT-based setup flow separately from the DNS host in its domain verification guidance. Service-side state can matter even when the public DNS answer looks correct.

Keep unrelated TXT records in place

Do not remove SPF policies or other verification records just to reduce the number of answers. Identify the record by its purpose and expected value. Removing an unrelated policy can disrupt another service without resolving the original problem.

After successful verification, follow that service’s retention instructions. Some records are ongoing configuration; others are temporary challenges. Public DNS records are readable by others, so only publish the exact data the service instructs you to publish, never account passwords or private keys.

Common questions about TXT records

Can a domain have more than one TXT record?

Yes. Multiple TXT records can serve different applications. An application can still impose its own restrictions: SPF, for example, expects a single selected SPF policy at a checked name, not several independent policies.

Does no TXT answer mean the domain does not exist?

No. A successful DNS response with no matching TXT record is different from NXDOMAIN. The name may have A or MX records but no TXT data. Review the status and the queried type together.

Will clearing my computer’s DNS cache fix domain verification?

It does not update the authoritative zone or force the verification service’s resolver to forget its cache. Diagnose the public record and provider workflow first; clear local caches only when the evidence points to a local stale answer.

When the missing TXT value is an email policy, continue with the relevant diagnostic: SPF syntax and duplicate-policy inspection or DMARC record not found troubleshooting. A service verification token and an email policy can coexist at a DNS name; do not overwrite one to repair the other.