TXT Record Lookup
Find all Text (TXT) records for a domain, typically used for domain verification, SPF, and DMARC.
About TXT Records
TXT (text) records allow administrators to insert arbitrary text into DNS records. Over time, this record type has been co-opted to serve multiple security and verification purposes.
Common uses include Domain Verification (proving to services like Google Workspace or Microsoft 365 that you own the domain), SPF (Sender Policy Framework to prevent email spoofing), and DMARC policies.
Our TXT Record Lookup returns every DNS text record published on a domain — SPF, DMARC, DKIM, domain verification strings and any custom values. Use it to inspect the exact raw text a resolver sees, which is essential when debugging email authentication.
What is a TXT Record?
Almost every modern domain-based verification and email security mechanism rides on TXT records: SPF declares which servers may send mail, DMARC declares what to do when authentication fails, DKIM publishes public keys, and services from Google to Microsoft to AWS ask you to publish a token to prove you own a domain.
A single TXT record is limited to 255 characters per string, but a record may contain several strings that resolvers concatenate. A domain may publish many TXT records at the same name.
- Stores arbitrary text data at any DNS name
- Carries SPF, DMARC, DKIM, BIMI and MTA-STS policies
- Used by most providers for domain ownership verification
- Each string is limited to 255 characters; multiple strings are joined
- A name can hold several TXT records at once
Why TXT Records Matter
They are also the most cluttered part of a typical DNS zone. Verification tokens accumulate for years after the service that needed them is gone, and duplicate SPF records — which are invalid — are one of the most common email misconfigurations on the internet.
- A broken SPF or DMARC TXT record breaks email for the whole domain
- Two SPF records at the same name is a permanent error, not a warning
- Stale verification tokens leak which vendors an organisation uses
- TXT records are publicly readable by anyone, including attackers
- Correct TXT records are required by Google and Yahoo bulk sender rules
How This TXT Record Lookup Works
- Validates the domain input against format and SSRF safety checks
- Queries authoritative DNS for all records of type TXT
- Joins multi-string records the way a resolver would
- Classifies recognised records such as SPF, DKIM and DMARC
- Returns the exact raw value so you can spot stray quotes and whitespace
How to Use the TXT Record Lookup
- Enter a domain name such as example.com in the input field
- For DMARC records, query the _dmarc subdomain directly
- For DKIM records, query selector._domainkey under your domain
- Run the lookup and review every TXT record returned
- Compare the raw value against what you intended to publish
Understanding Your TXT Record Results
TXT records fall into several recognisable categories. Here is how to read the common ones:
| Field / Value | Meaning |
|---|---|
v=spf1 ... |
An SPF record listing which servers may send email for the domain. Only one SPF record is permitted per name — a second one invalidates both. |
v=DMARC1 ... |
A DMARC policy, published at _dmarc.yourdomain.com. It defines what receivers should do with mail that fails authentication. |
v=DKIM1 ... |
A DKIM public key, published at selector._domainkey.yourdomain.com. Receivers use it to verify the signature on your outgoing mail. |
Verification token |
A random string such as google-site-verification=... proving domain ownership to a third party. Safe to remove once the service no longer needs it. |
TTL |
How long resolvers cache the record. Lower it to 300 seconds before editing SPF or DMARC so mistakes can be corrected quickly. |
Common Problems & How to Fix Them
Best Practices
- Keep exactly one SPF record per domain — merge all senders into it
- Publish DMARC at _dmarc.yourdomain.com, never at the root
- Lower the TTL to 300 seconds before editing email authentication records
- Remove verification tokens once the service that required them is gone
- Check the raw value after every edit to catch stray quotes and whitespace
- Document which team or vendor owns each TXT record in your zone
- Use 2048-bit DKIM keys and let your provider handle the string splitting
Security Recommendations
- Remember every TXT record is world-readable — never store secrets, internal hostnames or credentials in one
- Audit verification tokens regularly; stale ones reveal your vendor stack to attackers preparing targeted phishing
- Keep SPF within the 10 DNS lookup limit, since exceeding it silently disables SPF entirely
- Rotate DKIM keys periodically and remove the old selector once the rotation is complete
- Watch for unexpected TXT records appearing in your zone, which can indicate a compromised DNS account
- Publish DMARC with enforcement, not just monitoring, once your legitimate senders are aligned