Skip to content

Help center

How to find the DKIM selector of a domain

Find the DKIM selector in a message header, test it with dig or the free DKIM checker, and learn why DNS cannot list the selectors a domain uses.

Updated 2026-11-23

Send an email from the service you want to check to a mailbox you control, open the message source and read the s= tag of its DKIM-Signature header. That is the selector. Then test it: query selector._domainkey.yourdomain in DNS, or enter it in the free DKIM checker. DNS cannot list selectors for you.

Why you must find it, not look it up

The selector is chosen by whoever signs the mail. A domain can have many, and DNS has no way to list the names under a domain. That is also why the API's email result does not report DKIM: it would need a signed message to know where to look. See SPF, DKIM and DMARC explained.

Steps

  1. Send a test message from the sender you want to check, such as your newsletter tool, to a mailbox you control.
  2. Open the raw source. In Gmail, use the three dots menu and choose Show original. Other clients call it View source or View raw message.
  3. Find the header. Search for DKIM-Signature. It looks like this:
DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=selector1; h=from:to:subject:date; bh=...; b=...
  1. Read d= and s=. Here the domain is example.com and the selector is selector1.
  2. Test the key. Use the free DKIM checker and enter selector1._domainkey.example.com, or query DNS:
bash
dig +short TXT selector1._domainkey.example.com
bash
nslookup -type=TXT selector1._domainkey.example.com
  1. Read the record. A good one looks like v=DKIM1; k=rsa; p=<long key>. The checker also measures the key length.

If you have no message to read

Try the names providers commonly use, one at a time: default, google, selector1, selector2, k1, s1, mail. The checker accepts any name. An empty answer only means that name is not used. Your sending provider's setup page almost always lists its selector, so check there first.

What the record tells you

Part Meaning
p= with a key The public key. Mail signed with the matching private key verifies.
p= empty The key was revoked.
t=y Testing mode. Receivers should not treat failures as definitive.
k=rsa Key type. Use 2048-bit RSA keys: RFC 8301 requires at least 1024 and recommends 2048.

With the API

There is no DKIM field in the API. Use the checker above. What the email endpoint does tell you, with domain.spf and domain.dmarc, is whether the domain publishes SPF and DMARC records. See the email reference.

Common mistakes

  • Querying the domain alone. The name must include _domainkey and the selector.
  • Copying the selector from another sender. Each service signs with its own.
  • Reading a missing record as no DKIM. You may have guessed the wrong name.
  • Leaving an old selector after rotating. Remove it once the new one is live.
  • Publishing a 1024-bit key today. Use 2048.

Frequently asked questions

What is a DKIM selector?
A selector is a label that tells receivers where to find the public key for a signature. It is chosen by whoever signs the mail, and the key sits in DNS at selector._domainkey.domain. A domain can have many selectors at once, for example one per sending service, which is also how it rotates keys without downtime.
Can I list all DKIM selectors of a domain?
No. DNS offers no way to list the records under a name, and selectors are arbitrary labels. You can find one by reading the s= tag in the DKIM-Signature header of a real message, or by guessing common names such as default, google, selector1 and selector2. A guess that returns nothing proves nothing.
Where do I find the DKIM-Signature header?
In the full headers of a received message. Most mail clients offer View original, Show source or View raw message in the message menu. Search for DKIM-Signature. The d= tag names the signing domain and the s= tag names the selector. Send yourself a test message from the service you want to check.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time