The fix_dns_zone_ttls Script

Valid for versions 96 through the latest version



Last modified: June 25, 2021


The /usr/local/cpanel/scripts/fix_dns_zone_ttls script fixes problems with TTL values in DNS zone files.

Run the script

By default, if you don’t pass any options, this script will only return TTL problems. Use the --fix option to repair the problems.

To run this script on the command line, use the following format:

/usr/local/cpanel/scripts/fix_dns_zone_ttls [options]


Use the following options with this script:

Option Description Example
--fix Whether to fix the TTL value problems. --fix
--help Display the script’s help documentation --help


The following example returns the TTL problems on the server:


The following example fixes the TTL problems on the server:

/usr/local/cpanel/scripts/fix_dns_zone_ttls --fix

Additional Documentation