The fix_dns_zone_ttls Script
Valid for versions 96 through the latest version
Version:
96
Last modified: March 27, 2024
Looking for this interface?
Note:
Your hosting provider can enable or disable this interface for resellers in WHM's Edit Reseller Nameservers and Privileges interface (WHM >> Home >> Resellers >> Edit Reseller Nameservers and Privileges).
Overview
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]
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 |
Example
The following example returns the TTL problems on the server:
/usr/local/cpanel/scripts/fix_dns_zone_ttls
The following example fixes the TTL problems on the server:
/usr/local/cpanel/scripts/fix_dns_zone_ttls --fix