cPanel DNS Issue: cant add CNAME if TXT exists?

cPanel DNS Issue: cant add CNAME if TXT exists?

Recently encountered a weird issue with cPanel DNS Zone Editor that wasn’t mentioned anywhere on cPanel official documentation nor their forums, so I decided to write a quick guide for anyone else that might experience this issue in the future.

The problem was that cPanel was not accepting CNAME record for a subdomain with the following error message:

Error: The request failed. (Error ID: xxxxxx) Ask your hosting provider to research this error in cPanel & WHM's main error log.
Error: The request failed. (Error ID: xxxxxx) Ask your hosting provider to research this error in cPanel & WHM’s main error log.
Error: The request failed. (Error ID: xxxxxx) Ask your hosting provider to research this error in cPanel & WHM’s main error log.

As I suspected the problem was with that domain’s DNS zone and after troubleshooting the issue I noticed that the line that was causing this problem is a TXT record on that same subdomain:

line 173
line 173

After removing this TXT record from the DNS zone the CNAME could be successfully added.

Later I was also able to reproduce the issue if the domain already has a CNAME record, cPanel does not allow TXT records to be added:

Error: The request failed. (Error ID: xxxxxx) Ask your hosting provider to research this error in cPanel & WHM’s main error log.
Error: The request failed. (Error ID: xxxxxx) Ask your hosting provider to research this error in cPanel & WHM’s main error log.
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.