← Home

DKIM record checker

Find a domain's DKIM public key at the selectors the big mail providers use, and learn why “not found” is not the same as “not signed”.

What DKIM is

DKIM (DomainKeys Identified Mail, RFC 6376) lets a sending server sign each message with a private key. The signature travels in a DKIM-Signature header, and the matching public key is published in DNS so any receiver can verify that the message was not altered and really came from a server holding the key. Unlike SPF, a DKIM signature survives forwarding, which makes it the more dependable half of DMARC.

The public key lives at <selector>._domainkey.<domain>. The selector is a label the sender chooses, and it appears in the signature as the s= tag.

Example record

selector1._domainkey.example.com  TXT
"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."
  • v=DKIM1 identifies the record; it is recommended, though optional.
  • k= is the key type, rsa by default; ed25519 also exists.
  • p= is the base64 public key. An empty p= means the key has been revoked.

Microsoft 365 publishes the key through CNAME records (selector1 and selector2 pointing into your onmicrosoft.com tenant); Google Workspace uses the selector google by default.

Why a checker cannot always find your key

DNS has no way to list every name under _domainkey, so no outside tool can enumerate your selectors. MailPosture probes eight common ones: selector1 and selector2 (Microsoft 365), google (Google Workspace), k1 (Mailchimp and Mandrill), s1, default, dkim and mail. A miss means “no key at these selectors”, never “this domain does not sign”. That is why DKIM is shown as information rather than a failure.

To find your real selector, open a message you sent in any mail client, view the original headers, and find DKIM-Signature. The d= tag is the signing domain and s= is the selector. Then run dig +short TXT <s>._domainkey.<d>.

Common mistakes

  • Key published, signing never switched on. Google Workspace needs “Start authentication” in the admin console after the record is added, and Microsoft 365 needs DKIM enabled per domain in the Defender portal.
  • Signing with the provider’s domain. Many newsletter and CRM tools sign with their own domain by default. The signature passes, but it does not align with your From address, so it does not help DMARC. Set up the custom sending domain they offer.
  • Keys that are too short. 1024-bit RSA keys are still common. Use 2048-bit where the provider supports it.
  • Broken copy and paste. Line breaks, stray quotes, or a key truncated by a DNS panel that cannot store long TXT values. The record must be split into 255-character strings, not cut.
  • Keys never rotated. A key that has been in DNS since the domain was set up has had years to leak. Rotate on a schedule, which is exactly what two selectors are for.
  • Old keys left behind. When you leave a provider, remove its selector or publish it with an empty p=.

How to fix it

  1. For each service that sends as your domain, find its DKIM setup page and generate a key for your own domain.
  2. Publish the TXT or CNAME records exactly as given, at the selector names given.
  3. Switch signing on in the provider’s console.
  4. Send a test message and confirm the header shows dkim=pass with header.d= equal to your domain.
  5. Check here again. If your selector is not one of the eight probed, verify with dig as shown above.

What cyber-insurance questionnaires ask

DKIM usually appears alongside SPF and DMARC in the same question: “Do you have SPF, DKIM and DMARC configured?”, with wording that varies by carrier. Because DKIM cannot be proven absent from outside, the best evidence is a selector and its key record: MailPosture shows the selector it found and the record text, with the resolver and UTC time of the lookup. If it found none, attach a message header showing dkim=pass for your domain.

Check a domain now

Free, anonymous, and reads public DNS only.