On 01/05/12 11:20, cloud cache wrote:
But, how will I know the current serial number of the zone, if the zone has been changing frequently?
In the past, I've used a script that queries the SOA just before doing the update (which is safe, because in a race condition you'll be "too low" and fail)
e.g. #!/bin/sh ZONE="example.com" SERVER="192.0.2.1" TTL=3600 SOA_SERIAL=`dig @$SERVER +short $ZONE SOA | awk '{ print $3 }' BUF=`mktemp` trap "rm -f $BUF" EXIT cat <<EOF >$BUF server $SERVER zone $ZONE update add $ZONE $TTL SOA your.values. go.here. $(( SOA_SERIAL+1 )) ... show send answer EOF _______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users