IP & Network

DKIM Checker

Find a domain's DKIM key by selector and check its syntax and key length.

Without a selector we try 30 common ones. The exact selector is in a received message header: DKIM-Signature: … s=selector; d=domain.

Key facts

DKIM is a public key in DNS at selector._domainkey.domain that receivers use to verify a message signature. Enter the domain and the selector (it is in the DKIM-Signature header as s=…) or leave it blank and we try 30 common selectors. An RSA 2048-bit key is considered good, under 1024 weak.

Price
Free
Sign-up
Not required
Processing
On our server: DNS TXT (and CNAME) queries to selector._domainkey.your-domain, tag parsing and a key-length calculation
Input
A domain and, optionally, a selector (or paste selector._domainkey.domain in full)
Limits
No sign-up; 12 checks per minute per IP, no daily limit. Without a selector, 30 common ones are tried within about 10 seconds
Output
For each selector found: the record, version and key type, RSA key length, flags (such as testing mode) and warnings; a warning for a dangling CNAME
Last updated

See it in action

Open source on GitHub

Run the same check on your own machine: a Node.js command-line tool, a library and a GitHub Action. Open source under the MIT license.

ksanyok/dkim-checker

DKIM record lookup and key check

DKIM signs every message with a domain key, and the receiver verifies the signature against the public key in DNS at selector._domainkey.domain. This tool finds that record for your selector or tries 30 common ones (Google Workspace, Microsoft 365, Mailchimp, SendGrid, Zoho, Fastmail, Proton, HubSpot and more), follows CNAMEs, parses the tags and measures the RSA key length. Selectors cannot be listed via DNS, so "not found" only means "not among the selectors checked".

Check one selector or try 30 common ones
RSA and Ed25519 key length: weak, 1024, 2048+
CNAME delegation and dangling CNAMEs
Revoked keys (empty p=), t=y, h=sha1, broken base64

How to Use

  1. Enter the domain; take the selector from the DKIM-Signature header (s=) if you have it
  2. Without one we try 30 common selectors — it takes a few seconds
  3. Check the key status and replace keys shorter than 2048 bits

FAQ

The selector is the name under which the key sits in DNS: selector._domainkey.domain. It is in the DKIM-Signature header of a received message in the s= field. Google Workspace defaults to “google”, Microsoft 365 uses selector1 and selector2.

That does not mean there is none: DNS cannot enumerate selectors. Open the headers of any message from the domain, find s= in DKIM-Signature and enter that selector.

A sensible minimum today is RSA 2048 bits. Keys under 1024 bits are weak and 1024 should be replaced. Ed25519 is also valid but not every receiver supports it.

The selector points by CNAME at a mail platform, but the target record no longer exists. The signature cannot then be verified and messages using that selector fail the check.

No. That needs the message headers and body. The result recorded by the receiving server can be read in the email header analyzer.

Who it is for and typical uses

  • You just set up a newsletter tool or Google Workspace. Confirm the record is published and look at the key length.
  • Mail lands in spam. Check whether the domain has any DKIM key at all, and whether a weak key or a dangling CNAME is the problem.
  • Auditing someone else’s domain. Quickly see which mail services it probably uses from the selectors found.

Honest limitations

  • “Not found” does not mean “none”. DNS cannot list selectors and we only try 30 common ones. Take the exact selector from the header of a received message.
  • Message signatures are not verified. We look at the key in DNS, not at whether a given message is signed or its body matches.
  • No alignment or DMARC evaluation. That is a separate check.
  • Slow DNS. If some selectors did not answer in time we say which ones were skipped.

Related: SPF checker, DMARC checker, BIMI, email header analyzer.

The next step after checking this record: set up DMARC.

PromoPilot vs alternatives: comparison

We compare only what is confirmed on each service's own pages. Where we could not confirm a fact, the cell shows "—".

Parameter PromoPilot MxToolbox DKIM Lookup dmarcian DKIM Inspector
Looks up a given selector ✓ ✓ domain:selector or the full selector._domainkey.domain host name ✓ domain and selector required
Tries common selectors with no input ✓ 30 selectors Not stated on the page ✗
Key length and warnings ✓ The result format is not described on the page ✓ tag table, warnings/errors and public key length
No sign-up needed ✓ — ✓ a free tool; entered data is not stored (per the site)

Scroll the table sideways

Where we are weaker: a real message’s signature is not verified, the scan is limited to 30 common selectors and 10 seconds, and there is no alignment check or combined SPF/DMARC report on the same page.

When to choose PromoPilot: When you need to find a domain’s DKIM key or check length and syntax after setting up a mail service. We do not verify the signature of a specific message, and a blind scan may miss a non-standard selector.

Checked on: . "—" means not confirmed on the official page; terms and prices change, so check the services' own sites.

How DKIM works and what this checker tests

DKIM (DomainKeys Identified Mail) adds a digital signature to every message. The sending server signs the headers and body with a private key; the receiver fetches the public key from DNS and confirms the message was not altered in transit and really comes from the domain owner. The public key lives in a TXT record at selector._domainkey.domain.

The DKIM checker finds that record, follows a CNAME if there is one, parses the tags and rates the key:

StatusMeaning
key OKRSA 2048 bits or more, or Ed25519, with no record errors
1024-bit — upgradeStill accepted, but it is the minimum; move to 2048
weak keyUnder 1024 bits — per RFC 8301 receivers must not accept these signatures
key revokedEmpty p=: signatures with this selector fail
invalid recordUnreadable key, wrong version or unknown key type

How to find your DKIM selector

The selector is the key's name. The sender picks it, and a domain can have any number of selectors for different services. DNS offers no way to list them, so without a selector the tool tries the 30 most common ones. If nothing turns up, that only means "not among the selectors checked", not "no DKIM".

The exact selector is in every message sent from the domain. In Gmail, open a message → "Show original" and find the header:

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=google;
        h=from:to:subject:date:message-id; bh=...; b=...

s=google is the selector and d=example.com the signing domain. The receiver's verdict appears in Authentication-Results: dkim=pass header.i=@example.com header.s=google. For DMARC, the d= domain must match the From domain — the DMARC checker covers that side.

Selectors used by popular services

ServiceSelector and record type
Google Workspacegoogle by default (customisable), TXT with the key
Microsoft 365selector1 and selector2, CNAMEs into Microsoft's zone
Mailchimp / Mandrillk1 (also k2, k3), CNAME
SendGrids1 and s2, CNAMEs to sendgrid.net
Amazon SESthree random selectors per domain, CNAMEs to dkim.amazonses.com — impossible to guess; take them from the SES console or a message header
cPanel/Plesk hostingoften default or mail

Providers change names and schemes, so check their documentation. A CNAME means the provider stores and rotates the key for you, which is fine. It is a problem only when the CNAME exists but its target has no record: signatures fail. In Microsoft 365 that usually means DKIM is not enabled for the domain in the admin center.

DKIM record syntax

v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...
  • v=DKIM1 — version; optional, but if present it must come first.
  • k — key type: rsa (default) or ed25519.
  • p — the base64 public key. An empty value means the key is revoked.
  • t=y — testing mode: receivers should treat signed mail as unsigned. Remove it after rollout. t=s is strict mode for subdomains.
  • h — allowed hash algorithms. If it lists only sha1, signatures fail: per RFC 8301 sha1 is no longer accepted.
  • s — service type; * or email for mail.

A 2048-bit key is longer than 255 characters, so DNS stores it as several strings inside one TXT record. Most DNS dashboards split it automatically; if yours wants manual input, break the value into quoted chunks with no spaces inside the key.

Key length and rotation

Use 2048-bit RSA. To replace a key without downtime:

  1. Create a new key under a new selector (for example s2026) and publish it in DNS.
  2. Check it here with that selector.
  3. Switch signing to the new selector in your mail server or service.
  4. After a few days, once mail signed with the old key has been delivered, publish the old selector with an empty p=, and later delete it.

For a self-hosted server you can generate a key with OpenDKIM or plain OpenSSL:

opendkim-genkey -b 2048 -s s2026 -d example.com
# or
openssl genrsa -out dkim.key 2048
openssl rsa -in dkim.key -pubout -outform der | base64

DKIM, SPF and DMARC together

DKIM survives forwarding while SPF usually breaks, so a DKIM signature with your own domain is the most reliable way to pass DMARC. Since February 2024 Google and Yahoo require bulk senders to use both SPF and DKIM plus a DMARC record; the details change, so check their current sender guidelines. Check the full set: SPF, DMARC and MX records.

Cascade link promotion for your site $30 bonusBacklinks 5→50→5000 across 100+ platforms. From $30 to start, plus a $30 bonus for newcomers.