Introduction
This tool edits the TTL for all or some zones, then syncs those changes to your DNS cluster.
Procedure
The usage of the script is provided by the --help
flag:
[root@server]# /usr/local/cpanel/bin/set_zone_ttl --help
/usr/local/cpanel/bin/set_zone_ttl: Command line tool to update the TTL values for specified DNS Zones.
Usage:
/usr/local/cpanel/bin/set_zone_ttl
You must specify at least one of the following options:
--domain : Sets the TTL on all of the DNS records for the specified domain.
--user : Sets the TTL on all of the domains that belong to the specified user.
--reseller: Sets the TTL on all of the domains that belong to users owned by the specified reseller.
--all : Sets the TTL on all of the domains on the server.
Optional:
--force : Used to bypass confirmation dialogs.
--newttl: The new TTL value to use (Default: 3600 seconds).
--nosync: Do NOT sync changes across the DNS cluster after the modifications are made.
NOTE: If this switch is not specified, then the changes WILL be synced to all servers configured to "Synchronize Changes" in WHM's "DNS Cluster" interface.
For example, this command updates the TTL for all zones, then syncs the changes to the cluster:
/usr/local/cpanel/bin/set_zone_ttl --all --newttl 600