Updating bind serial numbers automatically
There is a way that works with all versions of BIND, a way that works with Version 4.8.1 and later, and one that works with 4.9 and later.
The way that always works with all versions is to purge your slaves of any knowledge of the old serial number.
The reload induces the name server to refresh all of its slave zones.
If your name server is 4.8.3 or earlier, remove all the slave's backup zone data files (or just the ones you want to force), kill the slave server, and start up a new one.
This creates certain anomalies; for example, 1.1 is "greater" than 2, and 1.10 is "greater" than 2.1.However, even when you use a tool, it is critical to know what goes on when the files are updated, so we'll start with the manual method.After creating your zone data files initially, it should be fairly apparent what you need to change when you add a new host.The syntax of zone data files lends itself to making mistakes.It doesn't help that the address and pointer records are in different files, which must agree with each other.