The most common reason people cannot find their DKIM record is that they are looking in the wrong place. DKIM keys do not live at the root of your domain like SPF or DMARC. Each one sits at a subdomain in the form selector._domainkey.yourdomain.com, and the selector is a label chosen by whatever system signs your mail. If you do not know the selector, a plain lookup of your domain shows nothing, which is why it feels like the record is missing when it is simply hidden behind a name you have not guessed yet. This guide shows how to discover the selector, then confirm the published key.
Why the selector matters
DKIM signs outgoing mail with a private key and publishes the matching public key in DNS so receivers can verify the signature. A domain can have many keys at once, one per sending service, so each key needs a unique address. The selector is the label that disambiguates them: Google might use google, Microsoft 365 uses selector1 and selector2, and a marketing platform might use something like s1 or a long random string. The public key lives at <selector>._domainkey.<domain> as a TXT record. Without the selector, you cannot form the query, which is exactly why the first task is finding it. Once you have a candidate, confirm it with a DNS lookup of that TXT name.
Find the selector in a received email
The most reliable way to learn your selector is to read it off a message you actually sent. Every signed email carries a DKIM-Signature header, and the s= tag in that header is the selector. Send yourself a message, then open the full headers (in Gmail, use Show original; in most clients, View source or View message headers) and look for a block like this:
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=example.com; s=selector1;
h=from:to:subject:date; bh=...; b=...
Here d=example.com is the signing domain and s=selector1 is the selector. The record you want is therefore at selector1._domainkey.example.com. If a message is signed more than once, you will see multiple DKIM-Signature headers, each with its own d= and s=; check the one whose d= matches your domain.
Common provider selectors
If you cannot send a test message, you can often guess based on the provider, then verify. These are the usual defaults:
| Provider | Typical selector(s) | Record location |
|---|---|---|
| Google Workspace | google._domainkey.example.com | |
| Microsoft 365 | selector1, selector2 | selector1._domainkey.example.com |
| Amazon SES | random token (from console) | <token>._domainkey.example.com |
| Mailchimp | k1, k2, k3 | k1._domainkey.example.com |
| SendGrid | s1, s2 (CNAME delegated) | s1._domainkey.example.com |
Microsoft 365 is a special case worth noting: its two selector records are usually published as CNAMEs that point into onmicrosoft.com, so the actual key lives at Microsoft and rotates there without you touching your zone.
Query the TXT record
Once you have a selector, confirm the key is published. With dig, query the full selector name and ask for TXT:
dig +short TXT selector1._domainkey.example.com
A healthy DKIM record looks like this, a TXT value starting with v=DKIM1 and carrying the public key in the p= tag:
"v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN..."
On Windows, nslookup does the same job:
nslookup -type=TXT selector1._domainkey.example.com
If the provider delegated the key by CNAME, dig will follow the alias and still return the TXT at the end of the chain. An empty answer means either the selector is wrong or the record was never published, so revisit the DKIM-Signature header to confirm the exact selector string.
What a missing or empty result means
An empty lookup is not always a missing key. Three things commonly trip people up. First, the selector is case-insensitive in DNS but must otherwise match exactly, so a typo in a long token returns nothing. Second, a key with an empty p= tag is a revoked selector that the provider deliberately emptied, which is valid DNS but means that key no longer signs mail. Third, if your provider rotates keys automatically, an old selector you remember may have been retired in favor of a new one, so always re-derive the selector from a current message rather than from memory.
Frequently asked questions
How do I find my DKIM selector?
Send yourself an email, open the full headers, and read the s= tag in the DKIM-Signature line. That value is your selector, and the record lives at <selector>._domainkey.<yourdomain>.
Why can't I find my DKIM record with a normal lookup?
Because DKIM records do not sit at the domain root. They live at selector._domainkey.yourdomain.com, so you must know the selector to build the query. A lookup of the bare domain will not show the key.
Can a domain have more than one DKIM selector?
Yes. Each sending service that signs your mail uses its own selector, so a domain with several senders has several DKIM records at once, each at a different selector subdomain.
What does an empty p= tag mean?
An empty public key tag marks a revoked selector. The record still exists but no longer carries a key, which providers do intentionally when retiring an old signing key during rotation.
Do I query DKIM as TXT or CNAME?
Query it as TXT. If your provider delegated the key, the name is a CNAME that points elsewhere, but a resolver follows the alias and returns the TXT key at the end, so a TXT query still gives you the answer.
Reading the tags in a DKIM record
Once a lookup returns the TXT value, the tags inside it tell you whether the key is healthy and how it is configured, so it is worth knowing what each one means rather than just confirming the record exists. The value is a set of tag=value pairs separated by semicolons, and a typical published key uses a handful of them:
v=DKIM1; k=rsa; h=sha256; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN...
v=DKIM1 is the version and must come first. k=rsa is the key type; you will also see k=ed25519 on newer setups that publish a shorter elliptic-curve key alongside the RSA one. p= carries the public key itself, and an empty p= is the deliberate signal of a revoked selector rather than a broken record. Two optional tags often cause confusion. t=y marks the domain as being in DKIM test mode, which tells receivers not to treat a failure as meaningful, so a stray t=y left on a production key quietly weakens your authentication. h=sha256 pins the hash algorithm, and s=email, where present, restricts the key to email service use.
A second practical gotcha is length. A 2048-bit RSA key is longer than the 255-character limit for a single DNS string, so it is split into several quoted chunks inside one TXT record. A resolver concatenates them automatically, but if you ever paste a key into your zone by hand, the split must land between characters of the base64 blob with no added spaces, or the key will not parse. When a record resolves but mail still fails DKIM, a mangled multi-string p= value is a common culprit, so compare the reassembled key against the one your provider issued.
Finding DKIM is a two-step job: read the selector off a real message, then confirm the published key. Verify any selector._domainkey TXT record and watch it resolve through CNAME delegation with the DNS lookup tool.