Email and Cyber Security · #20

Online DKIM Selector Lookup

Reads a DKIM selector's DNS record and shows key type, length and revocation state.

  • Live DNS query (Cloudflare DNS over HTTPS)

Tool

E.g. selector1, google, k1

The query goes directly from your browser to a fixed public resolver (Cloudflare 1.1.1.1, DNS over HTTPS); only the domain name and record type are sent. Eretek servers do not relay or log the query.

What does this tool do?

The s= (selector) and d= (domain) values of a DKIM signature tell the receiver where to find the public key: selector._domainkey.domain. The tool queries that name, shows the chain if it is delegated by CNAME (e.g. to an email provider) and decodes the key type and length.

How to use it

  1. Enter the domain and selector. Take the selector from the s= value of an email's DKIM-Signature header.
  2. Press Run.

Fields

Domain (d=)
Selector (s=)
E.g. selector1, google, k1

Worked example

InputValue
Domain (d=)contoso.com
Selector (s=)s2048

Expected result: s2048._domainkey.contoso.com: v=DKIM1, k=rsa, 2048-bit RSA key; no testing mode.

2048-bit RSA is the current recommendation; 1024-bit keys are still accepted but should be replaced. An empty p= means the key is revoked and mail signed with that selector cannot be verified.

Method and assumptions

TXT is queried for selector._domainkey.domain; if there is a CNAME the resolver follows it and the tool shows the chain. Tags (v, k, h, t, s, p) are parsed.

p= is decoded as Base64 SubjectPublicKeyInfo; for RSA the modulus bit length is shown, Ed25519 is 256 bits. t=y marks testing mode.

Using the result and troubleshooting

Below 2048 bits, rotate to a new selector in your provider's console; revoke the old selector a few days after mail has been delivered.

If the selector is not found (NXDOMAIN), check the s= and d= values in the email again; the DKIM d= may differ from the From domain.

Limits and common mistakes

  • It does not verify an email signature; it only inspects the key in DNS.
  • It cannot list all selectors of a domain; DNS has no selector list.

Frequently asked questions

The Microsoft 365 selector1 CNAME shows up as TXT here — why?

In DNS selector1 is a CNAME; the resolver follows it and returns the TXT at Microsoft. The tool shows the CNAME chain separately.

Related tools and service

  • SPF Record CheckerExpands an SPF record with its include and redirect chain, counts the DNS lookup budget and shows structural errors.
  • DMARC Record CheckerReads the _dmarc record and interprets its policy, reporting and alignment settings.
  • Microsoft 365 DNS CheckerReads the MX, SPF, Autodiscover, DMARC and DKIM records Microsoft 365 needs from live DNS and compares them with the expected values.

Related service: Email Security and Phishing Protection

Cybersecurity online tools · See all online tools