Tool for updating all zone files with $TTL

RG rg1 at
Tue Nov 16 15:13:45 UTC 1999

On Tue, 16 Nov 1999 bind-list at wrote:

> is there a tool writen by som1 to update all my zone files with the new
> TTL setting ?
Copy all your zone files to a tmp directory and execute this little shell
script.  Make sure there is also a "new" directory.  All your new zone
files will be in there.

ls tmp | while read a
cp tmp/$a new/$a.bak
echo "\$TTL 43200" > new/$a
cat new/$a.bak >> new/$a
rm new/*.bak

More information about the bind-users mailing list