TXT Record Lookup

A
AAAA
CNAME
MX
NS
TXT
SOA
PTR
ANY
SRV
DS
LOC
CAA
Primary
Google
Cloudflare
OpenDNS
Quad9
Yandex
Comodo Secure DNS
DNS.Watch
OpenNIC
Verisign Public DNS
AdGuard DNS
Get DNS Information
Get DNS Information
Enter a domain name to retrieve DNS records
5.01 vote
0 Comments
About this tool

The TXT Lookup Tool helps you fetch the TXT records associated with a domain. TXT (Text) records are a type of DNS record designed to store descriptive text. These records are versatile and are commonly used for domain verification, email authentication, and additional metadata about a domain.

What Are TXT Records?

TXT records allow domain administrators to associate arbitrary text with a domain or subdomain. They often contain machine-readable data that supports essential internet protocols and services.

For example, a TXT record might look like this:

In this case, the record indicates SPF (Sender Policy Framework) settings for the domain to prevent email spoofing.

Why Are TXT Records Important?

  • Email Authentication: TXT records are used in SPF, DKIM, and DMARC to secure email communications and reduce spam or phishing attacks.
  • Domain Verification: Service providers (e.g., Google Workspace, Microsoft 365) often require TXT records for verifying domain ownership.
  • Custom Metadata: TXT records can store additional information about a domain for specific applications or services.

Common Uses of TXT Records

  • SPF (Sender Policy Framework): Used to specify which mail servers are allowed to send emails on behalf of your domain.
  • DKIM (DomainKeys Identified Mail): Contains the public key for verifying digitally signed emails.
  • DMARC (Domain-based Message Authentication, Reporting, and Conformance): Provides instructions for handling emails that fail SPF or DKIM checks.
  • Custom Information: TXT records can store any relevant information for services or applications.

How to Perform a TXT Lookup?

The dig command can fetch TXT records for any domain. A basic query looks like this:

This fetches all TXT records associated with the domain example.com.

Querying Specific DNS Servers

You can use the @ flag in dig to query a specific DNS server. For instance, querying OpenDNS:

This ensures the query is directed to OpenDNS's resolver.

Advanced Dig Commands

  • Simplified Output:
  • Displays only the TXT records, omitting additional details.

  • View Raw DNS Responses:
  • Displays a clean output of just the TXT record answers.

Common Issues with TXT Records

  • Record Length: TXT records are limited to 255 characters per string. Long records need to be split into multiple strings.
  • Propagation Delays: Updates to TXT records may take time to reflect globally due to DNS caching.
  • Syntax Errors: Incorrect formatting can result in TXT records not being recognized by DNS resolvers.

How Our Tool Helps

Our TXT Lookup Tool provides an easy-to-use interface for retrieving TXT records. Whether you're verifying your domain for email providers, troubleshooting DNS configurations, or analyzing security protocols, our tool streamlines the process and ensures accurate results.

Last updated: