
How DKIM keys work
Your mail server signs each outgoing message and adds a DKIM-Signature header that names the domain in d= and the selector in s=. The receiving server joins them into selector._domainkey.domain, fetches the public key from DNS and checks the signature. A missing key makes DKIM fail, and so does a message edited in transit.
The selector lets one domain hold several keys: one per mail service, or an old and a new key during rotation. This page runs the same TXT query a receiver runs. Your browser sends it to Cloudflare DNS, with Google DNS as a fallback, and you need no test email. For MX, SPF, DMARC and DKIM in one report, run the email domain check.
When you need it
- Check that a new mail service signs with your domain
- Find the selector of a domain when nobody wrote it down
- Find 1024-bit keys before a campaign
- Confirm that a key rotation reached DNS and the old key shows an empty p=
DKIM record example: the tags v, k, p, t, h, s and n
A DKIM TXT record is a list of tag=value pairs split by semicolons, such as v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA... The p= value is the public key in base64. A 2048-bit RSA key takes 392 characters, more than the 255 a single DNS string can hold, so DNS hosts split it into several quoted strings; the checker joins them before it reads the tags. v=DKIM1 is the version and must come first when present. k= names the key type, rsa (the default when k= is missing) or ed25519. p= holds the key, and an empty p= means the owner revoked it. t= carries flags: y marks test mode, and s requires the i= domain in signatures to match d= with no subdomains. h= limits the hash algorithms to sha256 or sha1, s= limits the service type, and n= holds a note for humans.
DKIM selectors by mail provider
Google Workspace uses google unless an admin set a custom prefix, and publishes the key as a TXT record. Microsoft 365 uses selector1 and selector2, both CNAMEs to keys that Microsoft hosts; Microsoft signs with one at a time, so check both. SendGrid uses s1 and s2, Mailchimp k2 and k3 (k1 on older setups), and Fastmail fm1, fm2 and fm3, all as CNAMEs to the provider. HubSpot uses hs1 and hs2, followed by your account ID on customer domains, as in hs1-1234567. Zoho Mail lets you name the selector when you create the key. A blank selector field covers google, selector1, selector2, s1, s2, k1, k2, fm1, fm2, zoho and hs1. For k3, fm3, a custom Google prefix or a HubSpot selector with an ID, type the selector into the second field.
Reading the DKIM check result
For each selector that answers, the checker prints the record name, the selector, the key type, the key length, the t= flags and the raw record. The length is an estimate: the tool decodes the base64 key, subtracts the standard key header and rounds to the nearest 512 bits, which gives 1024, 2048 or 4096 for common RSA keys. Ed25519 keys show 256 bits. An RSA key under 2048 bits gets a weak-key warning. An empty p= gets a revoked-key error, since mail signed with that selector fails DKIM. A t=y flag adds a test-mode warning. A 2048-bit or Ed25519 key without t=y shows "The key looks fine." In blank-selector mode the checker counts the keys it found and lists live keys before revoked ones.