DKIM Record Generator | Dreamlit AI

DKIM Record Generator

Generate and check a DKIM record.

Format DKIM TXT public-key records and provider CNAME targets for Google Workspace, Microsoft 365, SendGrid, Amazon SES, Resend, Postmark, Mailchimp, HubSpot, and custom senders.

Build your DKIM record

Pick your provider, then paste the DKIM key or target it gave you. We format the exact DNS record to publish, and can check that your selector is already live.

Which service sends your email?

Selector

Your provider sets this. Examples: google, selector1, s1, k1.

What did your provider give you?

DKIM public key

Paste the public key your provider generated. PEM headers and line breaks are removed for you.

Advanced options

Check that your selector is live in DNS and compare an existing value.

DKIM record

Needs provider value

Publish this at google._domainkey, then verify DKIM in your provider.

Findings

Provider notes

Basics

What is a DKIM record?

A DKIM (DomainKeys Identified Mail) record is a DNS record at a selector host, such as google._domainkey.example.com, that holds the public key your email provider signs messages with. Receiving servers use it to confirm a message really came from your domain and was not changed on the way.

You don't create the key yourself. Your email provider generates it, and you publish the value it gives you. This tool formats that value into the exact DNS record and checks the live selector for you.

How do you create a DKIM record?

Turn on DKIM in your email provider, copy the selector and value it gives you, then publish that value at selector._domainkey. Your provider makes the key, so you only publish and verify it.

  1. Turn on DKIM in your email provider
    In your provider's admin area (Google Admin, Microsoft 365, SendGrid, and so on), start DKIM or domain authentication. The provider creates the key pair for you.

  2. Copy the selector and DNS value
    Your provider shows a selector, like google or selector1, plus either a TXT public key or a CNAME target. Copy them exactly.

  3. Pick TXT or CNAME
    Use the record type your provider gives you. A TXT record holds the public key after p=, while a CNAME points to a value the provider hosts.

  4. Publish the record at selector._domainkey
    Add it in your DNS at the host selector._domainkey.yourdomain.com, using the exact host and value from your provider.

  5. Verify DKIM in your provider
    After DNS updates, go back and verify or enable DKIM so outgoing mail gets signed. Send a test email and check the headers for dkim=pass.

What DKIM record do I need for each provider?

Your provider generates the value and tells you whether to publish a TXT public key or a CNAME target. Copy the selector, record type, and value exactly, then find your provider below.

Provider DKIM record What to do
Google Workspace TXT at google._domainkey Use the google selector unless Google Admin shows a different selector. Paste the generated public key into a TXT record at google._domainkey.
Gmail TXT at google._domainkey For a custom domain sending through Gmail or Google Workspace, create the DKIM key in Google Admin. Personal @gmail.com addresses do not use your domain's DKIM record.
SendGrid CNAME at s1._domainkey SendGrid domain authentication commonly gives s1 and s2 CNAME records. Copy the selector hosts and targets exactly.
Microsoft 365 CNAME at selector1._domainkey Microsoft 365 usually gives selector1 and selector2 CNAME targets. Publish the exact targets before enabling DKIM signing.
Amazon SES Use the SES token as selector Amazon SES generates token-like DKIM CNAME records. Use the selector token and target SES shows for the identity.
Resend Use Resend's generated CNAME Resend shows DKIM DNS records during domain setup. Paste the generated host selector and target exactly.
Postmark TXT at pm._domainkey Postmark gives you a DKIM TXT value. Paste the public key portion or copy the provider value exactly in DNS.
Mailchimp CNAME at k1._domainkey Mailchimp authentication uses provider-generated DNS values. Use the exact selector and target Mailchimp shows.
HubSpot Use HubSpot's generated CNAME HubSpot generates DKIM records per sending domain. Paste the exact selector and target from HubSpot.

Common mistakes

Publishing a placeholder key

A DKIM TXT record must contain the real provider-generated public key after p=. Do not publish a placeholder value.

Using the wrong selector

The selector is part of the DNS host. A valid key at google._domainkey will not help if your provider signs with selector1.

Changing TXT to CNAME, or CNAME to TXT

Publish the exact record type your provider gives you. DKIM providers are not interchangeable here.

Skipping provider verification

After DNS propagates, enable or verify DKIM in the provider so outgoing mail is actually signed.

DKIM record questions, answered.

Short answers for setup, selectors, record types, and verification.

DKIM and sender authentication references