Select Page

With recent versions of cPanel, you may end up getting an error like this:

Error:API failure: Zone is invalid: Line 18: TTL set to prior TTL (1400) at /usr/local/cpanel/Cpanel/ZoneFile/LineEdit.pm line 390.

This error can cause a lot of grief in fixing, especially, if you do not have terminal access on the server side, such as if you are a user or a reseller. Unfortunately, this must be escalated to your hosting provider to fix.

The issue occurs when you have records in the zone, such as A records, that have different TTL values. In the past, that was not a problem ~ however, in recent updates of cPanel – it appears it is required to have the same type of record to match the TTL values across them.

cPanel have a troubleshooting guide here to fix this problem: Zone files cannot be modified in cPanel or WHM when two Resource Records TTLs differ after v96 update. You must have terminal access to do this. Simply, fire up the terminal and run the following command:

/usr/local/cpanel/bin/set_zone_ttl --domain ${domainame} --newttl ${ttl value}

Make sure to replace the variables, so for my domain – it would look like:

/usr/local/cpanel/bin/set_zone_ttl --domain mohsinsumar.com --newttl 14400

I hope this helps.