CNAME records, which map an alias to a canonical domain, significantly affect DNS records, especially for email deliverability. TXT records like SPF, DKIM, and DMARC are generally preserved, but MX records MUST point to A records, not CNAMEs, to avoid delivery failures. If a domain uses a CNAME, the original domain's SPF record is disregarded, and the destination's SPF takes precedence. A CNAME subsumes all records at its level, redirecting DNS resolution. CNAMEs disrupt email configurations, associating services with the new domain. Improper CNAME usage conflicts with MX records and email routing, and it's not recommended on the root domain. Ensure DMARC policies resolve correctly, and DKIM keys are different from the domain. A CNAME record causes the original domain's SPF record to be ignored, with the destination's SPF taking precedence.
13 marketer opinions
CNAME records, while useful for aliasing one domain to another, can significantly impact DNS records crucial for email deliverability. While TXT records like SPF, DKIM, and DMARC, are generally preserved when an A or CNAME record is modified, issues arise when MX records are involved. MX records should point directly to A or AAAA records, not CNAMEs, to avoid mail delivery problems. Pointing a domain with an SPF record to a CNAME will cause the original domain's SPF record to be ignored, and the destination's SPF record will apply. A CNAME will subsume all records at the level at which it is applied, so when a DNS resolver encounters a CNAME, it replaces the name with the canonical name and restarts the resolution process, affecting all record types at that particular name. CNAME disrupts configurations related to email, which means that all the services previously linked to the origin domain will now be associated with the new domain. Therefore, using CNAMEs improperly leads to conflicts, particularly with MX records and email routing. It is generally not recommended to put a CNAME record on the root of a domain.
Marketer view
Email marketer from EasyDMARC explains that While DMARC records themselves are TXT records and don't directly conflict with CNAMEs on other subdomains, the domain used in your DMARC policy (e.g., for reporting) should resolve correctly without CNAME-related issues, especially if you're using subdomain delegation.
24 Apr 2023 - EasyDMARC
Marketer view
Email marketer from DNSimple states that a CNAME record essentially redirects one domain or subdomain to another. While convenient, using CNAME records improperly can lead to conflicts with other records, particularly MX records needed for email routing. They advise against using a CNAME record for the root domain.
7 Nov 2023 - DNSimple
3 expert opinions
CNAME records significantly impact SPF records. If a domain sending email uses a CNAME, the original domain's SPF record is ignored, and the SPF record at the CNAME's destination must be correctly configured; otherwise, SPF authentication will fail. When generating DKIM keys, ensure they differ from the domain to prevent spam when using CNAME records.
Expert view
Expert from Spam Resource explains that if a domain uses a CNAME record, the SPF record associated with the original domain will be disregarded and the SPF record for the CNAME destination will apply instead.
12 Jun 2022 - Spam Resource
Expert view
Expert from Word to the Wise explains when creating DKIM keys, the best practice is to set them to be different than the domain. And with a CNAME this also prevents sending spam in the customers name.
7 Jun 2022 - Word to the Wise
4 technical articles
CNAME records map alias names to canonical domain names, redirecting DNS lookups. While useful, standards like RFC 1034 and best practices from Google Workspace and Digital Ocean emphasize that MX records must point directly to A records, not CNAMEs. Using CNAMEs for MX records can cause mail delivery failures due to resolution issues.
Technical article
Documentation from Digital Ocean explains that MX records must point to an A record, not a CNAME. CNAME records are usually employed to map one domain to another, and will cause issues for mail to resolve to the CNAME and then the location, so email can fail
24 Aug 2024 - Digital Ocean
Technical article
Documentation from RFC 1034 specifies that when a CNAME record is present, the DNS resolver should replace the CNAME record with the canonical name and restart the query. The standard also implies CNAME records should not co-exist with other record types for the same name.
14 Sep 2022 - RFC Editor
Are SPF, DKIM, and DMARC as important in B2B as in B2C email marketing?
Are SPF, DKIM, and DMARC records necessary for transactional email servers not used for marketing?
Can DKIM be set up on a subdomain, and which domain should be used for signing?
Can I use DMARC with shared IP addresses?
Do SPF and DKIM records need to be aligned for all email service providers?
Does a DMARC record need to be associated with the _dmarc subdomain?
How can I ensure email compliance with Yahoo/Google rules including DMARC, SPF, and FcrDNS?
How do SPF, DKIM, and DMARC affect email deliverability with Cvent?
How do SPF, DKIM, and DMARC email authentication standards work?
What are SPF, DKIM, and DMARC, and when are they needed?