DNSControl prevents AKAMAICDN and CNAME on the same hostname
Describe the bug The Akamai Control Panel allows users to create AKAMAICDN records with the same name as a CNAME. DNSControl does not allow this combination.
To Reproduce Steps to reproduce the behavior:
- Have a zone with the following two records CNAME('alpha','dnscontroltest.com.au.edgesuite.net.'), AKAMAICDN('alpha','dnscontroltest.com.au.edgesuite.net'),
- Run dnscontrol check
- You will get an error similar to below
2024/05/16 14:22:02 ERROR: cannot have CNAME and AKAMAICDN record with same name: alpha.dnscontroltest.com.au
Expected behavior dncontrol check should pass this special case, and upload both records to EdgeDNS
DNS Provider AKAMAIEDGEDNS
Additional context The function checkCNAMEs seems to be function is causing my issue
CC @edglynes
(You'll need to work around this in the checkCNAMEs() function in pkg/normalize/validate.go. It's a layering violation but sadly that's unavoidable right now.)
It also affects Cloudflare, which allows CNAME flattening.