Tool for updating all zone files with $TTL
RG
rg1 at stingray.lauderdale.net
Tue Nov 16 15:13:45 UTC 1999
On Tue, 16 Nov 1999 bind-list at ddx.a2000.nu 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.
#!/bin/bash
ls tmp | while read a
do
cp tmp/$a new/$a.bak
echo "\$TTL 43200" > new/$a
cat new/$a.bak >> new/$a
rm new/*.bak
done
More information about the bind-users
mailing list