Skip to content

DKIM Record Missing

DownBad’s Hardening checklist found no DKIM key on one or more of your domains. DownBad only looks for DKIM under a few common names, so this page first checks whether your domain has DKIM under another one, then helps you turn it on, and takes you to a checklist that counts it as done.

On Now, while no incident is open, the Hardening checklist lists DKIM under NEEDS, with a pill for each domain DownBad found no DKIM key for, as in 3 domains need DKIM.

Your domain is the name your website and email use, such as example.com. DNS (the Domain Name System) is the internet’s directory: it turns names into addresses, and it holds other facts about each domain in records. A TXT record is a DNS record that holds a line of text.

DKIM (DomainKeys Identified Mail) is a signature your mail service adds to every message it sends for your domain. A receiving mail service such as Gmail or Outlook checks the signature against a public key (the half of the signing key that anyone may see) published as a TXT record on your domain. The key’s record lives under a name that begins with a selector, a label your mail service chooses, followed by ._domainkey. and your domain, as in google._domainkey.example.com.

DownBad can’t list every selector a domain has, so it asks for four common ones: default, google, selector1 and selector2. It found no record containing v=DKIM1 under any of them. It checks this only on a domain that has an MX record (a DNS record naming the mail servers that accept the domain’s email).

Why DownBad ranks it NEEDS. Without DKIM, a receiving mail service can’t tell a message you sent from one someone else sent in your name, and your mail is easier to fake. Gmail’s sender guidelines require everyone who sends to Gmail accounts to set up SPF (a list of the servers allowed to send your mail, explained on SPF Record Missing) or DKIM, and anyone sending 5,000 or more messages a day to Gmail accounts to set up both. A domain that sends no email doesn’t need DKIM: see The domain sends no email.

The checklist shows what DownBad’s last lookup of the domain found. It can miss a key that is there, for one of these reasons:

  • Your mail service uses another selector. This is the most common reason. Google Workspace’s default selector is google, and Microsoft 365 uses selector1 and selector2, so DownBad finds those. Many other services choose their own, and DownBad can’t find a key under a name it doesn’t ask for. Step 1 of Check it yourself finds yours. If your key is there under another selector, your DKIM works: dismiss the item, as Your key uses a selector DownBad doesn’t check explains.
  • The key was added after DownBad last looked. checked, beside the checklist, says when that was. Follow Confirm DownBad sees the fix to look again.

1. Find your selector. Open a message sent from an address at your domain, in the inbox that received it, and view its source (the full text of the message, with the headers that mail services add). Most mail apps offer this in a menu on the message, under a name such as Show original or View source. Find the line that begins DKIM-Signature:. Its d= value is the domain that signed the message, and its s= value is the selector. Google’s DKIM guide gives the same way to find it. If the message has no DKIM-Signature line, your mail service isn’t signing mail for this domain: go to DKIM isn’t turned on for this domain.

2. Look up the key. This command asks DNS for the record at that selector. Run it in a terminal (the window where you type commands: Terminal on a Mac, PowerShell on Windows). It only reads, and changes nothing. Put your selector in place of google and your domain in place of example.com.

Terminal window
dig +short TXT google._domainkey.example.com

dig is a tool that asks DNS one question and prints the answer. +short prints only the records.

If it works
"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAj6T5sl/RwdSqGoYWaWaFbS2UAeyPrEmd0gogocmRfS441qwR8/0KB81Hw89P0l4YiFRrXYk7NVIGfyCRHAYYZUzCkGeOysI2EjgzLFhd/NEsbRzOEc/kWkK/RO6JFq/5lOn6M9AZw/ap9tds4JG9ApgNNdSpPxp9DmvpsOSgNMVflRxQFrk3kdS4RNAPKu/" "OPoA7dlR/A/pECryjRoYgENtDXzdnK70HgCekems6UDzxDj61cjyoKoXtEMF/QsaHEQ1Gjfv014rDJBsubk/kT5VqHkWHa/ia68Z5r228Ety/wFfQNjXTx/J7KGZ9GkZlKED659eiJcLnWcKDSiQlhwIDAQAB"

That is what it printed for github.com, which publishes a key at the google selector. A long key comes back in two or more quoted pieces; that’s normal. Some services publish the key as a CNAME (a record that points one name at another): then the first line is a name ending in a dot, and the key follows on the next.

If it fails, the command prints nothing at all.

Without a terminal: open Google Public DNS, Google’s free lookup page. Enter the selector’s name, such as google._domainkey.example.com, under DNS Name, choose TXT under RR Type, and press Resolve. When the key is there, the result has an Answer section whose data line holds it. When it isn’t, there’s no Answer section.

In DownBad, the domain’s page (open Watching, then the domain) shows a DKIM chip under Email Security. It shows what DownBad’s last lookup found, at the four selectors it asks for, not what DNS says now.

The causes below run from most to least likely, so start with the first.

Your key uses a selector DownBad doesn’t check

Section titled “Your key uses a selector DownBad doesn’t check”

This is the cause when step 1 of Check it yourself found a selector other than default, google, selector1 or selector2, and step 2 found a key at it. Your DKIM works, and there is nothing to fix.

  1. On Now, open the DKIM item in the Hardening checklist and press Dismiss. That dismisses it for every domain it lists, and each one counts as done in the checklist’s percentage.

  2. To bring a domain back, press Show N dismissed items under the checklist, where N is how many are dismissed, and press Restore beside the domain.

This is the cause when the messages you send from this domain have no DKIM-Signature line, or one whose d= names another domain, such as your mail service’s own.

  1. Find the DKIM setting in your mail service. It creates the key, and shows you the record to publish: its name (with the selector) and its value. For example, Google Workspace’s DKIM guide does this in the Google Admin console, and Microsoft 365’s DKIM guide gives two CNAME records, for selector1 and selector2. Any other service that sends as your domain, such as a newsletter tool, has its own DKIM settings, and each needs its own record.

  2. Add the record at your DNS host (the company whose servers answer DNS questions for your domain, often the company you registered the domain with, or a service such as Cloudflare), with the name and type your mail service gave you. Your DNS host’s own guide shows where: for example Cloudflare, DigitalOcean or Amazon Route 53. Some DNS hosts add your domain to the end of the name by themselves, so check their guide for whether to type google._domainkey or the full name.

  3. Go back to your mail service and turn on signing, if it has a separate switch for that. Google Workspace’s is Start authentication, in the guide linked in step 1.

This is the cause when nobody sends email from addresses at this domain, such as a domain that only points to a website. With no mail to sign, the domain needs no DKIM key.

  1. On Now, open the DKIM item in the Hardening checklist and press Dismiss. That dismisses it for every domain it lists, and each one counts as done in the checklist’s percentage.

  2. To tell receiving mail services that the domain sends no mail at all, publish an SPF record that says so, as SPF Record Missing explains.

DownBad doesn’t look at your domain again by itself for the Hardening checklist. The checklist reads the newest discovery report for the domain: the lookup DownBad makes when you add a domain, and again each time you rediscover it. checked, beside the checklist, says how long ago the newest report was made.

  1. Run the command in Check it yourself again, and wait until it shows the record you added. A DNS server that already looked for the record and found nothing can keep giving that answer for a while after you add it, and DownBad’s lookup can get the same old answer.

  2. In DownBad, open Watching and then the domain, to reach the domain’s page. Press Rediscover. DownBad looks the domain up again and lists what differs from the saved report. Nothing is saved yet.

  3. Press Save. The new lookup becomes the domain’s newest discovery report.

  4. Open Now and reload it. The domain’s pill on this item now counts as done, and checked shows the time of the new lookup. Now shows the checklist only while no incident is open.

If the item is still there after you saved, the new lookup didn’t find the record either. Go back to Is it you or us?, which lists the reasons DownBad can miss a record that is there.

Before you ask for help, collect:

  • the domain’s name, and when checked says DownBad last looked
  • the selector from the DKIM-Signature line, and the output of the command in Check it yourself, with when you ran it
  • the record exactly as you entered it at your DNS host

Then send all of it to us through Contact Us.