TXT Record Lookup

    Validate SPF, DKIM, and DMARC configurations to ensure email deliverability. Easily query any domain's TXT records for ownership verification payloads.

    28 DNS servers

    Ready to lookup DNS records

    Enter a domain name above and click "Lookup" to check DNS records across 28 global servers.

    Why Trust Our Network Tools?

    Built according to rigorous E-E-A-T (Experience, Expertise, Authoritativeness, and Trustworthiness) standards.

    100% Free & Accurate

    Our tools provide unrestricted, lifetime-free access to authoritative DNS servers worldwide, completely bypassing deceptive ISP caches.

    Privacy First & Secure

    All sensitive computations like password generation and hashing occur 100% locally in your browser. No data is ever transmitted, logged, or stored on our servers.

    Used by the Experts

    Reliably trusted by thousands of sysadmins, DevOps engineers, and network professionals daily for pinpoint diagnostic accuracy.

    Comprehensive TXT Record Lookup

    TXT (Text) records are the multipurpose tool of the DNS world. They are used for everything from verifying domain ownership for Google Search Console to defining mission-critical email security policies like SPF, DKIM, and DMARC. Our TXT lookup tool performs a deep scan of your domain's text-based metadata to help you secure your domain and satisfy third-party service requirements.

    Email Security Audit

    Check your SPF, DKIM, and DMARC strings for syntax errors that cause emails to land in the spam folder.

    Domain Verification

    Retrieve verification codes from Google, Microsoft, and SaaS platforms to confirm successful setup.

    Raw TXT Inspection

    View all published text records for a domain to audit legacy configurations and stale security tokens.

    AI Quick Answer

    A TXT (Text) record is a type of DNS record that contains human or machine-readable text data. Today, they are primarily used for email authentication (SPF, DKIM, DMARC) and domain verification for services like Google and Microsoft. TXT records do not direct traffic but provide essential configuration and security metadata for your domain.

    Expert Insight

    "Multiple SPF records are a 'fatal' configuration error. If you need to authorize multiple services (e.g., Google and Mailchimp), you must *merge* them into a single TXT record using 'include' statements. Having two separate records starting with 'v=spf1' will cause almost all your emails to fail authentication."

    What is this tool?

    TXT records are plain text notes attached to a domain. This tool reads those notes, which are almost exclusively used today to prove domain ownership and secure email against spammers.

    How to use it

    1. Enter your domain name.
    2. Click 'Lookup'.
    3. Read the list of text snippets returned by the server.
    4. Look for lines starting with 'v=spf1' or 'v=DMARC1' to verify your email security.

    Real-World Use Cases

    • Verifying your site with Google Search Console by checking for the 'google-site-verification' text.
    • Making sure your SPF record is correctly formatted so your business emails don't go to spam.
    • Auditing a domain to remove old, obsolete verification codes from unused services.

    Example Outputs

    You might see an output like: 'v=spf1 include:_spf.google.com ~all', meaning Google is allowed to send your emails.

    What is a TXT Record?

    A Text (TXT) Record allows domain administrators to insert arbitrary text into their DNS records. Originally intended for human-readable notes, TXT records are now a foundational element of internet security, domain verification, and email authentication. They are heavily utilized by services like Google Search Console to verify website ownership. More importantly, TXT records are used to publish SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC policies, which collectively prevent email spoofing, phishing attacks, and ensure your outgoing emails don't end up in spam folders.

    How to use the GetDNSInfo TXT Record Tool
    Enter your domain name to securely extract all public TXT records associated with your zone. Because TXT records handle sensitive authentication strings, our DoH protocol ensures your lookup is private and untampered. The tool will list all text entries and their TTLs. Developers and IT administrators rely on this tool daily to validate that complex SPF strings are formatted correctly, to confirm that DKIM cryptographic keys are actively published, and to verify domain ownership when onboarding new SaaS platforms.

    Common TXT Record Errors and Fixes
    Because TXT records rely on exact syntax, errors are incredibly common:

    • SPF Syntax Errors: Missing spaces, incorrect formatting (like using ?all instead of -all or ~all), or exceeding the 10-DNS-lookup limit can break SPF. Fix: Use a dedicated SPF generator to craft your record, and consolidate services to stay under the lookup limit.
    • Multiple SPF Records: A domain can only have one SPF TXT record. Having multiple records will cause email authentication to fail completely. Fix: Merge all authorized sending sources (e.g., Google Workspace, Mailchimp) into a single, unified SPF TXT string.
    • Character Limits: Standard TXT records are often limited to 255 characters per string. Long DKIM keys frequently exceed this. Fix: Ensure your DNS provider supports splitting long TXT strings into multiple linked parts, which is the standard method for handling 2048-bit DKIM keys.

    Frequently Asked Questions

    The Definitive Guide to TXT Records and Email Security

    Originally designed as a benign storage container for human-readable notes regarding a domain (such as server location or administrator contact details), the TXT (Text) record has evolved into one of the most structurally critical components of the modern internet. Today, TXT records are the foundational bedrock of digital domain verification and, most importantly, corporate email security.

    A TXT record essentially allows domain administrators to attach arbitrary strings of text to their DNS zone. Because this DNS data is public and universally accessible, massive SaaS platforms (like Google Workspace, Microsoft 365, or specialized marketing tools) use it to verify domain ownership. Furthermore, the global email infrastructure utilizes highly formatted TXT payloads—specifically SPF, DKIM, and DMARC—to combat the catastrophic rise of spam, phishing, and domain spoofing. Our advanced TXT Lookup Tool allows system administrators to instantly pull these payloads directly from authoritative nameservers for real-time security auditing.

    Domain Ownership Verification via TXT Records

    When you attempt to connect a custom domain to a cloud service (for instance, setting up a new Shopify storefront or verifying your domain in Google Search Console), the provider must confirm that you actually own the domain. Otherwise, malicious actors could hijack traffic or intercept communications intended for your brand.

    The standard procedure involves the provider generating a unique cryptographic string (e.g., google-site-verification=abc123xyz). You are instructed to create a new TXT record containing this string in your DNS dashboard. The provider then performs a DNS lookup. If the string matches, ownership is cryptographically proven, and the service is activated. This method is vastly superior and more secure than uploading HTML files or modifying meta tags, as it proves root-level control over the domain's infrastructure.

    The Holy Trinity of Email Deliverability

    The original Simple Mail Transfer Protocol (SMTP) was built in the 1980s without inherent security. Anyone could connect to a mail server and send an email claiming to be from ceo@yourcompany.com. To patch this massive vulnerability, the industry standardized three overlapping security protocols, all of which are deployed via TXT records.

    1. SPF (Sender Policy Framework)

    An SPF record acts as a strict guest list for your domain's outgoing email. It explicitly declares which IP addresses, servers, and third-party services (like Mailchimp or Salesforce) are authorized to send email on your behalf.

    Example Payload: v=spf1 include:_spf.google.com include:servers.mcsv.net ~all
    Analysis: This string dictates that Google Workspace (your primary email) and Mailchimp (your marketing platform) are authorized. The ~all at the end is a "soft fail" directive, instructing receiving servers (like Gmail or Yahoo) to accept emails from unauthorized IPs but mark them as highly suspicious (often dropping them directly into the Spam folder). A hard fail (-all) would instruct the server to reject the unauthorized mail outright.

    Common Error: The "Too Many Lookups" limitation. The SPF specification mandates a maximum of 10 DNS lookups per SPF record to prevent Denial of Service (DoS) attacks on nameservers. If your company authorizes too many third-party tools, your SPF record will exceed this limit, causing a "PermError" and resulting in massive email delivery failures.

    2. DKIM (DomainKeys Identified Mail)

    While SPF verifies the origin of the email, DKIM verifies the integrity of the email. It prevents "Man-in-the-Middle" attacks where a malicious actor intercepts an email in transit, alters the content (e.g., changing an invoice's bank routing number), and sends it along to the final recipient.

    DKIM achieves this via asymmetric cryptography. Your mail server generates a unique mathematical signature for every outgoing email using a private key. You then publish the corresponding public key as a TXT record (typically on a specific subdomain, known as the DKIM selector). The receiving mail server performs a TXT lookup, retrieves the public key, and verifies the signature. If the email was altered in transit by even a single comma, the signature check fails.

    3. DMARC (Domain-based Message Authentication, Reporting, and Conformance)

    DMARC is the ultimate enforcer. It sits on top of SPF and DKIM and provides clear instructions to receiving servers on what to do if an email fails authentication. Without DMARC, a receiving server might still accept a spoofed email and present it to the user.

    Example Payload: v=DMARC1; p=reject; rua=mailto:dmarc-reports@yourdomain.com;
    Analysis: This robust policy (p=reject) explicitly tells the entire internet: "If an email claims to be from us, but fails SPF or DKIM, delete it immediately. Do not even put it in the spam folder." The rua tag instructs ISPs to send aggregate XML reports back to your IT team, allowing you to monitor active spoofing attempts against your brand in real-time.

    Advantages and Disadvantages of Strict DMARC Policies

    Advantages: Complete protection against exact-domain spoofing. Protects your brand reputation, prevents CEO fraud (Business Email Compromise), and often results in higher overall deliverability rates, as ISPs trust your domain explicitly.

    Disadvantages: Implementation risk. If you enforce p=reject before accurately mapping all legitimate sending sources (like a forgotten legacy CRM system or an automated HR portal), you will inadvertently block your own company's legitimate emails. Moving to strict enforcement requires months of careful monitoring using the p=none (monitoring only) policy.

    Conclusions

    TXT records have transitioned from simple text notes to the absolute frontier of corporate network security. A missing or misconfigured SPF or DMARC payload guarantees that your legitimate business communications will eventually end up trapped in spam filters. By utilizing our advanced TXT Lookup Tool, you can instantly audit your domain's public security posture, verify complex cryptographic keys, and ensure compliance with modern email deliverability standards mandated by Google and Yahoo.

    Explore DNS Resources

    Deepen your technical knowledge with our expert guides and tools focused on DNS. Establish a stronger foundation in modern internet architecture.

    What is DNS? A Complete Guide to the Domain Name System

    Learn how DNS works, why it matters for every website and email, and how domain names are translated into IP addresses. A comprehensive guide for beginners and professionals.

    DNSDomain NamesNetworking
    Jan 15, 2024Get DNS INFO Team
    DNS Propagation Explained: How Long Does It Take and How to Speed It Up

    Understand why DNS changes take time to propagate worldwide, what affects propagation speed, and proven techniques to minimize propagation time when changing DNS records.

    DNS PropagationTTLDNS Changes
    Feb 10, 2024Get DNS INFO Team
    Email Authentication: SPF, DKIM, and DMARC Explained

    A comprehensive guide to SPF, DKIM, and DMARC email authentication records. Learn how each protocol works, how to configure them correctly, and how they protect your domain from email spoofing.

    SPFDKIMDMARC

    Verified by Get DNS INFO Team

    Expert Review

    This tool and its educational content are maintained by network infrastructure specialists. We provide real-time, authoritative DNS data and expert guidance on email security, propagation, and network optimization.

    Meet the Experts