home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / protocol / tcpip / domains / 621 < prev    next >
Encoding:
Text File  |  1992-09-11  |  5.6 KB  |  157 lines

  1. Newsgroups: comp.protocols.tcp-ip.domains
  2. Path: sparky!uunet!indetech!cirrus!dhesi
  3. From: dhesi@cirrus.com (Rahul Dhesi)
  4. Subject: SUMMARY: How do you reset SOA serial no.?
  5. Message-ID: <1992Sep11.201552.5275@cirrus.com>
  6. Sender: news@cirrus.com
  7. Organization: Cirrus Logic Inc.
  8. References: <1992Sep7.185606.23300@cirrus.com>
  9. Date: Fri, 11 Sep 1992 20:15:52 GMT
  10. Lines: 145
  11.  
  12. My original inquiry was:
  13.  
  14. >Is there a good way of resetting a high SOA serial number
  15. >to a low value?
  16.  
  17. Most people essentially agreed that the only way is to perform the
  18. following steps.  "Reinitialize the server" means you either kill and
  19. restart it, or send it kill -HUP.
  20.  
  21. 1.  Edit the primary zone file to show the new serial number,
  22.     then reinitialize the server.
  23.  
  24. 2.  For each secondary server,
  25.     - either delete the relevant zone file, or manually edit the
  26.       serial number in it to be the new serial number.
  27.     - then reinitialize the server.
  28.  
  29. Obviously, this is tedious, and even error-prone if there are
  30. unofficial secondaries that you don't know about.  In fact this is a
  31. good reason to not to run a secondary server that is unknown to the
  32. person running the primary.
  33.  
  34. Christophe Wolfhugel <Christophe.Wolfhugel@grasp.insa-lyon.fr> pointed
  35. out that you may lose precious cached data if you kill and restart a
  36. server, so it's always best to kill -HUP it:
  37.  
  38.   "My 30 days-running named now has 1000+ pages more than its initial
  39.    size, I'd really not want to kill it.  And anyway much more known
  40.    servers (such as top-level) would certainly not want to loose
  41.    their caches."
  42.  
  43. However, Paul Vixie <vixie@PA.DEC.COM> had this alternate suggestion:
  44.  
  45.   "Cold-start all the secondaries and wait for the cache ttls to
  46.    expire."
  47.  
  48. Vikas Aggarwal <vikas@jvnc.net> said:
  49.  
  50.   "Or else you can always set the expire value to something tiny and that
  51.    will expire the secondary zone info automatically."
  52.  
  53. Since the serial number is a 32-bit unsigned value, it occurred to me
  54. to ask: what happens when the serial number in the primary goes up from
  55. 2^32-1 to 2^32?  I gave the primary SOA a serial number of 4294967295
  56. (which is 2^32 - 1).  I set up a secondary server and it showed the
  57. same serial number.  Then I incremented the primary serial number to
  58. 4294967296 (which is 2^32) and restarted the primary server.  A dump
  59. showed that the primary interpreted this as 0, which makes sense if we
  60. are counting modulo 2^32.  After I had waited several times the largest
  61. timeout value in the SOA record, the secondary had still not picked up
  62. the changed serial number.
  63.  
  64. So, a suggestion:  Don't begin with a serial number of 4294967295 or
  65. anything close to it.
  66.  
  67. Interesting fact:  On my Sharp calculator, 2^32 is 4294967296.  On my
  68. Casio calculator, 2^32 is 4294967295.
  69.  
  70. Thanks to the following people for email replies:
  71.    Christophe Wolfhugel <Christophe.Wolfhugel@grasp.insa-lyon.fr>
  72.    Paul Vixie <vixie@PA.DEC.COM>
  73.    Jack Bryans <jbryans@csulb.edu>
  74.    Vikas Aggarwal <vikas@jvnc.net>
  75.    Samuel Lam <skl@wimsey.bc.ca>
  76.  
  77. Since I received only a few replies, they are all appended below.
  78.  
  79.  Date:    Mon, 07 Sep 92 23:28:08 +0100
  80.  From:    Christophe Wolfhugel <Christophe.Wolfhugel@grasp.insa-lyon.fr>
  81.  
  82.  > Is there a good way of resetting a high SOA serial number
  83.  > to a low value?
  84.  
  85.  The solution that appears obvious to me, but not necessarilly
  86.  efficient is to reduce your serial number, and then by mail
  87.  request to all your secondaries (official, and this will really
  88.  be a problem if you have unofficial secondaries, ie hosts you don't
  89.  know are secondary for your domain) to manually edit their zone
  90.  file and (perhaps not needed, it might get the result faster)
  91.  kill -HUP /etc/named. I strongly disadvice to terminate named,
  92.  this will result is a lossage of the precious cache on all the
  93.  concerned servers.
  94.  
  95.  My 30 days-running named now has 1000+ pages more than its initial
  96.  size, I'd really not want to kill it.  And anyway much more known
  97.  servers (such as top-level) would certainly not want to loose
  98.  their caches.
  99.  
  100.  Question: why do you need to go back? I use yymmddx with xx being an
  101.  order # in the day, and I did not experience problems.
  102.  
  103.  > I will summarize any email received.
  104.  
  105.  Please do so. Interested in any more efficient solution.
  106.  
  107.  Chris
  108.  
  109.  Date:    Mon, 07 Sep 92 15:33:09 PDT
  110.  From:    Paul Vixie <vixie@PA.DEC.COM>
  111.  
  112.  coldstart all the secondaries and wait for the cache ttls to expire
  113.  
  114.  Date:    Mon, 07 Sep 92 18:50:00 PDT
  115.  From:    Jack Bryans <jbryans@csulb.edu>
  116.  
  117.  Why bother.  A good serial number for today is 199209070.  You can still
  118.  change your mind 9 more times today, all the way up to 199209079.
  119.  
  120.  Jack
  121.  
  122.  Date:    Mon, 07 Sep 92 21:52:26 EDT
  123.  From:    indetech!uunet!nisc.jvnc.net!aggarwal (Vikas Aggarwal)
  124.  To:      indetech!cirrus!dhesi (Rahul Dhesi)
  125.  
  126.  Tell your secondaries to delete their secondary files from disk and then
  127.  reset the serial number on the primary. Secondaries will also need to
  128.  restart their nameservers.
  129.  
  130.  Or else you can always set theh expire value to something tiny and that
  131.  will expire the secondary zone info automatically.
  132.  
  133.      -vikas
  134.      vikas@jvnc.net
  135.  
  136.  Date:    Mon, 07 Sep 92 21:25:00 PDT
  137.  From:    Samuel Lam <skl@wimsey.bc.ca>
  138.  
  139.  In article <1992Sep7.185606.23300@cirrus.com>, you wrote:
  140.  >Is there a good way of resetting a high SOA serial number
  141.  >to a low value?
  142.  
  143.   1) modify SOA value in primary name server's zone file
  144.   2) restart primary name server
  145.   3) modify SOA value in secondary name server's zone file
  146.      to a lower value than in 1), or simply remove that file
  147.   4) restart secondary name server
  148.   5) repeat 3) and 4) for all secondary name servers of that
  149.      zone
  150.  
  151.  ...Sam
  152.  -- 
  153.  <skl@wimsey.bc.ca>
  154. -- 
  155. Rahul Dhesi <dhesi@cirrus.com>
  156. also: dhesi@rahul.net
  157.