How to find domains with unstandard TTL

stars

Verified User
Joined
Nov 3, 2010
Messages
61
Some time ago we had few domain migrations, and lots of our domains have unstandard TTL values of 600s. Anyone know some smart method of finding those domains/named records and correcting TTLs to standard values?
 
My question was how to find changed ttl, not how to change ttl. I know how to change ttl since it is the source of problem ;)

Anyway I found solution - in result of command
Code:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d400
Direct Admin prints out info: "TTL Override: Using 600" before changed domain zone
 
My question was how to find changed ttl, not how to change ttl. I know how to change ttl since it is the source of problem

You really asked both if to believe your starting message.

To find them use grep with /var/named/*.db
 
Tried grep but coudn't find right syntax for 600s TTL value since in every db we have text:
Code:
3600
1209600
. Anyway I didnt want also to change every zone to default TTL since some of them should stay with lower 600s TTL.

Solution was found 2posts above, we can close topic, thanks!
 
Back
Top