What Is a DKIM Selector? How to Find Yours
A DKIM selector names the public key a receiver fetches. Find yours in a message header or your provider's DNS page, then look it up with dig.
A DKIM selector is the name that tells a receiving server which public key to fetch. It is the short label in front of ._domainkey in DNS. When a message arrives with a DKIM signature, the receiver reads two tags from the signature: d= for the signing domain and s= for the selector. It joins them into one DNS name and asks for the TXT record there.
s=google d=example.com → google._domainkey.example.com
That is the whole job of the selector. It lets one domain publish several keys side by side, one per sending service or one per rotation, without them overwriting each other. Your workspace mail can sign with google, your app's email provider with s1, and your newsletter tool with a generated name, all on the same domain.
Why you need the selector to check DKIM
DNS has no way to list every name under _domainkey.example.com. A lookup tool cannot ask "which keys does this domain have?" It can only ask about one name at a time. So a DKIM check without a selector is a guess.
To look up a DKIM record with the selector you found, use the checker. Leave the selector blank and it tries a short list of common names, then stops at the first key. A selector that is unique to your domain will not be in that list, and it will look exactly like a missing key.
Find the selector in a message you sent
This is the most reliable method, because it shows the selector a real message used. Send a message from the service you want to check to a mailbox you can read, then open the raw headers.
- Gmail: open the message, use the three-dot menu, then Show original.
- Outlook on the web: open the message, use the three-dot menu, then View and View message source.
- Apple Mail: View, then Message, then Raw Source.
Find the DKIM-Signature header. It looks like this example:
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=example.com; s=s1; t=1764504000;
h=from:to:subject:date:message-id;
bh=...; b=...
The selector is the value of s=, here s1. The domain is the value of d=, here example.com. The record lives at s1._domainkey.example.com.
A message can carry more than one DKIM-Signature header. Many providers sign with their own domain as well as yours. Read the d= on each one. For DMARC, the signature that matters is the one whose d= matches the domain in the visible From address, or a parent of it under relaxed alignment.
Gmail's Show original page also prints a short summary at the top, such as DKIM: 'PASS' with domain example.com. That tells you a signature verified. It does not show the selector, so read the header for that.
Find it in your provider's DNS settings
If you have not sent a message yet, the provider's domain setup page lists the records it wants you to publish. The DKIM record's name is the selector followed by ._domainkey. Copy the part before ._domainkey.
The usual names, as each provider documents them:
- Google Workspace:
google, unless an admin set a different prefix - Microsoft 365:
selector1andselector2, published as CNAMEs - SendGrid:
s1ands2 - Mailgun:
pdk1andpdk2with automatic setup - Amazon SES: three generated tokens with Easy DKIM
- Postmark: a generated name shown on the domain page
- Resend:
resend - SendPanda: a unique name that starts with
sendpanda-
Two selectors from one provider usually means rotation. The provider signs with one key while the other waits, then swaps. Both should resolve. Removing the idle one breaks the next rotation.
Look up the record with dig
Once you have the selector, ask DNS for the TXT record at the full name:
dig TXT s1._domainkey.example.com +short
A healthy answer is one TXT value that starts with v=DKIM1 and carries a p= tag with the public key in base64. This is an example of the shape, not a live answer:
"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."
Long keys are often split into several quoted strings in one answer. Join them and they are one record.
Providers such as Microsoft 365 and Amazon SES publish the selector as a CNAME that points at a key they host. dig +short then prints the CNAME target on the first line and the TXT value after it. That is correct. The key lives at the target, so the provider can rotate it without asking you to edit DNS again.
On Windows, nslookup works the same way:
nslookup -type=TXT s1._domainkey.example.com
Read what came back
- No answer at all. Either the selector is wrong or the record was never published. Check the spelling against the header or the provider page first. A typo in the selector is the most common cause.
- An empty
p=. The selector exists but its key has been revoked. Signatures that use it will fail. This is expected for a retired selector and wrong for an active one. t=y. The key is marked as a test. Some receivers treat signatures from a test key more leniently. Remove the flag once signing works.- A short RSA key. Use 2048 bits. A key under 1024 bits is not one verifiers should accept.
k=ed25519. A valid newer key type. Many senders publish it alongside an RSA key, because not every receiver verifies Ed25519 yet.
A key in DNS proves that the key is published. It does not prove that your messages are signed with it, or that the signature verifies. The header check in a real message is the test for that.
Common mistakes
Pasting the full name into the DNS panel. Many DNS providers add the domain for you. If you paste s1._domainkey.example.com into the name field, the record can end up at s1._domainkey.example.com.example.com. Enter s1._domainkey and let the panel add the rest, or check what name it actually saved.
Checking the wrong domain. If the provider signs with a subdomain, such as d=mail.example.com, the record lives at s1._domainkey.mail.example.com. Use the d= from the header, not the domain you expected.
Deleting an unknown selector. An old selector can belong to a service you still use for invoices, support or calendar invites. Send a message from each tool and read its s= before you remove a record.
Expecting a guess to be complete. A lookup that tries common names and finds nothing has not shown that the domain lacks DKIM. It has shown only that none of those names are in use.
Frequently asked questions
What is a DKIM selector?
It is a label that names one DKIM public key for a domain. The receiver combines it with the signing domain to find the key at selector._domainkey.domain. It lets a domain publish several keys at once.
How do I find my DKIM selector?
Read the s= tag on the DKIM-Signature header of a message you sent. Or copy the part before ._domainkey from your email provider's DNS setup page.
Can I look up all DKIM selectors for a domain?
No. DNS cannot list every name under _domainkey. A checker can only try names it already knows, so a unique selector will not be found by guessing.
Can a domain have more than one DKIM selector?
Yes. Each sending service usually has its own, and many providers publish two so they can rotate keys. Each selector is a separate DNS record.
Does the selector need to match anything for DMARC?
No. DMARC looks at the d= domain in the signature, not the selector. The d= domain has to align with the From domain.