Problems editing dns records on 98.0.8, Error: API failure: Zone is invalid:

rasmusp

Registered
Sep 28, 2021
1
0
1
Finland
cPanel Access Level
DataCenter Provider
Hi!
We are having problems adding, editing and deleting dns-records on one domain.

whm zone manager gives the error:
Error: API failure: Zone is invalid: Line 7502: :4dea:7502); Line 7503: :4dea:7503) at /usr/local/cpanel/Cpanel/ZoneFile/LineEdit.pm line 403.
The numbers displayed 7502: :4dea:7502 seems to be ipv6 addresses that are part of a subdomain hosted on another server(DC/AD), so the ipv6 addresses can't be found in the problematic Zone.

cpanel zone editor says:
Error: The request failed. (Error ID: emav49) Ask your hosting provider to research this error in cPanel & WHM’s main error log.

Named-checkzone complains about the ipv6 aaaa glue records for the subdomain but still ends with an OK

We are running PowerDNS

All other domains works fine.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,030
313
cPanel Access Level
Root Administrator
Hey there! The named-checkzone command should give you a specific line number of the file that is causing the issue. As a test, you could try commenting out those lines to see if that resolves the problem, as that would confirm where the issue is.
 

cPanelAnthony

Administrator
Staff member
Oct 18, 2021
656
62
103
Houston, TX
cPanel Access Level
Root Administrator
hey,
i also have the same issue.....The DNS-records on one domain cannot be added, edited, or deleted.
any suggestion.....
Hello! Could you use the "named-checkzone" utility against the DNS zone in question and let me know the results? Please censor/remove any domain names if you provide the output here as we do not want private information posted on our public forum.

 

martin MHC

Well-Known Member
Sep 14, 2016
220
36
78
UK
cPanel Access Level
Root Administrator
Hello We are also having the same issue here.

The error appears to come from the upstream parent " API failure: Zone is invalid: Line 29: ignoring out-of-zone data (<ip>.in-addr.arpa); Line 30: ignoring out-of-zone data (<ip>.in-addr.arpa); Line 31: ignoring out-of-zone data (<ip>.in-addr.arpa) at /usr/local/cpanel/Cpanel/ZoneFile/LineEdit.pm line 403. " being not accepted when this IS VALID and required for reverse DNS lookups

Also because it's an interface and not the raw DNS we can't see or edit any part of any other DNS rule because of this error. Please fix.
 

martin MHC

Well-Known Member
Sep 14, 2016
220
36
78
UK
cPanel Access Level
Root Administrator
For reference for anyone else who know's what they're doing and has access to server files, the raw DNS records can be found on

Code:
/var/named/<domain_name>.db
 

martin MHC

Well-Known Member
Sep 14, 2016
220
36
78
UK
cPanel Access Level
Root Administrator
Hey there! The named-checkzone command should give you a specific line number of the file that is causing the issue. As a test, you could try commenting out those lines to see if that resolves the problem, as that would confirm where the issue is.
Rex, the new DNS interface doesn't show line numbers and doesn't enable commenting out of lines. Lines can be edited or deleted, except they can't be edited because if there is any issue at all on any part of the record according to the DNS Zone interface on WHM, then none of the edits are saved. Catch-22.
 

cPanelAnthony

Administrator
Staff member
Oct 18, 2021
656
62
103
Houston, TX
cPanel Access Level
Root Administrator