How to find your DKIM selector and check your DKIM record

By the outr team8 min read

To find your DKIM selector, open an email you sent from the domain, view the full header and find the line that starts with DKIM-Signature. The value after s= is your selector. If you have no email to hand, your provider's DKIM settings show it too: on Google Workspace it is usually google, on Microsoft 365 it is selector1 or selector2.

Once you have it, checking the record takes one DNS lookup. Reading the answer takes a little more care, because "DKIM found" and "DKIM working for your domain" are not the same thing.

Key points

  • The selector is the s= value in the DKIM-Signature header of any email your domain signed.
  • Google Workspace uses the selector google by default; Microsoft 365 always uses selector1 and selector2, with only one active at a time.
  • The DKIM record lives at selector._domainkey.yourdomain.com, so you cannot check it without knowing the selector.
  • A dkim=pass only helps your DMARC when the d= domain next to it is your own domain.
  • An empty p= in the record means the key has been revoked, not that it is still loading.

What a DKIM selector is

A DKIM selector is a short name that tells the receiving server where to fetch the public key for a signature. Nothing more mysterious than a label.

You need it because one domain can have several keys at once. Google Workspace signs with one, your invoicing tool with another, your newsletter platform with a third. RFC 6376, the DKIM standard, explains it in one line: to allow several keys per domain, "the key namespace is subdivided using 'selectors'".

The selector and your domain together make the DNS name where the key lives. The RFC says all DKIM keys sit under a subdomain called _domainkey, so a selector of google on example.com means the key is published at:

google._domainkey.example.com

That is why you cannot skip the selector. There is no single "DKIM record" for a domain. There is one per selector, and DNS will not hand you a list of them.

Find the selector in an email header

This is the most reliable way, because it shows the selector your mail is really being signed with today, not the one someone set up two years ago.

Send an email from the domain to an address outside your own domain (a personal Gmail works). Google says in its DKIM setup guide that you can't verify DKIM by sending a test message to yourself, and Microsoft notes the signature is left out entirely when sender and recipient sit in the same organization. Then open the full header.

In Gmail, from Google's own steps: open the message, next to Reply click More, then Show original.

In Outlook, per Microsoft's header guide: in new Outlook or Outlook on the web, open the message, click More actions, then View, then View message details. In classic Outlook for Windows, double-click the message, then File, then Properties, and the header is in the Internet headers box.

Now search the header for DKIM-Signature. Microsoft's DKIM page shows a typical one:

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=contoso.com;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=UErATeHehIIPIXPeUAfZWiKo0w2cSsOhb9XM9ulqTX0=;

You can ignore most of it. Two tags in the signature matter, plus two bits the receiver adds in its Authentication-Results line:

TagWhat it tells youIn the example
d=The domain that signed the messagecontoso.com
s=The selector, so where the public key livesselector1
dkim=pass (in Authentication-Results)The receiver found the key and the signature checked outshown further down the header
header.s= (in Authentication-Results)The same selector, repeated by the receiverselector1

Put s= and d= together and you have the exact name to look up: selector1._domainkey.contoso.com.

When you see more than one DKIM-Signature

Normal. RFC 6376 says plainly that "a message can contain multiple signatures, from the same or different organizations involved with the message". You will often see it on mail sent through a cold email tool or CRM: one signature carries your domain in d=, another carries the tool's domain.

The one you care about is the signature where d= is your own domain. Note its s=. If no signature has your domain in d=, that is your answer too, and probably the most useful thing you will learn today. More on that below.

Find the selector in your email provider's settings

No sent email to hand, or want to double-check what the header told you? Ask the system doing the signing.

Google Workspace

Google's default selector is google. Its DKIM guide says "The default prefix selector is google", and that you should only pick another one if your domain already uses a key with that name.

To see what was actually set up: in the Google Admin console, go to Menu, then Apps, Google Workspace, Gmail, and click Authenticate email. Pick the domain in the Selected domain menu. The DNS host name shown there starts with the selector, followed by ._domainkey. If the status reads "Authenticating email with DKIM", signing is on.

Microsoft 365

Microsoft is simpler and stranger at once. Every organization uses the same two host names, selector1._domainkey and selector2._domainkey, both published as CNAME records that point at Microsoft. Its DKIM page explains the split: "Only one selector is active and used" at a time, and the other waits for the next key rotation.

So if you check selector1 and find a key, that does not prove selector1 is the one signing right now. After a rotation it may be selector2. Microsoft notes that a rotation takes four days (96 hours) before the new key starts signing. A real message header settles it.

You can see both CNAME values in the Defender portal under Email authentication settings, on the DKIM tab, or in Exchange Online PowerShell with Get-DkimSigningConfig, which lists Selector1CNAME and Selector2CNAME.

One more thing that catches people. Microsoft says that for custom domains, "no DKIM signing occurs for outbound mail" until you set it up. If nobody switched it on, there is no selector for your domain to find, because nothing is being signed with it.

Cold email tools, CRMs and everything else

Every other service that sends as your domain picks its own selector, and it is in that service's DKIM setup screen or help docs. If you cannot find it, ask. A two-line email does it:

Example

Hi,

We send from example.com through your platform. Which DKIM selector do you sign with for our domain, and should the record be a TXT or a CNAME?

Thanks,

Sam

Why you cannot look up a domain's selectors without knowing them

People expect a lookup like "show me all DKIM keys for example.com". DNS does not work that way. You can only ask for a name you already know, and _domainkey has no index.

So a DKIM checker has two options: ask you for the selector, or guess. Our free domain checker tries the common ones first (google, selector1, selector2 and a few generic names) and lets you type your own selector if none of those match. If it says DKIM was not found under the usual names, that is a "go find your selector" message, not proof that DKIM is missing.

How to check your DKIM record

You have a selector and a domain. Now look up the key.

On a Mac or Linux terminal:

dig TXT google._domainkey.example.com +short

On Windows:

nslookup -type=TXT google._domainkey.example.com

Swap in your own selector and domain. For Microsoft 365, query selector1._domainkey.example.com and selector2._domainkey.example.com. Both are CNAMEs, and the lookup follows them to the key on Microsoft's side.

No terminal? Google points to its own Admin Toolbox Dig tool in the DKIM troubleshooting guide. Enter the host name from the Admin console, a full stop, then your domain.

A healthy answer looks something like this, with a much longer key:

"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."

What to check in it:

  • It starts with `v=DKIM1`. The tag is optional, but RFC 6376 says that if it is there, it must read exactly DKIM1 and come first.
  • `p=` has a long key after it. This is the public key. RFC 6376: "An empty value means that this public key has been revoked." So p= with nothing after it is not a record still loading. It is a key someone switched off on purpose.
  • The key is whole. If you copy it into a note, it should match the value in your provider's settings character for character.

Why your key might come back in two pieces

If the key comes back as two quoted strings, that is usually fine. Google's troubleshooting guide says most DKIM TXT records can hold up to 255 characters, so a 2048-bit key will not fit in one string. You split it and put each part in its own quotes. The RFC says the strings "MUST be concatenated together before use with no intervening whitespace", so receivers glue them back together.

What breaks DKIM is a split that loses characters or adds a space in the middle. Google's own check is to compare the DNS value with the Admin console value and make sure every character is there in the right order. If your DNS host makes this painful, Google suggests generating a 1024-bit key instead.

What the results mean, and what to do next

Nothing found under your selector. Either the record was never added, it sits at the wrong host name (for example, you pasted google._domainkey.example.com into a host field that already adds example.com, so the domain ends up in there twice), or DNS has not caught up yet. Google says it can take up to 48 hours for DKIM to start working after you add the key.

Key found, but the header has no DKIM line at all. First make sure the test went outside your organization, since Microsoft leaves the signature off internal mail. If it did, the record is fine and signing is off. Google says that when the header doesn't include a line about DKIM, messages from your domain aren't being signed. Go back to the provider's settings and turn signing on.

`dkim=pass`, but `d=` is not your domain. This is the sneaky one, and the reason the header beats any DNS check. DMARC compares the d= domain with the domain in your From address. Under RFC 9989, the current DMARC standard, in the default relaxed mode the two only need to share the same organizational domain, so d=example.com lines up with mail from news.example.com. But d=sendingtool.com on mail from you@example.com lines up with nothing. The signature passes for someone else and does nothing for you. Ask the tool how to sign with your own domain. Usually that means adding a DKIM record they give you to your DNS.

`dkim=pass` and `d=` is your domain. Done. Write the selector down somewhere you will find it again.

If you are still setting DKIM up rather than checking it, the full walk-through for Google Workspace and Microsoft 365, with SPF and DMARC in the right order, is in how to set up SPF, DKIM and DMARC for cold email. And if DKIM passes but your emails still land in spam, the cause is somewhere else; why your emails go to spam goes through the other suspects one by one.

One last habit. A DNS move can drop a line, someone can rotate a key, a new tool can arrive without its selector. outr checks SPF, DKIM, DMARC and MX every day for that reason; if you are not using it, put the lookup above in your calendar once a month.

Questions people ask

What is the DKIM selector for Google Workspace?

The default is google, and Google recommends keeping it unless your domain already has another key with that name. The record then sits at google._domainkey.yourdomain.com. You can confirm it in the Admin console under Apps, Google Workspace, Gmail, Authenticate email.

What is the DKIM selector for Microsoft 365 or Outlook?

Microsoft 365 uses selector1 and selector2 for every custom domain, published as two CNAME records. Only one is active at a time, and they swap when the keys rotate. Check the s= value in a recent email header to see which one is signing now.

Can I find a domain's DKIM selector without an email from it?

Not reliably. DNS only answers for names you already know, so the only options are your provider's settings or guessing common selectors like google, selector1, selector2 or default. An email header from that domain is the surest way.

Does DKIM pass mean my DKIM is set up correctly?

Only if the d= domain in the signature is your own. Some sending tools sign with their own domain, which passes DKIM but does nothing for your DMARC. Check d= in the header, not just the word pass.

What does an empty p= in a DKIM record mean?

It means the key has been revoked. The DKIM standard says a receiver must treat a signature that points at an empty p= as failed, so any mail signed with that selector fails DKIM. Publish the current key from your provider or remove the old selector from use.

Sources

  1. RFC 6376: DomainKeys Identified Mail (DKIM) Signatures
  2. RFC 9989: Domain-based Message Authentication, Reporting, and Conformance (DMARC)
  3. Set up DKIM, Google Workspace Admin Help
  4. Troubleshoot DKIM issues, Google Workspace Admin Help
  5. Dig (DNS lookup), Google Admin Toolbox
  6. View full email headers, Gmail Help
  7. How to use DKIM for email in your custom domain, Microsoft Learn
  8. View internet message headers in Outlook, Microsoft Support

Written by the outr team

We build outr, an AI sales team that sends from your own inboxes and drafts every reply for you to approve. Every figure in this article links to the page it comes from, listed above.

Read next

An AI sales team in your own inbox

Our AI-driven SDR researches every lead, writes every email and follows up until they answer.