# Can a DKIM record be a CNAME instead of a TXT record?

Canonical: https://www.namesilo.com/questions/dns-and-email/can-a-dkim-record-be-a-cname-instead-of-a-txt-record

Published: 2026-11-18

Last updated: 2026-11-19

Topic: DNS & email

Yes. Microsoft 365 requires two selector CNAME records for its custom-domain DKIM workflow, while RFC 6376 defines the public-key lookup through DNS TXT. The CNAME delegates that selector lookup to Microsoft’s managed key data. Use the records generated for your own domain and tenant.

Follow the provider’s requested representation

Microsoft documents selector1._domainkey and selector2._domainkey, with both records required for rotation. Do not replace its requested CNAME with a copied public-key TXT record at the same owner. NameSilo supports CNAME publication; RFC 2181 prohibits other ordinary data at a CNAME owner.

Your next steps

Obtain both tenant-specific selector targets

Publish the two requested CNAME records

Complete the provider’s DKIM activation

Test a signed message and preserve both selectors

Follow the provider’s requested representation

Microsoft documents selector1._domainkey and selector2._domainkey, with both records required for rotation. Do not replace its requested CNAME with a copied public-key TXT record at the same owner. NameSilo supports CNAME publication; RFC 2181 prohibits other ordinary data at a CNAME owner.

Verified detail: Microsoft365 two CNAME selectors, managed keys and rotation.

Your next step: Test a signed message and preserve both selectors.

## Sources

- [Official supporting source](https://learn.microsoft.com/en-us/defender-office-365/email-authentication-dkim-configure)

- [IETF RFC 6376 §3.6.2](https://www.rfc-editor.org/rfc/rfc6376.txt#section-3.6.2)

- [IETF RFC 2181 §10.1](https://www.rfc-editor.org/rfc/rfc2181.txt#section-10.1)

- [NameSilo Add DNS Records](https://www.namesilo.com/api-reference/pages?uid=dns/dns-add-record)
