How to fix wrong dns serial number?

6 January, 2009 (16:57) |

Did it ever happen to you by mistake to add one additional digit into dns serial number? Ooops! Now, how to fix it?

  1. Increase the serial number to (2^31) – (correct serial number) and reload named. For example 2^31-2009010602 = 138473046. As DNS serial numbers are signed integers, this make server thinks that it’s a negative number.
  2. Set the serial number to 0 and reload.
  3. Set the correct serial number and reload.
  4. Voila!

Comments

Comment from Scott Dodson
Date: January 6, 2009, 21:44

Clever trick! Thanks.

Pingback from Pages tagged “wrong”
Date: January 8, 2009, 10:48

[...] bookmarks tagged wrong Marek Mahut » How to fix wrong dns serial number? saved by 1 others     samanthalortiz bookmarked on 01/08/09 | [...]

Write a comment