Skip to content

TXT lookup

Enter a domain to see its TXT records, including SPF and ownership verification strings.

Example: TXT records of github.com

What is a TXT record?

A TXT record holds free text. It began as a place for notes and became the standard way to publish machine-readable settings in DNS.

The common uses are e-mail authentication (SPF at the domain, DMARC at _dmarc.domain, DKIM at selector._domainkey.domain) and proving to a service such as Google or Microsoft that you own the domain.

How to read a TXT record

In a zone file, the record looks like this:

example.com.   300   IN   TXT   "v=spf1 include:_spf.example.net -all"
  • The name the text is attached to.
  • The TTL in seconds.
  • The text. Long values are split into 255-character chunks on the wire; this tool joins them back together.

From the command line

Look up TXT records without this site.

On macOS and Linux, use dig:

dig example.com TXT +short

On Windows, use nslookup:

nslookup -type=TXT example.com

To skip caches, ask one of the domain’s nameservers directly: dig @ns1.example.net example.com TXT. The “Its own nameservers” option on the result page does the same.

Questions and answers

Where is my DMARC record?

DMARC lives at a subdomain. Look up _dmarc.yourdomain.com instead of the domain itself.

Where is my DKIM record?

At selector._domainkey.yourdomain.com. The selector is chosen by your mail provider (for example "google" or "selector1"); you can find it in the DKIM-Signature header of a message you sent.

Can a domain have more than one SPF record?

No. Two records starting with v=spf1 make SPF fail for every message. Merge them into one record.

Other record types