How to reset the serial number?

Chris Buxton chris.p.buxton at gmail.com
Tue Mar 27 00:33:37 UTC 2012


On Mar 26, 2012, at 11:30 AM, Carlos Ribas wrote:

> Hello all,
> 
> I accidentally changed the serial number to one bigger than 32 bits and now I'm trying to reset the serial number. Following the manual of Bind9 I tried to add 2147483647 (2ˆ31-1) to the number and reload the server, but my slave is not updating to the new zone serial number.
> 
> Here is what I'm doing:
> 
> # dig @10.0.1.24 saturno.br SOA
> ...
> ;; ANSWER SECTION:
> example.br.         86400   IN      SOA     ns1.example.br. hostmaster.example.br. 2694341036 7200 3600 604800 86400
> ...
> 
> 2694341036 + 2147483647 = 4841824683
> 
> I put this number as serial, but did not work. I also saw that when the number is over than 4,294,967,295 I have to substract 4,294,967,296. So 4841824683 - 4294967296 = 546857387.  It did not work too. Does anybody knows what I'm doing wrong? I'm using Bind 9.7.3.

You cannot reload a dynamic zone. Could that be the problem?

A serial number higher than 2^32 will not load. Instead of adding 2^31 - 1, subtract 2^31 + 1. Or try adding 2^30 (or subtracting 3 * 2^30).

Make sure to reload the zone after each change, or if your zone is dynamic, use a dynamic update that adds the SOA record again and sets the new serial number.

Regards,
Chris Buxton
BlueCat Networks


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20120326/1385a131/attachment.html>


More information about the bind-users mailing list