dnscontrol icon indicating copy to clipboard operation
dnscontrol copied to clipboard

DNSControl prevents AKAMAICDN and CNAME on the same hostname

Open hallorans-nca opened this issue 1 year ago • 2 comments

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

hallorans-nca avatar May 16 '24 15:05 hallorans-nca

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

tlimoncelli avatar May 16 '24 15:05 tlimoncelli

It also affects Cloudflare, which allows CNAME flattening.

xtexx avatar Jan 01 '25 03:01 xtexx