We are having the exact same issue with one of our clients, adding a CNAME for his subdomain
docs.gitbook.com
the moment we hit save we get
Code:
at /usr/local/cpanel/Cpanel/Admin/Base.pm line 808.
Cpanel::Admin::Base::handle_untrapped_exception("Cpanel::Admin::Modules::Cpanel::zone", "Zone is invalid: Line 32: x: CNAME and "...) called at /usr/local/cpanel/Cpanel/AdminBin/Server/Backend.pm line 157
Cpanel::AdminBin::Server::Backend::run_admin_module("perl_module", "Cpanel::Admin::Modules::Cpanel::zone", "uid", 3105, "args", ARRAY(0x35c72e0), "function", "MASS_EDIT", ...) called at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 222
Cpanel::AdminBin::Server::_request_handler(Cpanel::AdminBin::Server=HASH(0x35c6ec0), HASH(0x35c72f8), undef) called at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 123
Cpanel::AdminBin::Server::__ANON__() called at /usr/local/cpanel/Cpanel/Try.pm line 193
eval {...} called at /usr/local/cpanel/Cpanel/Try.pm line 193
Cpanel::Try::try(CODE(0x35c7010), "Cpanel::Exception::ProcessNotRunning", CODE(0x35c7088)) called at /usr/local/cpanel/Cpanel/AdminBin/Server.pm line 126
Cpanel::AdminBin::Server::handle_cpwrapd_request(Cpanel::AdminBin::Server=HASH(0x35c6ec0), HASH(0x35c6d40)) called at /usr/local/cpanel/Cpanel/Server.pm line 2456
Cpanel::Server::handle_cpwrapd_connection(Cpanel::Server=HASH(0x35bbe40)) called at cpsrvd.pl line 1866
cpanel::cpsrvd::_handle_unix_socket_connection("handle_cpwrapd_connection") called at cpsrvd.pl line 1119
cpanel::cpsrvd::script() called at cpsrvd.pl line 440
Cpanel::Exception/(XID j9w82a) Zone is invalid: Line 33: x: CNAME and other data; Line 33: x: CNAME and other data at /usr/local/cpanel/Cpanel/ZoneFile/LineEdit.pm line 403.
...propagated at /usr/local/cpanel/Cpanel/Admin/Base.pm line 746.
I then tried directly from WHM and the same but there I get a better debug, since cPanel sends outs a vague "contact them to find out"
Error: API failure: Zone is invalid: Line 33: x: CNAME and other data; Line 33:x: CNAME and other data at /usr/local/cpanel/Cpanel/ZoneFile/LineEdit.pm line 403.
You are right though we have a TXT record and an A record as well, I had to remove both, I had tested just taking the A record, and i received the error, then took both out and I can then set the CNAME, the Manager doesn't allow TXT record and CNAME record of the same name.
x | 14400 | TXT | v=spf1 +a +mx ....... |
Removing that record allows the CNAME to be set
Success: You successfully saved the following CNAME record for “x”: “y”.
Then I tried to put in the TXT record and I can't do that, the only way for me to achieve this is to
Code:
[root@esja etc]# cd /var/named
[root@esja named]# nano smart-proto*
[root@esja named]# service named reload
Reloading named: [ OK ]
This must be an error
@cPRex don't you think? There is not a violation of setting TXT records and CNAME records in a DNS file, only the manager thinks so.. It's violation if its A record and CNAME but not a TXT and CNAME, and I had to stick every record out of it for it to be pleased with the CNAME installation.
PS: It should be noted that now my client can not update any records, even adding a new subdomain wont work because the file is "corrupted" according to the Zone editor and needs the CNAME and TXT to be removed.