DKIM Record Generator:
Create Your Key Pair and DNS Record
When an email is sent without a DKIM signature, it has no way to prove it wasn’t altered in transit. Receiving servers treat that as a red flag, and legitimate messages start landing in Spam or getting rejected outright.
Sendmarc’s DKIM record generator creates a key pair and record for you, correctly formatted and ready to publish.
Generate a recordWhat Is a DKIM Record Generator?
DKIM attaches a cryptographic digital signature to each outgoing email. The receiving server verifies that signature using the public key published in the DNS.
A DKIM record generator creates that key pair (private and public) and produces the DNS TXT record domain owners publish to enable DKIM.
IT administrators use a DKIM record generator when onboarding a new sending domain or rotating keys.
s1._domainkey.yourdomain.com · TXT
v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA…
Common Use Cases
- New domain setupGenerate a key pair and record when a domain starts sending email.
- Key rotationReplace an existing key pair on a schedule or after a suspected compromise.
Key Features
- Key pair generationCreates a private and public key pair for a specified domain and selector.
- Formatted DNS TXT recordOutputs the record in the format required for publication.
- Selector supportLets you name a selector so multiple keys stay easy to tell apart and manage.
Why DKIM Matters
A domain without a valid DKIM record can’t prove its outgoing emails haven’t been altered in transit. That gap weakens DMARC too, since DKIM is one of the two authentication signals DMARC checks for alignment.
DKIM keys and record formatting have to follow an exact DNS specification, and a small deviation is easy to miss. A malformed record breaks silently: DKIM fails to validate, and the domain owner often doesn’t find out until deliverability drops or an audit flags it.
What Sendmarc’s DKIM Record Generator
Shows You
After you enter a domain and selector, the tool returns:
Private key
Used by your email server to sign outgoing messages. Keep this confidential and never publish it.
MIIEvQIBADANBgkqhkiG9w0BAQEFAASC…
Public key
Included in the DNS record, this is what receiving servers use to verify the signature.
DKIM record
The formatted DNS TXT record, containing the DKIM version and public key, ready to publish at _domainkey.domain.com.
TXT · v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA…
How to Use Sendmarc’s DKIM Record Generator
- Enter the domain. Provide the domain your organization sends email from.
- Name the selector and choose a key size. The selector helps receivers find the correct public/private key pair.
- Generate the record. Select Generate DKIM Record to create the private and public key pair.
- Review the record. Check the DNS TXT record the tool returns, including the version and public key, before you publish it.
- Publish the record. Copy the TXT record and add it to your DNS at
_domainkey.domain.com. - Configure the email server. Import the private key into the server that will sign outgoing email.
Once the record is published, use Sendmarc’s DKIM record checker to confirm it’s published correctly before relying on it in production.
Generate DKIM recordDKIM Record Generator FAQs
What is a DKIM record generator?
A DKIM record generator is a tool that creates a cryptographic key pair, private and public, and produces the DNS TXT record needed to enable DKIM for a domain.
What is a DKIM signature?
A DKIM signature is a cryptographic signature added to an email’s message body and a specific set of headers. It confirms that the header and body content weren’t altered during transmission, and the receiving server verifies it using the sending domain’s public key.
What are DKIM selectors?
A DKIM selector is a unique identifier that helps receiving servers locate the correct public/private key pair.
How do I generate a DKIM record?
Enter your domain and a selector into a DKIM record generator. The tool returns a private key, a public key, and a formatted DNS TXT record, which you then publish at selector._domainkey.domain.com.
How do I set up a DKIM record after generating it?
Publish the DNS TXT record the generator provides, then configure your email server to sign outgoing messages using the private key. Use a DKIM record checker afterward to confirm the record is published correctly.
What is the format of a DKIM record?
A DKIM record is a DNS TXT record whose value includes the DKIM version, key type, and public key, published at a selector-specific host. For example:
| Host | Type | Value |
|---|---|---|
selector._domainkey.yourdomain.com | TXT | v=DKIM1; k=rsa; p=[public key] |
Do I need a DKIM record?
DKIM isn’t required by every mailbox provider, but publishing a record is recommended. It lets receiving servers confirm a message wasn’t altered in transit, which supports both deliverability and DMARC alignment.
What’s the difference between DKIM and SPF?
DKIM confirms a message wasn’t altered in transit using a cryptographic signature. SPF confirms the sending server is authorized to send on behalf of the domain.