What a DKIM record is and where it lives
DKIM (DomainKeys Identified Mail, RFC 6376) adds a cryptographic signature to outgoing mail. The receiver fetches the public key from DNS and verifies that the signed headers and body were not changed. The key is a TXT record at <selector>._domainkey.<domain>, for example google._domainkey.example.com with the value v=DKIM1; k=rsa; p=MIIBIjANBgkqh....
p holds the base64 public key, k the key type (rsa by default, or ed25519), and t=y marks the domain as testing DKIM. v=DKIM1 is optional but must come first when present. An empty p= means the key has been revoked.
The selector lets one domain publish many keys at once, typically one per sending service or rotation period. Every signed message names its key in the DKIM-Signature header: d= is the signing domain and s= the selector.
How to find your DKIM selector
DNS has no query that lists a domain’s selectors. The reliable way to find one is to open a message you sent, view the original headers (“Show original” in Gmail, “View message source” in Outlook), find DKIM-Signature and read the s= and d= values. Your provider’s DKIM settings page also shows it.
Some defaults are well known: Google Workspace uses google, and Microsoft 365 uses selector1 and selector2. Many email services generate their own names, sometimes with dates or random strings, which no probe can guess.
Each service that signs mail for you uses its own selector. Check each one, not just your mailbox provider.
How to use this DKIM checker and read the results
Leave the selector field empty and this checker probes about 20 common selectors in parallel. Enter your own selector to check it as well. For each key it finds, the result shows the selector, the key type and the approximate key size.
The size is estimated from the length of the encoded key and reported as 1024, 2048 or 4096 bits. Findings flag revoked keys, keys shorter than 2048 bits, keys in testing mode and selectors delegated by CNAME. Delegation is normal: it lets your provider host and rotate the key for you.
“No selectors found” does not mean DKIM is missing. It means none of the probed names returned a key. Enter the selector from a real message header to check it directly.
Common DKIM errors and how to fix them
Key too short. RFC 8301 requires signers to use RSA keys of at least 1024 bits and recommends 2048. Google requires at least 1024 and recommends 2048. Generate a 2048-bit key under a new selector, publish it, switch signing to it, then remove the old record.
Broken key value. A 2048-bit key is longer than the 255-character limit of one TXT string, so it must be split into several quoted strings within a single record. Many DNS panels do this for you. Stray spaces, quotes or line breaks pasted into p= break verification, so copy the value again from your provider.
Record at the wrong name. Many DNS panels append your domain automatically, so entering google._domainkey.example.com creates google._domainkey.example.com.example.com. Enter only google._domainkey as the host.
Testing mode or revoked key left in place. RFC 6376 tells verifiers to treat mail from a domain with t=y the same as unsigned mail, so remove t=y once signing works. An empty p= is correct right after a rotation, but mail still signed with that selector fails. Confirm nothing uses it, then delete the record.
DKIM and DMARC
DKIM counts toward DMARC only when the signing domain in d= aligns with the From domain. Many email services sign with their own domain by default. Set up their custom domain authentication (usually a few CNAME records) so they sign as you.
A DKIM signature travels with the message, so it usually survives forwarding, where SPF fails. That makes aligned DKIM the most reliable path to a DMARC pass. Check SPF with the SPF checker and your policy with the DMARC checker.
Ed25519 keys (RFC 8463) are much shorter than RSA keys, but not every receiver verifies them yet, so senders that use Ed25519 also sign with RSA.
Frequently asked questions
How do I find my DKIM selector?
Open a message sent from your domain, view its original headers and find the DKIM-Signature header. The s= value is the selector and d= is the signing domain. Your email provider’s DKIM settings page also lists it.
How do I check if DKIM is working?
First confirm the public key is published by entering your domain and selector in this DKIM checker. Then send a message to an external mailbox and look for dkim=pass with your domain in the Authentication-Results header.
What DKIM key length should I use?
Use 2048-bit RSA keys. RFC 8301 sets 1024 bits as the minimum and recommends 2048, and Google gives the same guidance to senders. Keys shorter than 1024 bits should not be used at all.
Why does the DKIM checker find no record?
DNS cannot list selectors, so a checker can only probe common names. If your provider uses a custom selector, none of the probes match. Find the selector in the DKIM-Signature header of a sent message and enter it in the selector field.
Can a domain have more than one DKIM record?
Yes. A domain can publish any number of DKIM keys, each under its own selector, and each sending service usually has one. Each selector name should hold exactly one key record.
What does t=y mean in a DKIM record?
t=y marks the domain as testing DKIM. RFC 6376 tells verifiers to treat its messages the same as unsigned mail, even if the signature fails. Remove it once signing is confirmed.
How do I rotate a DKIM key?
Publish a new key under a new selector, switch your mail server or provider to sign with it, and wait until mail signed with the old key has been delivered. Then revoke the old key with an empty p= or delete its record.