TXT Record Lookup | WhoisXML API

TXT Record Lookup

Retrieve the TXT record of any domain with this free tool.

Want to do richer lookups?

Create your account and perform your first 500 DNS lookup queries covering more records for free.

Start DNS Lookup API Trial
50 Billion+Domains and subdomains
116 Billion+DNS records
52,000+Satisfied customers
15+Years of data crawling

WhoisXML API Current DNS Product Line

Need access to more types of DNS records? Obtain comprehensive and accurate DNS data fast. Enrich threat intelligence, protect networks from DDoS attacks, and uncover more assets with our DNS products.

  • DNS Database Download

    DNS Database Download

    Access market-leading repositories of historical DNS data with the highest number of unique FQDNs across several DNS record types.

    Explore Database
  • DNS Lookup API

    DNS Lookup API

    Obtain the IP address, MX servers, NSs, and other DNS records for one or more domains with API calls.

    Explore API
  • DNS Lookup

    DNS Lookup

    Look up the IP address, MX, NS, TXT, CNAME, SOA, and other records of a domain using a web-based tool.

    Explore Lookup
  • DNS Chronicle API

    DNS Chronicle API

    Retrieve the historical A and AAAA records of one or more domains or perform a reverse lookup instantly with API calls.

    Explore API
  • DNS Chronicle Lookup

    DNS Chronicle Lookup

    Find a domain’s past IP address connections (forward search) or obtain a list of domains associated with an IP address (reverse search) within seconds using a GUI.

    Explore Lookup
DNS Lookup API | WhoisXML API

Get 500 free API credits. No credit card required.

Get started

Frequently Asked Questions

What is a DNS TXT record?

A TXT record is a type of DNS record that allows domain name owners to associate arbitrary text with their domain names that other Internet-connected systems and services can read. This text is most commonly used for domain ownership verification and email authentication.

What data points can a TXT record contain?

TXT records can contain text strings in the value field, which can be any text that the domain administrator wants to assign. This text string, along with the record’s TTL value, is then stored on our passive DNS database.

Can a domain have multiple TXT records?

Yes, a single domain can have several TXT records. This is often necessary when using multiple services that require their own specific TXT records for verification or authentication purposes. Our TXT Record Lookup tool returns all the TXT records it finds for a queried domain.

Why are TXT records important?

TXT records essentially help different online services trust and correctly interact with your domain. If a TXT record is configured incorrectly or missing when required, it can lead to various issues. For example, email authentication may fail, causing emails to be marked as spam. This can also prevent certain online services from verifying the domain, which may interfere with how they function.

How can I check the other DNS records of a domain?

You may use our DNS Lookup API, which returns TXT records and other DNS record types, or our lookup tool.