Email DNS
Check a DKIM record
Fetch the public key published for a selector, check its syntax and measure the key length.
How to read the result
Enter the selector and the domain as selector._domainkey.example.com. The tool also accepts selector:example.com and selector example.com. The header says Valid when the record has no errors.
| Field | What it means | What to do with it |
|---|---|---|
| Selector | The selector part of what you entered, the value a signer puts in the s= tag. |
Make sure it matches a selector your mail is actually signed with. |
| Domain | The signing domain, the d= value of the signatures that use this key. |
For DMARC, it must align with your From domain. |
| Key type | rsa or ed25519, from the k= tag. rsa when the tag is absent, its default. |
RSA is the one every verifier supports. Use Ed25519 only alongside an RSA signature. |
| Key length | The size of the public key in bits. For RSA it is read from the key's modulus; an Ed25519 key is always 256. | Aim for 2048-bit RSA. Under 2048 is flagged short_key, under 1024 weak_key. |
| Testing mode | Yes when the record carries the t=y flag. |
Verifiers must not treat your mail differently from unsigned mail while it is set. Remove it once signing works. |
| Revoked | Yes when p= is empty, which RFC 6376 defines as a revoked key. |
Expected for a retired selector. Unexpected on a selector still in use, because every signature fails. |
| Issues | A code for each problem found. Errors make the record invalid. Each code is explained below. | Fix errors first. |
| Record | The key record as published, with multiple strings joined. | Useful to compare with the value your provider gave you, character by character. |
| Bulk CSV upload | Locked. Verifies a CSV of email addresses with the email endpoint. DKIM is not part of that check, because a selector only appears in a signed message. | Needs a free account. |
| API access | Locked. The email endpoint checks MX, SPF and DMARC presence for each address, for 1 credit per address. DKIM stays a manual check in this tool. | Needs a free account, which includes 100 credits every month. |
Issue codes
| Code | Type | Meaning |
|---|---|---|
no_dkim_record |
Error | No DKIM key record at that name. Check the selector and the domain. |
multiple_dkim_records |
Error | More than one key record at the same selector. |
dns_error |
Error | The query failed: SERVFAIL, REFUSED or no answer in time. |
syntax_error |
Error | A segment between semicolons lacks the tag=value form. |
invalid_version |
Error | v= is present but is not exactly DKIM1, or is not the first tag. |
missing_public_key |
Error | No p= tag at all. |
revoked_key |
Error | p= is empty: the key is revoked. |
invalid_public_key |
Error | p= is not valid base64, or does not decode to a key of the stated type. |
unknown_key_type |
Error | k= holds something other than rsa or ed25519. |
weak_key |
Error | RSA key under 1024 bits. RFC 8301 tells verifiers not to accept it. |
not_for_email |
Error | The s= tag lists service types that exclude email, so verifiers ignore the record. |
short_key |
Warning | RSA key of at least 1024 but under 2048 bits. |
testing_mode |
Warning | t=y is set. |
sha1_only |
Warning | h= allows only sha1. RFC 8301 says rsa-sha1 must not be used for signing or verifying. |
unknown_tag |
Warning | A tag outside the set defined for key records, for example a misspelled one. |
How the check works
- The tool splits your input into a selector and a domain. A selector can contain dots, so
s1.mail._domainkey.example.commeans the selectors1.mail. - It queries the TXT record at
selector._domainkey.domainover DNS over HTTPS, at Cloudflare's 1.1.1.1 resolver, with Google Public DNS as the fallback. If the name is a CNAME, the resolver follows it and the key at the end of the chain is read. - It keeps the TXT records that look like DKIM keys, with a
v=DKIM1or ap=tag, and joins the strings of each one. - It parses the
tag=valuepairs:v,k,p,t,h,sandn. - It decodes the base64 public key. For RSA it reads the bit length of the modulus from the encoded key; for Ed25519 it checks for the 32-byte key that RFC 8463 specifies.
- It applies the flags: an empty
p=is revoked,t=yis testing mode, and ans=withoutemailor*excludes email.
What the check cannot know:
- Whether your mail is signed with this key. Only a message proves it, in its DKIM-Signature header.
- Whether a signature verifies. That depends on the message's body hash and signed headers, and on the private key matching this public key. Send a test message to a mailbox you control and read its Authentication-Results header for the receiver's verdict.
- Which selectors exist. DNS cannot list them, so the tool only checks the one you type.
- Fresh edits. Resolvers cache the record for its TTL, so a new key can take up to one TTL to show here.
DKIM key record tags
RFC 6376 section 3.6.1 defines the tags of the record at selector._domainkey.domain.
| Tag | Meaning | Default | Notes |
|---|---|---|---|
v |
Version | DKIM1 |
Optional, but if present it must be the first tag. |
k |
Key type | rsa |
ed25519 was added by RFC 8463. |
p |
Public key, base64 | Required | Empty means revoked. |
t |
Flags, colon-separated | None | y is testing mode. s requires the i= domain of signatures to match d= exactly, with no subdomains. |
h |
Acceptable hash algorithms | All | Use sha256. RFC 8301 retired sha1. |
s |
Service types | * |
email or *. Any other value makes email verifiers ignore the record. |
n |
Notes for humans | Empty | Ignored by verifiers. |
Reading a DKIM-Signature header
The key record is only half of DKIM. The other half travels in every signed message, in a header like this one:
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=s2026; h=from:to:subject:date:message-id; bh=...; b=...
| Tag | What it tells you |
|---|---|
d= |
The signing domain. This is the domain DMARC aligns with the From header. |
s= |
The selector. Together with d=, it gives the key's location: s2026._domainkey.example.com. |
a= |
The algorithm, rsa-sha256 or ed25519-sha256. |
h= |
The headers covered by the signature. from must always be among them. |
bh= |
The hash of the body. A footer added in transit changes the body and breaks it. |
b= |
The signature itself. |
c= |
Canonicalization for headers and body. relaxed tolerates whitespace changes; simple tolerates almost none. |
l= |
Optional body length. It lets content be appended after the signed part, so leave it out. |
t=, x= |
Signing time and expiration, in Unix seconds. |
When a message carries several signatures, RFC 6376 tells verifiers to keep checking until one verifies. One valid aligned signature is all DMARC needs.
Key length and algorithm guidance
| Key | Status | What to do |
|---|---|---|
| RSA under 1024 bits | RFC 8301: verifiers must not treat its signatures as valid. | Replace now, under a new selector. |
| RSA 1024 bits | The minimum RFC 8301 allows signers. | Plan a move to 2048 bits. |
| RSA 2048 bits | What RFC 8301 recommends. | The right default. The record spans several TXT strings. |
| RSA 4096 bits | The upper size verifiers must support. | Works. The record is about twice as long as a 2048-bit one, so check that your DNS host stores it in full. |
| Ed25519 | Added by RFC 8463, 256-bit keys. | Use as a second signature next to RSA, not instead of it. |
Where selectors come from
The selector name is chosen by whoever holds the private key, so it depends on who signs your mail.
| Who signs | Selector | Where the public key lives |
|---|---|---|
| Google Workspace | google by default; an administrator can pick another prefix. |
A TXT record you publish at google._domainkey under your domain. |
| Microsoft 365 | selector1 and selector2. |
CNAME records you publish, pointing to keys Microsoft hosts. Two selectors let it rotate keys without your help. |
| A newsletter or transactional sending platform | A name the platform picks. | A TXT record or a CNAME, as its setup page tells you. Check the exact name it gives you. |
| Your own mail server | Anything you choose, for example a date such as s2026. |
A TXT record you publish and rotate yourself. |
A domain can have all four at once. That is normal, and it is why a single "DKIM check" of a domain cannot exist: each selector is its own record.
Confirm signing end to end
A correct key record proves only that verifiers can fetch the key. To see the full chain work, send a message from each service to a mailbox you control and read its Authentication-Results header (RFC 8601). The receiver writes its DKIM verdict there, with the signing domain in header.d.
| Result | Meaning (RFC 8601 section 2.7.1) | What to do |
|---|---|---|
dkim=pass |
A signature verified. | Check that header.d is your domain, or DMARC will not count it. |
dkim=fail |
A signature was found but did not verify. | The key in DNS does not match the private key, or the message changed in transit. |
dkim=none |
The message was not signed. | Turn on signing in the sending service. |
dkim=neutral |
A signature had syntax errors or could not be processed. | Look at the DKIM-Signature header for a malformed tag. |
dkim=policy |
The message was signed, but some aspect of the signature was not acceptable to the receiver. | Check the key length and algorithm against the guidance above. |
dkim=temperror |
A temporary failure, such as a key that could not be fetched at that moment. | Retry. If it repeats, check the name servers of the signing domain. |
dkim=permerror |
A permanent error that verification cannot recover from, such as a required header missing. | Check the selector here too: a missing or revoked key also ends in an error. |
Rotating or upgrading a key
- Generate a new key pair in your sending platform or mail server, under a new selector name such as one that includes the year.
- Publish the public key at the new selector and check it here: right length, not in testing mode, no issues.
- Switch signing to the new selector. Send a message to an outside mailbox and confirm the
s=tag changed and the Authentication-Results header showsdkim=pass. - Keep the old selector published until mail signed with it has had time to be delivered and verified.
- Revoke the old selector by publishing it with an empty
p=. The checker should show it as Revoked.
Do the same per sending service, since each one signs with its own selector. The SPF, DKIM and DMARC guide shows how DKIM fits with the other two records, and the SPF checker covers the envelope side.
Same check through the API
One HTTPS call, one credit. The response below is the real schema returned by the API.
curl https://api.qelka.com/v1/email \
-H "Authorization: Bearer sk_test_your_key" \
-H "Content-Type: application/json" \
-d '{"email":"jane@exmaple.com","mode":"fast"}'const response = await fetch("https://api.qelka.com/v1/email", {
method: "POST",
headers: {
Authorization: "Bearer sk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
email: "jane@exmaple.com",
mode: "fast",
}),
});
const result = await response.json();{
"id": "lkp_01M84QZDZG5EJDJJE338NYR2ZA",
"object": "email",
"input": "jane@exmaple.com",
"status": "unknown",
"reason": "smtp_not_checked",
"did_you_mean": "jane@example.com",
"checks": {
"syntax": true,
"mx": true,
"smtp": null,
"catch_all": null,
"disposable": false,
"role": false,
"free_provider": false
},
"domain": {
"name": "exmaple.com",
"spf": true,
"dmarc": true
},
"score": 55,
"credits_used": 1,
"cached": false
}Bulk and pricing
- Upload a CSV of up to 2,000,000 rows from the dashboard or the API, pick the column, get the results back as a CSV.
- Every check costs 1 credit, live phone lookups cost 3. Cached results are billed the same way; calls that fail upstream are not billed.
- The free plan includes 100 credits every month. Paid plans start at $29 for 10,000 credits.
Frequently asked questions
What is a DKIM selector?
s= tag of the DKIM-Signature header, and the key lives at selector._domainkey.example.com. Selectors let one domain publish several keys at once, one per sending service or one per rotation period, without them colliding.How do I find my DKIM selector?
DKIM-Signature header. The s= tag is the selector and d= is the signing domain. Enter them here as selector._domainkey.domain. If the message carries several signatures, each one has its own selector, and each one is worth checking.Why does the checker find no DKIM record?
s= value of a real signature exactly, including any dots. Next, check that the record was created at selector._domainkey under the right domain, without your domain appended twice by the DNS panel. A key published minutes ago can also hide behind a cached "no record" answer for a while.Can you list all the DKIM selectors of a domain?
_domainkey. A zone transfer (AXFR) would, but a name server answers it only for the hosts its operator allows. Selectors are revealed by signed messages, in the s= tag. Tools that claim to discover selectors try a list of common names, which finds the defaults and misses everything else.What DKIM key length should I use?
Is a 1024-bit DKIM key still acceptable?
short_key. Plan a rotation to 2048 bits with a new selector. Keys under 1024 bits are worse: RFC 8301 tells verifiers not to accept their signatures as valid, and the checker reports weak_key.What does t=y mean in a DKIM record?
t=y once signing works, and keep the other tags unchanged.What does an empty p= mean in a DKIM record?
p= means the key has been revoked (RFC 6376 section 3.6.1). Every signature that points to this selector now fails. Publishing an empty key is the clean way to retire a selector after a rotation, because receivers get a clear answer instead of a missing record. The checker shows it as Revoked and reports revoked_key.Can I use Ed25519 keys for DKIM?
k=ed25519 and a 32-byte public key, shown here as 256 bits. A verifier that does not support the algorithm cannot use that signature, so pair it with an RSA signature on every message: a receiver needs only one valid signature, and each selector has its own record.Why is my DKIM record split into several strings?
Can a domain use several DKIM selectors?
_domainkey, so adding a service never disturbs the others. Rotation works the same way: publish a key under a new selector, switch signing to it, then revoke the old one. Check each selector separately here.Can a DKIM record be a CNAME?
Does DKIM need to align for DMARC?
d= domain aligns with the From domain: the same organizational domain in relaxed mode, the exact domain in strict mode. A message signed by a sending platform's own domain passes DKIM and still fails DMARC. Ask the platform to sign with your domain, then check the result with the DMARC checker.Why does DKIM fail after forwarding or a mailing list?
h=. A mailing list that adds a footer or a subject tag changes signed content, so the signature breaks. Plain forwarding that leaves the message unchanged keeps it valid. ARC (RFC 8617, experimental) lets intermediaries record the results they saw before modifying a message.How often should I rotate DKIM keys?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.