I ran into a problem the other day on a testing server. Apache was
stopped on the server hosting vegaDNS, and well I lost DNS to the whole
test bed for a little bit :). Easy enough to fix in the situation,
restart apache and all is well, but losing dns for a bit can blow if you
have a good number of users. I made some changes to update-data.sh to
avoid this, kind of dirty. I was wondering if anyone else had a better
idea, or anything I overlooked to avoid this particular problem. This
solution will keep the original DNS for any servers that are
unavailable.
for VD in $VEGADNS ; do
A=$[$A+1]
if wget -q -O "$TINYDNSDIR/root/data.srv-$A.tmp" $VD?state=get_data;
then
mv $TINYDNSDIR/root/data.srv-$A.tmp $TINYDNSDIR/root/data.srv-$A
fi
cat "$TINYDNSDIR/root/data.srv-$A" >>$TINYDNSDIR/root/data
done
.darrel.
--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.269 / Virus Database: 264.9.4 - Release Date: 9/21/2004