DKIM Record Checker

Check a domain's DKIM record: look up the public key, see its type and length and find problems in every tag. If you don't know the selector, leave it empty and we try the ones common mail services use.

No selector? Leave it empty and we try 38 selectors that common mail services use, such as google, selector1 and k1.

What the DKIM checker does

A DKIM key is published as a TXT record at a name made of three parts: the selector, the fixed label _domainkey and your domain, for example google._domainkey.example.com. The checker reads that record, follows a CNAME if your provider hosts the key for you and splits the record into its tags. It then reads the public key itself and tells you whether it is an RSA or Ed25519 key and how many bits it has.

You get a warning for an RSA key shorter than 2048 bits, a key that has been revoked (an empty p= tag), test mode (t=y) or a record that receivers cannot read. Leave the selector field empty and the checker tries names that well-known services use, such as google for Google Workspace, selector1 and selector2 for Microsoft 365, k1 for Mailchimp and s1 and s2 for SendGrid.

One domain often has several keys

When we left the selector empty for github.com on 3 December 2026, the checker found seven keys, under google, selector1, k1, k2, k3, s1 and s2. Five used 2048-bit RSA and two, selector1 and k1, used 1024 bits. Six of the seven were published as a CNAME, meaning the key itself is hosted by another service and the domain only points to it.

That is normal. Each service that sends mail for a company gets its own selector, so old and new services can sign side by side. It also means a single weak or forgotten key can hide among several good ones, which makes it worth checking each selector you use.

How DKIM signing works

When a server sends a message, it signs the body and a chosen set of headers with a private key that never leaves the sender. The signature goes into a DKIM-Signature header. Two of its tags matter here: d= names the signing domain and s= names the selector. The receiver joins them into s._domainkey.d, fetches the public key from DNS and verifies the signature. If anyone changed the signed content on the way, the check fails.

Because the signature travels inside the message, DKIM usually survives forwarding, which SPF does not. A pass only helps DMARC when the d= domain matches the domain in the From address, so check your policy with the DMARC record checker and your servers with the SPF record checker as well. Our guide to SPF, DKIM and DMARC explains how they fit together.

How to find your DKIM selector

  • From a message you sent. Open the full headers of an email from your domain and find DKIM-Signature. The value after s= is the selector. Paste the headers into our email header analyzer and it lists every signature with its domain and selector.
  • From your provider's admin panel. The page where you switched on DKIM, often called email authentication or domain verification, shows the host name to publish. The part before ._domainkey is the selector.
  • By trying common names. That is what the empty selector field does. It finds many setups, but a service that generates random selector names, as some large sending platforms do, will not turn up this way.

How to check a DKIM record from the command line

With the selector in hand, one DNS query shows the key. On Windows:

nslookup -type=txt google._domainkey.github.com

On macOS or Linux:

dig +short TXT google._domainkey.github.com

Replace google with your selector and github.com with your domain. A long key comes back in two or more quoted pieces, which is normal, as explained below. If the answer is empty or says the name does not exist, there is no record at that exact name.

The tags in a DKIM record

TagMeaningTypical value
vVersion. Optional, but if present it must be the first tagDKIM1
kKey type. RSA is assumed when the tag is missingrsa or ed25519
pThe public key in base64. Empty means the key is revokedAbout 400 characters for 2048-bit RSA
hHash algorithms the key may be used withsha256
tFlags: y for testing, s for strict domain matchingUsually left out
sService type the key is meant foremail or *
nA note for people, ignored by receiversAny text

DKIM key length: 1024 or 2048 bits?

RFC 8301 says signers must use RSA keys of at least 1024 bits and should use at least 2048, and receivers must not accept a signature made with anything shorter than 1024. A 1024-bit key still verifies, but it falls short of the recommendation. If the checker shows 1024 bits, ask your provider for a 2048-bit key and publish it under a new selector.

A 2048-bit key is longer than the 255 characters a single TXT string can hold, so it has to be split into two strings inside the same record. Most DNS panels do that for you. If yours does not, and the key gets cut off or pasted with stray quotes or spaces, the checker reports that the key cannot be read.

Rotating a key without breaking mail

  1. Create a new key pair and publish the public key under a new selector, for example s2 next to the existing s1.
  2. Wait until the new record is visible worldwide. A TXT check on our DNS propagation checker shows when resolvers can see it.
  3. Switch signing to the new selector.
  4. Keep the old key published for a week or so, because messages signed with it may still be waiting in queues or be checked again later.
  5. Revoke the old key by publishing it with an empty p= tag, or delete the record.

When no DKIM key is found

  • The selector is wrong. Copy it from the s= value of a real signature instead of guessing or retyping it.
  • The CNAME points to a record that does not exist yet. Microsoft 365 and many sending services ask you to publish a CNAME pointing to a key they host. The key appears only after you switch DKIM on in their admin panel.
  • The domain was added twice. Many DNS panels add your domain to the host name automatically, so entering the full name creates s1._domainkey.example.com.example.com. Enter only s1._domainkey in the host field.
  • The record was saved as the wrong type. DKIM keys are TXT records, or a CNAME when your provider hosts the key. A key saved as any other record type is never found.

DKIM questions

Do I need DKIM?

For reliable delivery, yes. Since February 2024 Gmail and Yahoo have asked every sender to authenticate with SPF or DKIM, and senders of more than 5,000 messages a day to use SPF, DKIM and DMARC together. DKIM is also the part of email authentication that usually survives forwarding.

Can a domain have more than one DKIM key?

Yes. Each key lives under its own selector, so every service that sends for you can have its own key. That does not cause conflicts. Only one record may exist under each selector.

Does a DKIM pass mean DMARC passes?

Only when the d= domain in the signature matches the domain in the From address. A service that signs with its own domain gives you a DKIM pass that does not count for your DMARC.

Why does DKIM fail after a message goes through a mailing list?

Many lists add a footer to the body or a tag to the subject. That changes signed content, so the original signature no longer matches. Lists that re-sign messages with their own domain avoid the problem.

How do I revoke a DKIM key?

Publish the selector's record with an empty p= tag, such as v=DKIM1; p=. Receivers then treat every signature made with that key as failed. You can also delete the record once no signed mail is in transit.