Can't change the TTL valude of NS ?

psalm91

Verified User
Joined
Sep 20, 2015
Messages
123
Is there any reason why I can't change the TTL value of NS?
I change it and then come back to see all are back to default 14400 ?
 

floyd

Verified User
Joined
Mar 29, 2005
Messages
5,482
Copy the:
Code:
/usr/local/directadmin/data/templates/named.db
to
Code:
/usr/local/directadmin/data/templates/custom/named.db
and replace the TTL values You want to change inside that new custom file.

Existing zones can be rewritten with new values with the command:
Code:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
Wait for the cronjob to run.
 

psalm91

Verified User
Joined
Sep 20, 2015
Messages
123
Wait a min God help me please please..................... Why is it so time taking ?

So If I want to make ns to 1 hour what should I change here?


|?SET_TTL=`DEFAULT_TTL`|
|?NS_TIME=`SET_TTL`|
|?A_TIME=`SET_TTL`|
|?MX_TIME=`SET_TTL`|
|?CNAME_TIME=`SET_TTL`|
|?PTR_TIME=`SET_TTL`|
|?TXT_TIME=`SET_TTL`|
|?AAAA_TIME=`SET_TTL`|
|?SRV_TIME=`SET_TTL`|
|?SPF_TIME=`SET_TTL`|
|?TLSA_TIME=`SET_TTL`|
|?CAA_TIME=`SET_TTL`|
|?DS_TIME=`SET_TTL`|
$TTL |SET_TTL|
@ IN SOA |NS1| |EMAIL| (
|SERIAL|
|SET_TTL|
3600
1209600
86400 )

|NS|
|A|
|MX|
|CNAME|
|PTR|
|TXT|
|AAAA|
|SRV|
|SPF|
|TLSA|
|CAA|
|DS|
 
Last edited:
Top