Free tool · checked in your browser
DKIM checker: look up a record or verify a signature
Look up the DKIM record for a domain and selector to see its key type, size and flags, or drop an email file to verify each signature yourself: the body hash locally, the signature against the signer's published key.
Look up a DKIM record
Check that a sender publishes a usable key: type, length, testing flag and revocation.
Verify the signatures in an email
Drop an .eml file
The original file gives exact results; copied text can change spacing and break signatures.
Or paste the full source
What a DKIM record lookup shows
A DKIM public key is a TXT record at selector._domainkey.domain, for example selector1._domainkey.contoso.com. The lookup reads it over DNS over HTTPS and decodes the tags: k= the key type (rsa unless it says ed25519), p= the public key, from which the key length is worked out, t= flags (y for testing, s for strict, which forbids subdomains in i=), h= the hash algorithms the key may be used with, and s= the service types it covers.
For phishing triage, the record answers two questions: does the selector named in a suspicious message exist at all, and is the key strong enough to trust. A selector that returns nothing, a revoked key or a 1024-bit RSA key changes how much a dkim=pass is worth.
How DKIM verification works
A DKIM-Signature header names the signing domain (d=), a selector (s=), the headers it covers (h=), a hash of the body (bh=) and the signature (b=). Verifying means canonicalizing the body (simple or relaxed), hashing it and comparing with bh=, then canonicalizing the signed headers and checking b= with the RSA or Ed25519 key published at selector._domainkey.domain.
A pass proves the signed parts are unchanged since d= signed them. It does not prove the email is safe: DMARC needs d= to match the visible From domain, lookalike domains sign their own mail, and replayed messages keep valid signatures. See how to read SPF, DKIM and DMARC for how the three fit together.
Worked example: reading a failed result
Take a signature such as DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=s1; l=1250; h=from:to:subject:date; bh=…; b=… and three results the checker can return.
Body hash does not match. The checker hashed the body it has and got something other than bh=, so the body changed after example.com signed it. Usual causes are a gateway disclaimer or an "External" banner, a mailing list footer, or a client that re-encoded the message when it was saved or forwarded. Compare with the Authentication-Results your server wrote on arrival: if it said dkim=pass, the change happened inside your own systems; if it failed then too, the content was altered on the way and deserves a closer look.
Pass, with content after l=. l=1250 means only the first 1,250 bytes of the canonicalized body were signed. If the body is now 1,900 bytes, 650 bytes were appended after signing, and the signature still passes. Read what is in those bytes: a link or a new instruction added below a genuinely signed message is a deliberate attack, not an accident.
Key not found. DNS has no TXT record at s1._domainkey.example.com, or its p= is empty. Either the sender rotated the key after sending, which is normal for mail more than a few weeks old, the selector never existed, or the header was forged. Old mail that was genuine at the time keeps the dkim=pass your server recorded on arrival; a recent message whose selector does not exist, while the domain's DNS answers normally, is a strong forgery signal.
More free triage tools
- Phishing triage workbench →The full analysis: verdict, attack story, attachments, endpoint footprint, intel and response.
- Email header analyzer →Paste headers: SPF, DKIM, DMARC, every hop with delays, the Microsoft 365 verdict and forensics.
- Safe Links and URL decoder →Unwrap Safe Links, Proofpoint, Barracuda, Cisco, Sophos and redirect chains without clicking (Mimecast: domain hint only).
- Email domain security check →Can your domain be spoofed? SPF lookups, DMARC, DKIM, MTA-STS, TLS-RPT and BIMI, graded A to F with the fixes.
- Lookalike domain scanner →Typosquats, homoglyphs and phishing-word domains of your brand that are registered now, with block commands.
- Phishing analysis guide →How to analyze a reported phishing email, step by step, the way a SOC does it.
- Phishing analysis articles →Authentication, Microsoft 365 headers, QR codes, BEC, callback, smuggling and AiTM, with hunting queries.
Questions
What is a DKIM selector, and which ones are common?
The selector (s= in the signature) names which of a domain's keys signed the message, so the key lives at selector._domainkey.domain. Microsoft 365 uses selector1 and selector2, published as CNAMEs to keys Microsoft hosts and rotates. Google Workspace uses google unless the admin chose another prefix. SendGrid uses s1 and s2, and Amazon SES uses long random tokens. The reliable way to find a selector is the s= tag in a DKIM-Signature from that domain.
What do t=y and an empty p= mean in a DKIM record?
t=y means the domain is testing DKIM: RFC 6376 tells verifiers to treat its mail like unsigned mail, even when the signature fails, so a failure under t=y proves less. An empty p= means the key has been revoked, and every signature that names that selector fails. Old mail signed with a key that was later rotated out often shows this.
What RSA key size should a DKIM key have?
2048 bits. RFC 8301 requires signers to use at least 1024 bits and recommends 2048, and verifiers must not accept anything shorter than 1024. A 1024-bit key still verifies but is weak and worth rotating. Ed25519 keys (RFC 8463) are short and strong, but not every receiver verifies them, so they are published next to an RSA key rather than instead of one.
Why does my DKIM check fail on a forwarded or reported email?
DKIM covers the body and the signed headers byte for byte (after canonicalization). Anything that changes them after signing, such as a gateway banner, a footer or a mailing list subject tag, breaks the signature. If the body hash fails but your server's Authentication-Results said dkim=pass, the message was changed after it was received.
What is the l= tag and why is it dangerous?
It limits the signature to the first N bytes of the body. Anything after that is not covered, so an attacker can append a phishing link to a genuinely signed message and it still verifies. The checker reports how many bytes were added.
What is DKIM replay?
An attacker takes a real message signed by a big sender, often one whose content they could influence, and resends it to new victims. It passes SPF, DKIM and DMARC. Signs: the Date is days old, the recipient is not in To or Cc, or To and Cc are not signed.
What does the checker send?
Check signatures sends nothing: the body hashes are computed and compared in your browser. Verify with DNS keys and Look up record query the selector's TXT record at selector._domainkey.domain through DNS over HTTPS, to Cloudflare or, if it does not answer, Google Public DNS, and nothing else. The message itself never leaves your browser.