This little hack updates the SOA serial number in all DNS zone files with the file name ending in .zone. There are various things that can be added to this script. This type of script would be best used on a hidden master server.
#!/bin/sh
clear
echo
echo
echo "Updating SOA in all zones"
echo "Note: max serial is 4294967295"
sed -i 's/[0-9]\{10\}/'`date +%Y%m%d%H`'/g' /etc/bind/*.zone
echo
echo "Reload BIND9"
rndc reload
echo
echo "Check for failures if any"
grep failed /var/log/syslog
echo
echo "Check for errors if any"
grep errors /var/log/syslog
echo
echo "All done..."