b2KIT

TXT Record Lookup

Query DNS TXT records to verify SPF, DKIM, DMARC, and domain verification entries for any domain.

Tested tool guide Tested browser tools Checked August 16, 2026

What TXT Record Lookup does, with a checked example

TXT is the catch-all DNS record type, and this tool fetches every TXT record published at a hostname you enter. SPF policies, DKIM public keys, DMARC policies, and domain-verification strings all live in TXT records - and at three different names. SPF sits at the bare domain (example.com), DMARC at _dmarc.example.com, and a DKIM key at selector._domainkey.example.com. The query is sent from your browser to a public DNS resolver over HTTPS, so the answer reflects live DNS state. The usual mistake is entering only the bare domain and expecting everything: you get SPF and verification strings, never DKIM or DMARC.

Worked example

A concrete input and expected output from the current implementation.

Input

spf.google.com

Expected output

v=spf1 include:_spf.google.com ~all

This is the record Google's own setup documentation tells Workspace customers to publish at spf.google.com, and the one google.com itself references. It contains no IP ranges: the include= delegates to _spf.google.com, whose records list Google's sending networks, and ~all soft-fails everything else.

How the result is produced

1

Query path

The hostname you enter is queried exactly as typed, for DNS type TXT. Browsers cannot send raw DNS packets, so the request goes from your browser to a public resolver over HTTPS (DNS-over-HTTPS), and the resolver answers with the TXT records at that name - nothing more. The only network traffic this page generates is that query.

2

Record anatomy

A TXT record is one or more quoted character-strings, each capped at 255 characters, which DNS consumers concatenate (RFC 1035); the result is shown joined, so a DKIM key split across several fragments reads as one continuous key. Records at one name are listed separately, and the leading version tag - v=spf1, v=DMARC1, v=DKIM1 - is how SPF, DMARC, and DKIM records are told apart from verification strings.

Good uses

  • Check a DMARC record after publishing it: enter _dmarc.yourdomain.com and confirm v=DMARC1 appears, the p= value is what you chose (none, quarantine, or reject), and the rua= address is one you control so aggregate reports actually arrive.
  • Verify a DKIM key before switching on signing: enter selector._domainkey.yourdomain.com with your provider's selector and confirm a v=DKIM1 record carrying a long p= base64 key is live - a missing key means messages will fail DKIM the moment signing starts.
  • Troubleshoot why mail from your domain fails authentication: look up the root TXT records of the MAIL FROM domain and confirm exactly one v=spf1 record exists, matching what your provider documents, after changes like switching hosts or adding a sending service.

Limits and checks

  • The tool queries exactly the name you enter; it does not guess prefixes. SPF is at the bare domain, DKIM at selector._domainkey.domain, DMARC at _dmarc.domain. Entering only example.com returns SPF plus any verification strings - never DKIM or DMARC, so a no-records result for the wrong label proves nothing.
  • A CNAME at the queried name reroutes the query: TXT records cannot coexist with a CNAME, so the answer comes from the CNAME target's records, silently. RFC 7489 says a DMARC policy reached through a CNAME is not processed, which matters when the result looks unexpected.
  • Results are one resolver's view at one moment. After a change, old records can keep answering until the old TTL expires, and cached answers can lag. No records found means none right now at that exact name - recheck spelling and the label before concluding the record is missing.

Common questions

My domain has a v=spf1 record but mail still fails SPF checks - what does the lookup tell me?

That the record is published, not that receivers accept it. SPF evaluation fails when there is more than one v=spf1 record at the MAIL FROM domain, when the record runs past 512 characters, or when its include chain exceeds 10 DNS lookups (RFC 7208). Start by counting the v=spf1 records the lookup returns - there must be exactly one.

Can this tool tell me my DKIM selector?

No - the selector is chosen by whoever signs your mail, so you have to find it. Open a message you sent, view its raw headers, and read the s= tag of the DKIM-Signature line; then query s=._domainkey.yourdomain.com. Common defaults: google for Google Workspace, and selector1 or selector2 for Microsoft 365.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools