Bind updating serial number dating websites to meet newcomers

Assume the changed serial number was set to 2003022900, which as we all know does not exist, 2003 not being a leap year; however, BIND does not know that and a zone transfer will have taken place, 29 being greater than 28.The simple fix is to increment the date again to 2003030100 and keep using the sequence number until the correct date is reached (tomorrow in this case).The SOA serial number is an unsigned 32-bit field with a maximum value of ((2**32) -1), which gives a range of 0 to 4294967295 (the value zero may have special significance in certain DNS implementations and should be avoided), but the maximum increment to such a number is ((2**31) - 1) or 2147483647 (incrementing the number by the maximum value would wrap and give the same number).

If the erroneous serial number entered is less than today, that is, 2003022700, the fix is trivial: simply correct the serial number and restart (or reload) BIND or reload the zone using rndc.

If the number is too high, it depends on how high the number is and how frequently the zone file is changed.

We plead an excess of euphoria and have committed to perform all such serial number calculations without using a calculator as an act of atonement - for a strictly limited period!

Problems, comments, suggestions, corrections (including broken links) or something to add?

Zone transfer to zone slave(s) will, in the event of zone file changes, occur only if the serial number of the SOA RR is arithmetically greater that the previous one (as defined by RFC 1982).

To illustrate the fixes possible, it is assumed that today's date is 28 February 2003 (serial number 2003022800).First, add 2147483647 to the erroneous value, for example, 2008022800 2147483647 = 4155506447, restart BIND or reload the zone, and make absolutely sure the zone has transferred to all the slave servers.Second, set the SOA serial number for the zone to the correct value and restart BIND or reload the zone again.Please take the time from a busy life to 'mail us' (at top of screen), the webmaster (below) or info-support at zytrax.You will have a warm inner glow for the rest of the day.A nice HOWTO about this is at: is also the recommended way in the DNS & BIND book (2006 ed.).

Tags: , ,