Why would one domain publish several DKIM selectors at the same time, and what makes a good selector naming scheme?
answer
- many keys, one signing domain
- one key pair per signer
- never recycle a name
- periods become DNS labels
- judge d=, not the selector
basics
~20 sSelectors let one d= domain hold many independent keys: one per signing system, outside service, region or algorithm, plus overlap during a change. Name them by signer and key generation, never reuse one for a new key, and leak no personal data.
solid answer
~50 sA selector is the left-hand part of the key's DNS name, so `s=` lets one signing domain publish any number of independent key pairs side by side. Domains use that for each signing system (the outbound gateway, a ticketing system, each outside sending service), for regions or business units, for an RSA key next to an Ed25519 one, and for the overlap while a key is replaced. Good names identify the signer and the key generation, such as `mta-s2026a` or `tickets-s2026a`, so an unexplained selector stands out. RFC 6376 warns against reusing a selector for a new key, because a failure can then no longer be told apart from forgery, and against names that leak user data. Periods are allowed and become DNS labels, which lets a subtree of selectors be delegated. Receivers should judge the `d=` domain, never the selector.
code
dns · 8 lines$ORIGIN _domainkey.example.com.
; outbound gateway: RSA and Ed25519 keys side by side
mta-s2026a IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqh...IDAQAB"
mta-s2026e IN TXT "v=DKIM1; k=ed25519; p=11qYAYKx...URo="
; help-desk system: its own key pair
tickets-s2026a IN TXT "v=DKIM1; k=rsa; t=s; p=MIIBIjANBgkqh...IDAQAB"
; outside sending service: selector delegated by alias
svcb-s2026a IN CNAME svcb-s2026a.dkim.sender.example.net.go deeper
Recall that a selector picks one of several keys under the same d= domain, and that it is part of the DNS name the key is fetched from.
Explain the common reasons for several selectors, why a new key gets a new selector, and why each selector holds exactly one TXT record.
Show how you would audit a domain's selectors from Authentication-Results and aggregate reports, retire dead ones and chase unknown ones.
Own the naming convention and the inventory as a standard: who may request a selector, how it is named, and who removes it when its signer goes away.
## What a selector is In **DKIM** (RFC 6376), the `DKIM-Signature` header carries two tags that locate the public key: `d=`, the **signing domain**, and `s=`, the **selector**. The key record sits at `<selector>._domainkey.<d=>`. Section 3.1 states the purpose plainly: selectors exist "to support multiple concurrent public keys per signing domain". Each selector is an independent key pair with its own TXT record, and the number of selectors is entirely the domain owner's choice. ## Why domains run several at once One selector is enough for a domain with one signing server and no outside senders. Most organisations soon need more: - **One key per signing system.** The corporate outbound gateway, a help-desk platform and an internal alerting host each hold their own private key, so a compromise of one does not expose the others. RFC 5863 section 3.4 says keys used by a third-party signer "need to be kept entirely separate" from the domain's own and from other signers'. - **One key per outside service.** Each sending service signing as the domain gets its own selector, which also makes its traffic visible in reports. - **Regions or business units.** RFC 6376 mentions selectors named after office locations, and administratively distributed organisations can manage separate keys per region or server. - **Algorithms side by side.** A `k=rsa` key and a `k=ed25519` key (RFC 8463, 2018) live at two selectors, never in one record, because a key record holds one key type and one key. - **Overlap during a change.** A new key is published at a new selector while the old one still answers for mail in flight; the order of that change belongs to key rotation. ## Naming rules that hold up RFC 6376 leaves the format open (the ABNF is one or more DNS sub-domain labels separated by periods), so the discipline is the owner's: 1. **Name the signer and the key generation.** `mta-s2026a`, `tickets-s2026a`, `svcb-s2026a`: anyone reading a header or a report can tell who signed, and a selector nobody recognises stands out. 2. **Never reuse a selector for a new key.** RFC 6376's operations note says reuse "makes it impossible to tell the difference between a message that didn't verify because the key is no longer valid and a message that is actually forged", and advises assigning new keys to new selectors. 3. **Keep personal and internal data out of the name.** The RFC warns domains to allocate selectors so that outside parties cannot harvest data from them, for example by using an unassociated value rather than a registered user's name for per-user keys. 4. **Use periods only when you mean DNS structure.** Periods are component separators and become label boundaries, so `march2026.eu` is looked up at `march2026.eu._domainkey.example.com`. That allows delegating a whole subtree, such as `eu._domainkey.example.com`, to the team that runs it. 5. **Keep each selector to one TXT record.** RFC 6376 section 3.6.2.2 says TXT records MUST be unique for a selector name; several records in one RRset give undefined results. Overlap is done with two selectors, never two records at one name. ## What a selector is not - **Not an identity.** RFC 5863, quoting RFC 5585, explains that if verifiers used the selector in their assessment "there would be no remaining mechanism for making a transition from an old, or compromised, key to a new one". Reputation and policy attach to `d=`. - **Not a secret.** The selector is printed in every signed message's header; anyone receiving mail learns it. - **Not discoverable by listing.** DKIM defines no way to enumerate a domain's selectors, so the domain's own inventory is the only complete list. ## Coexistence pitfalls - A **wildcard TXT record** that covers `_domainkey` names returns a value that is unlikely to be a valid key record; RFC 6376 section 6.1.2 calls this out. - **Selectors left behind** after a system or service is retired still answer, and any message signed with the matching private key still verifies. - **Two signers sharing one selector** means two parties hold one private key, which defeats the separation the selectors were meant to give. ## Keeping the inventory honest The evidence that a selector is live comes from receivers. `Authentication-Results` records the selector of each DKIM result as `header.s` (registered by RFC 8601), and the DMARC aggregate-report format of RFC 9990 (May 2026) now requires the selector for every DKIM result it reports. Comparing those observations against the inventory shows both dead selectors to retire and unknown ones to investigate.
- Why should a receiver not treat the DKIM selector as part of the sender's identity?Because the selector is the mechanism for changing keys. RFC 5863, quoting RFC 5585, notes that if assessments used the selector there would be no way to move from an old or compromised key to a new one without losing standing. Identity and reputation attach to the `d=` domain; the selector only says which of that domain's keys to fetch.
- How do you find out which DKIM selectors are actually signing as your domain?DKIM defines no way to list selectors, so start from your own inventory and check it against receiver evidence. `Authentication-Results` on test messages shows `header.s`, and RFC 9990 aggregate reports (May 2026) require the selector on every DKIM result. A selector in the reports that is not in the inventory is a signer nobody accounted for.
- A domain can have only one active DKIM selector.
- Reusing the old selector name for a new key is the simplest safe choice.
- Selectors are secret, so naming them after users is harmless.
- Two TXT records at one selector name are a supported way to overlap keys.
- Receivers are meant to judge mail by its selector as well as its d= domain.