CNAME records, unable to save

Hello, I’ve been having this issue for a few days. I have been trying to point my custom domain api.falconlite.com with my koyeb app, but when I save the records on my cpanel, I get this error: Error: The DNS zone file is invalid. (Line 123: api.falconlite.com: CNAME and other data) . But when I delete the subdomain and add the record, it worked.

Hello,

It seems that your zone file generated from your cpanel is invalid.

You may find resources only to help you with this specific error.

This issue occurs on the WHM Edit DNS Zone page when you try to add or edit a CNAME record. This error indicates that you have a domain name in your zone file that owns both a CNAME record and a record of another type. You need to remove the conflicting record to add the new CNAME record.

Please note that the zone apex (records that share the same name as the zone itself, “domain.com” for example) cannot be set as a CNAME record.

I don’t know if this helps, but maybe you are trying to add the same entry multiple times ?

Bastien