TXT Record Lookup

Retrieve all TXT records of any domain with this free tool.

Want to look up other DNS records?

Create your account and run 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’s 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 various 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

What are DNS TXT records used for?

  • Email sender verification

    A Sender Policy Framework (SPF) is a type of TXT record that lists all servers authorized to send email from a domain, helping the receiving mail server verify the sender’s identity.

  • Site verification

    Platforms like Google, Microsoft 365, various cloud providers, and many others require you to add a unique TXT record to prove that you control the domain.

  • Ensuring email integrity and authenticity

    The DomainKeys Identified Mail (DKIM) is another type of TXT record. It adds a digital signature to emails, which allows the recipient’s server to confirm that the message wasn’t altered in transit.

  • Storing additional information

    TXT DNS records are often used by various software providers to store additional domain-related information, such as policy metadata or service configuration details.

  • Handling SPF/DKIM failures

    A Domain-based Message Authentication, Reporting, and Conformance (DMARC) is also a TXT record that tells the receiving server what to do with an email that fails SPF or DKIM checks and sends reports about SPF/DKIM failures to a specified email address.

  • Showing company logos in email

    TXT records can be used to enable Brand Indicators for Message Identification (BIMI) and add the company logo to outgoing emails.

DNS Lookup API | WhoisXML API

Get 500 free API credits. No credit card required.

Get started

What is the impact of an incorrect or missing DNS TXT record?

  • Increased risk of phishing and email spoofing attacks

    Without a proper DKIM record, SPF record, and DMARC policy in place, spammers can easily send malicious emails using your domain name. This puts your customers at risk and damages your brand's reputation by associating it with email spam and fraudulent activity.

  • Failure to verify domain ownership for third-party services

    Cloud providers, marketing platforms, and many other services require you to verify domain ownership before you can use their features, and this is often done by adding a unique DNS TXT record to your DNS settings. If it is incorrect or missing, the service will not be able to confirm you own the domain.

  • Poor email deliverability and reputation

    Email providers, such as Gmail and Outlook, rely on DNS TXT records (i.e., SPF and DMARC records) to verify the authenticity of emails. Without these records, or if they are configured incorrectly, your emails are more likely to get flagged as spam or rejected entirely.

  • Technical errors and inconsistent behavior

    Small errors can have big consequences. A simple typo in an SPF record, such as a misplaced character or an extra space, will cause it to fail validation since the receiving servers will treat the record as if it doesn’t exist.

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 DNS TXT record contain?

This record can contain text strings in the value field, which can be any text the domain administrator wants to assign. This text string appears along with the record’s time-to-live (TTL) value.

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 records for verification or authentication purposes. TXT Record Lookup returns all the TXT records it finds for a queried domain.

Why are TXT records important?

DNS TXT records allow different online services to 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.

What is the difference between SPF, DKIM, and DMARC records?

SPF, DKIM, and DMARC records are all TXT records for email authentication that serve different purposes. An SPF record tells the receiving mail server to query the domain’s authoritative name server and checks the sender's IP address to verify that an email came from an authorized server. DKIM uses a digital signature to confirm the email hasn't been altered in transit. Finally, DMARC is the policy layer that tells receiving mail servers how to handle the email if either SPF or DKIM checks fail.

How does your tool handle multiple DNS TXT records for a single domain?

Our TXT lookup tool provides a list of all DNS TXT records of a domain in one pop-up window.

Can I use this tool to find TXT records for any domain?

Yes. WhoisXML API tracks millions of domains across thousands of generic (gTLDs) and country-code TLDs (ccTLDs).

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

You may use DNS Lookup API, which returns DNS TXT records, A records, and 50 other DNS record types, or our lookup tool if you prefer a graphical user interface. We also have the free MX Record Lookup and CNAME Record Lookup tools to retrieve a domain name’s MX or CNAME records, respectively.

Trusted by
the smartest
companies

You may be interested

Real-time SSL Certificates Streaming
Real-time SSL Certificates Streaming

Get data feeds of SSL certificates along with their well parsed fields in real time. Accurate. Up-to-date.

Learn more
WHOIS Database Download
WHOIS Database Download

We provide complete and relevant domain WHOIS data which can be customized and easily integrated as per your business needs.

Learn more
MAC Address Vendor Database
MAC Address Vendor Database

Get the most comprehensive database of registered MAC address blocks, also referred to as OUIs (Organizationally Unique Identifiers).

Learn more
Domains & Subdomains Discovery API
Domains & Subdomains Discovery API

Find domains and subdomains related by specific terms in their hostnames.

Learn more
MAC Address API
MAC Address API

Get vendor information, detect virtual machines, manufacturer, location, read the information encoded in the MAC address.

Learn more
SSL Certificates API
SSL Certificates API

Check a domain’s SSL certificate chain via API calls.

Learn more
Domain Availability
Domain Availability

The most accurate domain availability checker offered on the market.

Learn more
Reverse WHOIS
Reverse WHOIS

Find connections between various domains, individuals and organizations.

Learn more
Reverse IP
Reverse IP

Find relations like ownership between hostnames and IPs.

Learn more
Brand Alert
Brand Alert

Monitor exact matches, variations and common misspellings of your brand name & trademarks.

Learn more
Threat Intelligence API
Threat Intelligence API

Easily identify malicious resources and retrieve their threat information.

Learn more
Website Categorization
Website Categorization

Define website category of the given domain.

Learn more
IP Geolocation
IP Geolocation

Find out the exact physical location of any IP address, email or domain name.

Learn more
Screenshot Service
Screenshot Service

Instantly get a screenshot of any web page.

Learn more
Subdomains Lookup
Subdomains Lookup

Discover subdomains related to the target domain name.

Learn more
IP Netblocks
IP Netblocks

Find out which IP range the particular IP belongs to.

Learn more
Threat Intelligence Data Feeds
Threat Intelligence Data Feeds

Get the most relevant data to be ahead of emerging security threats.

Learn more
Domain Registration Streaming
Domain Registration Streaming

Get data feeds of new registered domains along with their WHOIS data generated in real time.

Learn more
Newly Registered Domains
Newly Registered Domains

Keep track of the best business opportunities online.

Learn more
DNS Lookup Services
DNS Lookup Services

Identify who is hosting a particular domain name or website.

Learn more
Domain Reputation API
Domain Reputation API

Assess the domain's or IP addresses reputation and risk profile with a simple score based on a comprehensive...

Learn more
Reverse MX
Reverse MX

Reveal all the domains that use the same mail server.

Learn more
Reverse NS
Reverse NS

Find all domains that use the same name server.

Learn more
Reverse DNS
Reverse DNS

Give the list of domain names tied to the specified DNS records via API calls with outputs in JSON and XML.

Learn more
Newly Created Websites Data Feed
Newly Created Websites Data Feed

Get insights for the new business registered on the web.

Learn more
Email Verification
Email Verification

Ensure the validity and quality of any email address.

Learn more
WHOIS Search
WHOIS Search

Get well-parsed and normalized WHOIS information for any domain name, IP address or email.

Learn more
Domain Research Suite
Domain Research Suite

Enhance your domain research toolkit by our enterprise-grade web-based solution that helps you in searching...

Learn more
SSL Certificates Database
SSL Certificates Database

Get the most comprehensive database of SSL (Secure Sockets Layer) Certificates.

Learn more
Typosquatting Data Feed
Typosquatting Data Feed

Easily detect all typosquatting domain names as soon as they are registered each day.

Learn more
Registrant Alert
Registrant Alert

Find out which domains were added or dropped by registrants, with given search criteria.

Learn more