Updated
How to Look Up a DKIM Record (and Find the Selector)
1. One selector with DNS over HTTPS
curl -s -H 'accept: application/dns-json' \
'https://cloudflare-dns.com/dns-query?name=google._domainkey.python.org&type=TXT' | jq -r '.Status, .Answer[0].data'Status 0 with a v=DKIM1 string means the key exists; status 3 (NXDOMAIN) means this selector does not. With dig: dig +short TXT google._domainkey.python.org.
2. Find the selector
Read the headers of a real message from the domain: in DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=selector1; ..., s= is the selector. Without a message, try the common ones: google (Google Workspace), selector1 and selector2 (Microsoft 365), k1 (Mailchimp), s1, s2, default, dkim, mail.
3. Common pitfalls
- Long keys (2048-bit) are split into several quoted strings in one TXT record: join them before parsing.
- CNAME selectors: Microsoft 365 and many senders publish a CNAME to their own zone; follow it.
- An empty p= means the key was revoked.
4. Many domains, SPF, DKIM and DMARC together
Plainprobe Domain & Tech Stack Intelligence tries 20 common DKIM selectors per domain and returns them with the SPF and DMARC analysis, the mail provider and a 0-100 e-mail security grade with fixes, at $0.003 per domain. Real output for apify.com on 2 December 2026: {"provider": "Google Workspace", "score": 100, "dkim": {"found": true, "selectors": ["google"], "checkedSelectors": 20}}. See also How to check SPF and DMARC.
Limits to keep in mind
- Guessing selectors can miss a custom one: "not found" means "not found among the selectors tried".
- A published key does not prove that every message is signed: check DMARC reports for that.
FAQ
How do I find a domain's DKIM record?
Query the TXT record of selector._domainkey.domain. The selector is chosen by the sender, so you must know or guess it: google for Google Workspace, selector1 and selector2 for Microsoft 365, k1 for Mailchimp, s1 and s2 for several others.
Where do I find the DKIM selector of an e-mail I received?
Open the message headers and read the DKIM-Signature line: s= is the selector and d= the signing domain. That is the only reliable way to know which selector a domain really uses.
What does NXDOMAIN mean for a DKIM lookup?
The selector does not exist for that domain (DNS status 3). It does not prove that the domain has no DKIM: it may use another selector.
Is DKIM enough to stop spoofing?
No. DKIM signs messages, SPF lists allowed senders, and DMARC tells receivers what to do when both fail. A domain needs all three, with a DMARC policy of quarantine or reject.