StackExchange / dnscontrol

Infrastructure as code for DNS!
https://dnscontrol.org/
MIT License
3.04k stars 381 forks source link

DNSControl prevents AKAMAICDN and CNAME on the same hostname #2959

Open hallorans-nca opened 2 months ago

hallorans-nca commented 2 months ago

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:

  1. Have a zone with the following two records CNAME('alpha','dnscontroltest.com.au.edgesuite.net.'), AKAMAICDN('alpha','dnscontroltest.com.au.edgesuite.net'),
  2. Run dnscontrol check
  3. 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

tlimoncelli commented 2 months ago

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.)