DKIM Record Generator

Generate a DKIM DNS record and key pair for your domain. DKIM adds a digital signature to your emails, helping prevent email spoofing and improving deliverability.

Other tools: SPF Record Generator | SPF Record Lookup | SPF Record Verification | DKIM Record Verification | DMARC Record Generator | DKIM Record Lookup | DMARC Record Lookup | DMARC Record Verification

DKIM Record Generator

Configure your DKIM settings and generate a key pair and DNS TXT record for your domain.

Domain
Selector
Key Size
Hash Algorithms

Email Authentication

Add digital signatures to your emails to prove they're really from your domain.

Prevent Spoofing

Stop others from sending emails that appear to be from your domain.

Improve Deliverability

Help ensure your emails reach the inbox instead of spam folders.

Understanding DKIM Records

DNS Record Setup

To add your DKIM record to DNS:

  1. Create a TXT record in your domain's DNS settings
  2. Set the name to: [selector]._domainkey.[domain]
  3. Set the value to the generated DKIM record
  4. Save and wait for DNS propagation (up to 48 hours)

Key Components

v=DKIM1

Version tag, always set to DKIM1

k=rsa

Key type (RSA is standard)

p=...

Your public key in base64 format

h=sha256

Allowed hash algorithms

Best Practices

  • Use RSA with 2048-bit keys for good security
  • Use SHA256 for hashing
  • Choose a descriptive selector name
  • Keep your private key secure
  • Regularly rotate keys (every 6-12 months)

Important: Keep your private key secure and never share it. The public key in the DNS record is safe to share.