A software tool for updating serial numbers in DNS zone files, providing a streamlined method for maintaining and synchronizing DNS records. Ideal for DNS administrators looking to simplify the management of DNS zones.
One of the most common uses of zsu is as part of revision control systems for zone files. This is because it can be used just before changes are committed to a repository. A simple script that utilizes zsu requires a single zonefile name as an argument, and uses ci/co/rcsdiff (all parts of RCS).
The script includes the following code:
#!/bin/sh
co -l $1
vi $1
rcsdiff -q $1 > /dev/null
if [ ! $? ]; then
zsu -cf $1
ci -u $1
fi
Zsu also has an option to ignore zone files where the originating host in the SOA record does not match the local hostname. Users can override this check by using the -f option.
In summary, zsu is a useful Perl module for updating zone file serial numbers, especially when used in revision control systems. Its functionality can be extended with the simple script provided, and it includes useful options such as ignoring certain zone files.
Version 1.20: N/A