The DNS zone file is invalid. (CNAME and other data)

Reado

Well-Known Member
Sep 8, 2009
241
12
68
United Kingdom
cPanel Access Level
Root Administrator
I have tried to add a CAA record for a sub-domain but was greeted with an error stating:

Error: The DNS zone file is invalid. (CNAME and other data)

So I deleted the CNAME record, which then let me add the CAA record. However, when I try to re-add the CNAME record, the same error appears and I cannot add the CNAME record.

I had a look at the cryptic support article but whoever wrote it should consider rewriting it to make sense, especially as 2 out of 6 people found it helpful.

I cannot see how this issue is not a bug. I added the CNAME a while ago without an issue and now I can't.

UPDATE: This is definitely a bug!! I cannot add the CNAME via WHM, so I was forced to add it manually via the /var/named/mydomain.db file, and now it appears perfectly fine in WHM.

I was forced to re-add the CNAME record via the DB file due to the fact this sub-domain is affecting a live service. Please resolve this bug!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
Hey there! Can you get us some more details? Without showing your actual domain or IP address, can you let me know *exactly* what the CAA record was you were trying to add, as well as the CNAME record that was causing the interface conflict? Once I have that I can do some additional testing.
 

Reado

Well-Known Member
Sep 8, 2009
241
12
68
United Kingdom
cPanel Access Level
Root Administrator
I have had a response to the ticket I created, however cPanel Support are useless in explaining how I need to resolve this. I don't want to know about Internet standards, even if they are relevant in this instance. This issue has only occurred recently and prior to that WHM allowed me to have a CNAME and a CAA record within the same zone.

For whatever reason, cPanel Support are being secretive as to why WHM is throwing this vague error and they don't seem to know themselves as to what is going on.

Deleting the CNAME to add the CAA means an SSL certificate can be issued, but now the domain is not pointing at anything - That's common sense surely???

Deleting the CAA means the SSL certificate cannot be issued.

What can I do to resolve this? Please please please help me...
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
I did read through the ticket, as well as the article at https://support.cpanel.net/hc/en-us...-other-data-when-trying-to-add-a-CNAME-record

I also see the ticket is being escalated to our Level 3 support, so you'll be getting an official reply from them soon.

The short explanation is that what you're trying to do isn't possible. You can either have the CNAME, or the CAA record, but not both. CNAME records can't have similar data as another record type. Our Level 3 technicians will be confirming this shortly.
 

Vecoen

Active Member
Oct 4, 2021
31
5
8
Spain
cPanel Access Level
Root Administrator
Same issue here, I am trying to create a CNAME of my main domain, but when I try to save it the error pop out. Just triyng to add a cname for domain.com as the name for the record.