Lower down TTL value (Bind)

Discussion in 'ISPConfig 3 Priority Support' started by Stelios, Jan 19, 2023.

Tags:
  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,

    I want to lower down the TTL value on a specific domain/zone due to an upcoming migration.
    In the past on a normal server without control panel all I have to do was to run something like:
    cd /var/named
    perl -pi.bak -e "s/3600/399/g" mydomain.db

    I've got a multi server setup with 2 standalone DNS servers. I went into the first and looked for the zone files and see the following:

    /etc/bind/Kmydomain.com.+007+52892.key
    /etc/bind/Kmydomain.com.+007+52892.private
    /etc/bind/Kmydomain.com.+007+53838.key
    /etc/bind/Kmydomain.com.+007+53838.private
    /etc/bind/dsset-mydomain.com.
    /etc/bind/pri.mydomain.com
    /etc/bind/pri.mydomain.com.signed

    Which one is the proper one to edit (I guess the /etc/bind/pri.mydomain.com) and is it going to be synced automatically to the second DNS or do I need to run anything afterwards?

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The TTL is available in the zone settings in ISPConfig, change it and press save. Do not edit zone files manually.
     
  3. Stelios

    Stelios Active Member HowtoForge Supporter

    I'm trying to find a way to edit many zones in once instead of click hours as I have many zones that I want to edit.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Change it via sql query in dns_soa table in the ISPconfig database and then use Tools > resync in ISPConfig to write the changes to disk.
     
    Th0m likes this.

Share This Page