You may want to change TTL values for all domains and their DNS records on your Directadmin server. This can be done very easily. Here is how.
- Go to templates directory.
cd /usr/local/directadmin/data/templates
- Directadmin’s default TTL value is 14400, so let’s say we want to change it to 300. You will have to edit template file named.db.
sed -ie 's/14400/300/g' named.db
- Rewrite all configuration files for each user
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
Wait a minute or two, then check if user configs were rewrited with new values. Go to /etc/namedb and than open .db file of some domain. It should contain new TTL value.