Skip to content

DKIM lookup

Enter a domain to find its DKIM keys. The common selectors are tried for you.

Example: DKIM check of github.com

What is a DKIM record?

DKIM (DomainKeys Identified Mail) lets a mail server sign the messages it sends. The signature is made with a private key. The matching public key is published as a TXT record, so any receiver can verify that the message was not altered and comes from the domain.

A domain can have many keys, usually one per sending service. Each lives under its own name, the selector, at selector._domainkey.yourdomain. The signature in every message names the selector to use.

How to read a DKIM record

In a zone file, the record looks like this:

selector1._domainkey.example.com.   3600   IN   TXT   "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..."
  • The name: the selector, then _domainkey, then the domain.
  • v=DKIM1 marks the record as a DKIM key. It is optional, and some providers leave it out.
  • k is the key type: rsa (the default) or ed25519.
  • p is the public key, base64-encoded. An empty p means the key has been revoked.
  • t=y marks the key as being tested.

From the command line

Look up DKIM records without this site.

On macOS and Linux, use dig:

dig selector1._domainkey.example.com TXT +short

On Windows, use nslookup:

nslookup -type=TXT selector1._domainkey.example.com

To skip caches, ask one of the domain’s nameservers directly: dig @ns1.example.net selector1._domainkey.example.com TXT.

Questions and answers

How do I find my DKIM selector?

Open a message you sent and view its source. The DKIM-Signature header contains s= followed by the selector, and d= followed by the domain. Enter that selector on the result page.

Why does the lookup find no key?

DNS has no way to list the selectors of a domain, so this tool tries the common ones: google, selector1, k1, s1 and a few dozen more. A provider that uses a random selector, such as Amazon SES, is not found until you enter it.

How long should a DKIM key be?

2048 bits for RSA. 1024-bit keys still verify but are considered weak, and receivers ignore keys under 1024 bits.

The record is a CNAME. Is that a problem?

No. Many providers ask you to create a CNAME that points to a key they host, so they can replace it without your help. The lookup follows the alias and shows the key.

Other record types