Sign inStart for $1

DKIM Checker: Find and Test a DKIM Record

DKIM lets a receiving mail server confirm that a message really was signed by your domain and was not changed on the way. The proof lives in one DNS record, published under a name that contains a selector. This checker reads that record, measures the key inside it, and tells you whether it is healthy.

The domain and the optional selector you enter are sent to our server, which reads public DNS for them through the resolvers 1.1.1.1 and 8.8.8.8; nothing is stored, and each visitor can run 20 checks a minute.

How it works

  1. For each selector the checker asks DNS for a TXT record at selector._domainkey.your-domain. If the name is a CNAME, as it is for Microsoft 365, SendGrid and Fastmail, the checker follows the chain to the real record.
  2. The record is split into its tags: v (version), k (key type), p (the public key), t (flags), h (hash), s (service) and n (notes), as defined in RFC 6376.
  3. The p value is base64 text. The checker decodes it and reads the key structure itself, so it can report the real RSA modulus length in bits rather than guessing from how long the text looks.
  4. Each key is graded. 2048 bits or more passes. Between 1024 and 2047 bits is a warning. Under 1024 bits fails. An empty p= means the key is revoked and fails. A t=y flag means testing mode and warns. An Ed25519 key passes with a note about receiver support.
  5. If a lookup fails, the checker says it could not read that selector. It never turns a failed lookup into "no record".

Limits

  • A selector can have any name. If your platform uses a custom one, the default list will not find it. Read the s= tag of a DKIM-Signature header in a message you sent and type that in.
  • The default list holds only selectors that the providers publish in their own documentation (13 selectors across 8 providers). We left out names we could not confirm from a provider page.
  • The checker reads DNS. It cannot tell whether your mail server signs outgoing messages, or whether the signature on a given message verifies. Send a test message and read the headers for that.
  • Public DNS can lag behind a change. A key you just published may take from minutes to a day to appear everywhere.
  • Very long keys can be impractical: RFC 6376 notes that a 4096 bit key may not fit in a 512 byte DNS UDP response. A 2048 bit key is the usual choice.

Related tools