[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Change TTL for all domains.



On Thursday 07 February 2002 09:51 pm, Brent Sims wrote:
> On Thu, 7 Feb 2002, Brian Rahill wrote:
> 	DON'T USE THIS SCRIPT - PERIOD.
> 	------------------------------
>
> #!/bin/bash
> #
> # Script to change the TTL line in db files...
> #
>
> echo "this script will remove old \$TTL lines, and"
> echo "replace them with a 120 \$TTL to the top of"
> echo "the zone file. Don't use this script as it"
> echo "may very well totally trash your zone files".
>
> LIST=`ls *`;
>
> for FILE in $LIST
>    do
>     echo "Adding TTL line to $FILE"
>     echo "\$TTL 120" > temp.db;
>     cat $FILE | sed -e '/^\$TTL/d' >> temp.db;
>     cat temp.db > $FILE;
>    done
>
> DON'T USE THE SCRIPT LISTED ABOVE
> ---------------------------------
>

How would we add changing the serial number, then when finished,
do a ndc reload
So the slave gets updated.

-- 
Gerald Waugh