Skip to main content

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

Comments

7 comments

  • cPRex Jurassic Moderator
    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.
    0
  • Zara wsaeem
    hey, i also have the same issue
    0
  • cPanelAnthony
    hey, i also have the same issue
    0
  • martin MHC
    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 (.in-addr.arpa); Line 30: ignoring out-of-zone data (.in-addr.arpa); Line 31: ignoring out-of-zone data (.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.
    0
  • martin MHC
    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 /var/named/.db
    0
  • martin MHC
    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.
    0
  • cPanelAnthony
    Hello! You will need to make the edits via command-line, so a root SSH session would work. The following article is relevant to the error. It may be worth reaching out to a systems administrator if you're unable to make these changes.
    0

Please sign in to leave a comment.