Kirya [.net]

24 May, 2008

How to fix DNS zone serial numbers

Posted by: Julien @ 22:05:24

A small memo in case it happens again… Maybe this can also help others…

I have made a typing error when incrementing a zone serial number this morning (I though we were in year 2009!). I realized this error after the transfer was made to my secondary server, and I couldn’t figure out how I could fix this: if the serial number on the slave server is lower than the serial number on the master, the slave server will attempt to update its copy of the zone.

I have read some websites explaining one should add 2147483647 (2^31-1) to the number, reload the zone, let the slave get updated and revert to the appropriate serial number.

Unfortunately, this solution hasn’t worked for me.

I have read in RFC 1912 (section 2.2 - SOA records), that the system was planned until year 4294. I have henced updated the number of my master server to year 4294123199 (ie. the last possible serial number), reloaded the zone. After the transfer was propagated to the slave, I could simply revert to a standard serial number.

2 Responses to "How to fix DNS zone serial numbers"

1 | romain

May 24th, 2008 at 11:41 pm

Avatar

To avoid messing up serial numbers, switch to Emacs 22+. In dns-mode, it updates them automatically when you save the file.

2 | Julien

May 25th, 2008 at 7:44 am

Avatar

Hi Romain,

I heard about this, but I do not want to change my editor just for editing my zones. I use exclusively GNU nano which is really great.

Thanks for the tip ;-)

Cheers,
Julien


  • Julien: Hi Jason, I have reported this issue on bugzilla.kernel.org. Maybe
  • Jason Lewis: Hi Julien, I just thought I'd let you know that I also get those errors with a 3.5" usb multi card reader that I recently bought. Howerver I found
  • Julien: I have just noticed that if I let the system issue these errors, I get other errors after a (long) while: [ 2478.872720] usb 2-3: reset high sp

About

You will find here some information about me and my different projects. I am involved in several open source projects, and try to promote Free software. This site is thus mainly dedicated to Free Software use on GNU/Linux systems. Please do not hesitate to contact me for any comments on this site.


Ads