NetworkAI
  • MonitoringCertificate & Domain MonitorDaily checks of TLS certificates, domain registration and DNS, with alerts when a renewal fails.
  • AssessmentSecurity AssessmentA passive security report for a domain you own: TLS, DNS, email authentication, headers and registration.
Herramientas gratuitas
Empieza aquíChequeo de salud del dominioSSL, DNS, autenticación de correo, cabeceras de seguridad y caducidad en un informe con puntuación.Hacer un chequeo →
Dominio
  • Comprobador masivo de caducidad de dominios
  • Consulta RDAP de dominios
  • Consulta WHOIS
SSL / TLS
  • Comprobador de certificados SSL
  • Comprobador masivo de caducidad SSL
  • Calculadora de vigencia de certificados (47 días)
  • Preparación para la vigencia de certificados
  • Comprobador de TLS poscuántico
DNS
  • Consulta DNS
  • Consulta MX
  • Comprobador de registros CAA
  • Comprobador de propagación DNS
  • Consulta de registros TXT
  • Consulta NS
  • Consulta CNAME
  • Consulta DNS inversa
Autenticación de correo
  • Comprobador de registros SPF
  • Generador de registros SPF
  • Comprobador de registros DMARC
  • Generador de registros DMARC
  • Comprobador de registros DKIM
  • Comprobador de requisitos para remitentes
Seguridad web
  • Comprobador de cabeceras de seguridad
Red e IP
  • ¿Cuál es mi IP?
  • Calculadora de subredes
Todas las herramientas gratuitas →
PreciosDocsGuías
Iniciar sesiónEmpezar gratis
  • MonitoringCertificate & Domain MonitorDaily checks of TLS certificates, domain registration and DNS, with alerts when a renewal fails.
  • AssessmentSecurity AssessmentA passive security report for a domain you own: TLS, DNS, email authentication, headers and registration.
Herramientas gratuitas
Empieza aquíChequeo de salud del dominio
Dominio
  • Comprobador masivo de caducidad de dominios
  • Consulta RDAP de dominios
  • Consulta WHOIS
SSL / TLS
  • Comprobador de certificados SSL
  • Comprobador masivo de caducidad SSL
  • Calculadora de vigencia de certificados (47 días)
  • Preparación para la vigencia de certificados
  • Comprobador de TLS poscuántico
DNS
  • Consulta DNS
  • Consulta MX
  • Comprobador de registros CAA
  • Comprobador de propagación DNS
  • Consulta de registros TXT
  • Consulta NS
  • Consulta CNAME
  • Consulta DNS inversa
Autenticación de correo
  • Comprobador de registros SPF
  • Generador de registros SPF
  • Comprobador de registros DMARC
  • Generador de registros DMARC
  • Comprobador de registros DKIM
  • Comprobador de requisitos para remitentes
Seguridad web
  • Comprobador de cabeceras de seguridad
Red e IP
  • ¿Cuál es mi IP?
  • Calculadora de subredes
Todas las herramientas gratuitas →
PreciosDocsGuías
Empezar gratisIniciar sesión
ON THIS PAGEDKIM in one paragraphHow DKIM signing worksWhat a DKIM record looks likeWhat a DKIM selector is, and how to find yoursHow to set up DKIMDKIM vs SPF vs DMARCWhy DKIM fails, and how to fix itFAQ
Home / Guides
GUIDE · 8 MIN READ · UPDATED NOV 2026

What is DKIM? How DKIM records work, and how to set one up

DKIM lets a receiving mail server check that a message really came from your domain and was not changed on the way. Here is how it works, what the DNS record means, and how to fix it when it fails.

DKIM in one paragraph

DKIM (DomainKeys Identified Mail, RFC 6376) is an email authentication standard. The sending server signs each outgoing message with a private key, and publishes the matching public key in DNS. The receiving server reads the signature, looks up the public key under your domain and checks that the two match. If they do, the message was sent by someone holding your key and its signed parts were not altered.

Gmail, Yahoo and Microsoft now require DKIM, or SPF, for all senders, and both plus DMARC for anyone sending in bulk. You can check what your domain sends against those rules with the bulk sender requirements checker.

How DKIM signing works

  1. Your mail service generates a key pair. The private key stays on the sending servers; the public key goes into a DNS TXT record.
  2. When a message is sent, the server hashes chosen headers (From, Subject, Date and others) and the body, signs the hash with the private key and adds a DKIM-Signature header.
  3. The receiving server reads the d= (domain) and s= (selector) tags in that header and fetches the public key from selector._domainkey.domain.
  4. It recomputes the hash and verifies the signature with the public key. The result, pass or fail, is recorded in the Authentication-Results header and fed into DMARC.
A DKIM-Signature header
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=google;
  h=from:to:subject:date:message-id; bh=2jUSOH9NhtVGCQWNr9BrIAPreKQjO6Sn7XIkfJVOzv8=;
  b=AuUoFEfDxTDkHlLXSZEpZj79LICEps6eda7W3deTVFOk4yAUoqOB...

What a DKIM record looks like

A DKIM record is a TXT record at selector._domainkey.yourdomain.com. Its value is a list of tags separated by semicolons:

A DKIM TXT record
google._domainkey.example.com.  TXT  "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."
TagMeaningExample
vVersion. Always DKIM1 if present.v=DKIM1
kKey type. rsa is the default; ed25519 is also allowed.k=rsa
pThe public key, base64-encoded. Empty means the key was revoked.p=MIIBIjAN...
tFlags. y means test mode, and receivers treat failures as if unsigned.t=y
hHash algorithms allowed. Rarely set.h=sha256

A 2048-bit RSA key is longer than the 255 characters one DNS string can hold, so the record is split into several quoted strings. Most DNS providers do this for you. A key that fails to decode is usually a copy-paste error at that split.

What a DKIM selector is, and how to find yours

The selector is the label in front of ._domainkey. It lets one domain publish many keys at once, one for each service that sends as you, such as your mailbox provider, a newsletter tool and a help desk. DNS has no way to list them, so you need the name to look a key up.

  1. Send a message from the service to an address you can read.
  2. Open the raw message: "Show original" in Gmail, "View message source" in Outlook.
  3. Find the DKIM-Signature header whose d= is your domain. The s= value is the selector.
ServiceUsual selectorsRecord type
Google WorkspacegoogleTXT
Microsoft 365selector1, selector2CNAME to Microsoft
Mailchimpk1, k2, k3CNAME
SendGrids1, s2CNAME
Fastmailfm1, fm2, fm3CNAME

Then enter the domain and selector in the DKIM checker. It also tries the common selectors above if you leave the field empty.

How to set up DKIM

Google Workspace

  1. In the Admin console, go to Apps → Google Workspace → Gmail → Authenticate email.
  2. Pick the domain and choose Generate new record. Keep the 2048-bit key length and the google prefix unless you need another.
  3. Add the TXT record it shows at your DNS provider, at google._domainkey.
  4. Wait for DNS to update (check with the TXT lookup), then press Start authentication.

Microsoft 365

  1. In the Microsoft Defender portal, open Email & collaboration → Policies & rules → Threat policies → Email authentication settings → DKIM.
  2. Select your custom domain. The portal shows two CNAME records, for selector1._domainkey and selector2._domainkey.
  3. Create both CNAMEs at your DNS provider, then turn on signing for the domain. Microsoft rotates between the two keys itself.
Admin console menus move from time to time. If a path above does not match, search the provider's help for "DKIM"; the records you create stay the same.

Other services (newsletter tools, CRMs, help desks) each have a "domain authentication" or "sender authentication" page that gives you their records. Every service that sends as your domain needs its own.

DKIM vs SPF vs DMARC

SPFDKIMDMARC
ChecksWhich servers may send for the domainThat the message was signed by the domain and not changedThat SPF or DKIM passed for the domain in the From address
Lives atTXT on the domainTXT or CNAME at selector._domainkeyTXT at _dmarc
Records per domainExactly oneOne per sending serviceExactly one
Survives forwardingUsually notUsually yesPasses if DKIM survives

DKIM alone does not stop spoofing, because a message can be validly signed by any domain. DMARC is what ties the signing domain to the From address and tells receivers what to do when neither matches. Check the other two with the SPF checker and the DMARC checker.

Why DKIM fails, and how to fix it

SymptomLikely causeFix
dkim=none or no signatureThe service is not signing as your domainTurn on DKIM in that service and publish its records
dkim=fail (no key for signature)No record at the selector, or a typo in the nameLook up selector._domainkey.domain; publish or correct it
dkim=fail (bad signature)Message changed in transit, often by a mailing list or security gateway that rewrites links or adds a footerSign after the gateway, or rely on ARC/SPF for that path
Key will not decodeRecord split or truncated badlyRe-paste the key as one value and let the DNS panel split it
Pass, but DMARC failsd= is the service's domain, not yoursSet up custom-domain signing so d= matches your From domain

To see the result for a real message, open its raw source and read Authentication-Results. It names the domain and selector checked and why it failed.

The Domain Health Check runs DKIM, SPF, DMARC, certificate and DNS checks on one domain in a single report, free and without signing up.

Frequently asked questions

What does DKIM stand for?

+

DomainKeys Identified Mail. It is an email authentication method, defined in RFC 6376, that adds a cryptographic signature to each message so receivers can verify it came from the signing domain and was not modified.

Is DKIM required?

+

In practice, yes. Since 2024 Gmail and Yahoo require all senders to use SPF or DKIM, and bulk senders (over 5,000 messages a day to Gmail) to use both plus DMARC. Microsoft introduced similar rules for Outlook.com in 2025.

Where is the DKIM record stored?

+

In DNS, as a TXT record (or a CNAME pointing at one) at selector._domainkey.yourdomain.com. With the selector google and the domain example.com, the record is at google._domainkey.example.com.

Can I have more than one DKIM record?

+

Yes. Each sending service uses its own selector, so a domain usually has several DKIM records. They do not conflict. This is different from SPF and DMARC, where a domain must have only one record.

What key length should DKIM use?

+

2048-bit RSA. 1024-bit keys still verify but are considered weak, and keys under 1024 bits are rejected under RFC 8301. Ed25519 keys are allowed but not yet verified by every receiver.

How long does a DKIM record take to work?

+

As long as your DNS takes to update, usually minutes and at most the record's TTL. Turn on signing in the mail service only after the record resolves, or messages will fail DKIM in the meantime.

Do I need SPF if I have DKIM?

+

Yes. They check different things: SPF checks which servers may send for the domain, DKIM checks that the message was signed and not changed. DMARC passes if either one passes in alignment, so having both means a message survives cases where one breaks, such as forwarding. Gmail and Yahoo require both for bulk senders.

Free tools for this

  • DKIM checker
  • SPF checker
  • DMARC checker
  • Gmail and Yahoo bulk sender check
  • TXT record lookup

More guides

  • 47-Day SSL Certificates: The 2026–2029 Validity Timeline
  • Domain Expired? What Happens Next: Grace & Redemption
  • Your Connection Is Not Private: How Site Owners Fix It
  • How to Renew an SSL Certificate (and Catch Failed Renewals)
Check DKIM nowLook up any domain's DKIM keys and key strength in seconds. Free, no signup.Open the DKIM checker
NetworkAI

Alertas de fallo de renovación para certificados TLS y registros de dominio.

Producto

  • Monitor de certificados
  • Precios
  • Iniciar sesión
  • Empezar gratis

Herramientas gratuitas

  • Chequeo de salud del dominio
  • Comprobador de certificados SSL
  • Comprobador de registros SPF
  • Comprobador de registros DMARC
  • Comprobador de cabeceras de seguridad
  • Consulta DNS
  • Todas las herramientas →

Categorías

  • Dominio
  • SSL / TLS
  • DNS
  • Autenticación de correo
  • Seguridad web
  • Red e IP

Recursos

  • Documentación
  • Alertas por Slack y webhook
  • Guías
  • Todas las comparaciones
  • NetworkAI vs UptimeRobot
© 2026 NetworkAI · Creado por un ingeniero de seguridad de redes
PrivacidadTérminos
EnglishالعربيةDeutsch