<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">My point was more this: Don't update
      more than once a second, any further updates can wait for the next
      second.<br>
      <br>
      If you're using dynamic updates or something that is doing updates
      in real time, fine, let it increment the serial as many times a
      second as you want but if you're generating static zonefiles from
      a database or updating by hand or other script where you want to
      generate new serials without having to worry about some "nn" per
      day counter, epoch is perfectly fine, and subsequent updates
      waiting a second won't hurt you.<br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Dave Warren
<a class="moz-txt-link-freetext" href="http://www.hireahit.com/">http://www.hireahit.com/</a>
<a class="moz-txt-link-freetext" href="http://ca.linkedin.com/in/davejwarren">http://ca.linkedin.com/in/davejwarren</a>

</pre>
      On 2016-03-30 18:49, Roy Hooper wrote:<br>
    </div>
    <blockquote
cite="mid:CAHW=2z7rNcZjCBru_NyaWPE_iE=s8ArdJQDjWGSn9QAXDQ2+PQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Even with thousands of updates a day, and 86400
        seconds per day, there's plenty of headroom to handle
        same-second updates when they do happen... 
        <div><br>
        </div>
        <div>One approach is to use this pseudocode:</div>
        <div><br>
        </div>
        <div>if time() > current_serial:</div>
        <div>   new_serial = time()</div>
        <div>else:</div>
        <div>   new_serial = serial + 1</div>
        <div><br>
        </div>
        <div>This handles both clock rewind scenarios (that never
          happens in the real world...) as well as multiple updates in
          the same second.</div>
        <div>It also simply becomes a counter if you have over 86400
          updates/day, although in that case the suggestion to just use
          a counter makes more sense so you can start at 1.<br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Mar 30, 2016 at 4:32 PM, Dave
          Warren <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:davew@hireahit.com" target="_blank">davew@hireahit.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex"><span
              class="">On 2016-03-30 12:35, Mark Andrews wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                Or you can just use it as a serial number.  Encoding
                date / time<br>
                since epoch only works if the freqency of updates is
                low.<br>
              </blockquote>
              <br>
            </span>
            Even if you have more than one update per second, isn't
            incrementing the serial number and rebuilding the zone once
            per second going to be sufficient for real world purposes?<br>
            <br>
            Or am I misunderstanding?<span class="im HOEnZb"><br>
              <br>
              -- <br>
              Dave Warren<br>
              <a moz-do-not-send="true" href="http://www.hireahit.com/"
                rel="noreferrer" target="_blank">http://www.hireahit.com/</a><br>
              <a moz-do-not-send="true"
                href="http://ca.linkedin.com/in/davejwarren"
                rel="noreferrer" target="_blank">http://ca.linkedin.com/in/davejwarren</a><br>
              <br>
              <br>
            </span>
            <div class="HOEnZb">
              <div class="h5">
                _______________________________________________<br>
                dns-operations mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:dns-operations@lists.dns-oarc.net"
                  target="_blank">dns-operations@lists.dns-oarc.net</a><br>
                <a moz-do-not-send="true"
                  href="https://lists.dns-oarc.net/mailman/listinfo/dns-operations"
                  rel="noreferrer" target="_blank">https://lists.dns-oarc.net/mailman/listinfo/dns-operations</a><br>
                dns-jobs mailing list<br>
                <a moz-do-not-send="true"
                  href="https://lists.dns-oarc.net/mailman/listinfo/dns-jobs"
                  rel="noreferrer" target="_blank">https://lists.dns-oarc.net/mailman/listinfo/dns-jobs</a><br>
                <br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">
            <div>
              <h4
style="margin:0px;padding:0px;font-family:Arial,sans-serif;color:rgb(148,157,158);font-weight:normal;line-height:17px"><br>
                Roy Hooper<br>
                Sr. Software Architect</h4>
              <a moz-do-not-send="true" href="http://www.rightside.co/"
style="color:rgb(148,157,158);text-decoration:none;font-family:Times;font-size:medium"
                target="_blank"><img moz-do-not-send="true"
                  src="http://madebygraphiti.com/rightside/signature/rightside_logo.png"
                  alt="Rightside" style="display:block;margin:20px 0px"></a><span
style="color:rgb(0,0,0);font-family:Times;font-size:medium"></span><span
                style="font-size:medium;font-family:'Times New Roman'"></span>
              <h5
style="margin:0px;padding:0px;font-size:13px;font-family:Arial,sans-serif;color:rgb(148,157,158);font-weight:normal;line-height:17px"><strong
                  style="text-align:-webkit-auto">Mobile</strong><span
                  style="text-align:-webkit-auto"> | 6</span>13.263.7691</h5>
              <p style="margin:5px 0px
0px;padding:0px;font-family:Arial,sans-serif;color:rgb(148,157,158);line-height:19px"><a
                  moz-do-not-send="true"
                  href="mailto:roy@rightside.ninja" target="_blank">roy@rightside.rocks</a><br>
                <a moz-do-not-send="true"
                  href="http://www.rightside.co/" target="_blank">www.rightside.rocks</a><br>
              </p>
            </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dns-operations mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dns-operations@lists.dns-oarc.net">dns-operations@lists.dns-oarc.net</a>
<a class="moz-txt-link-freetext" href="https://lists.dns-oarc.net/mailman/listinfo/dns-operations">https://lists.dns-oarc.net/mailman/listinfo/dns-operations</a>
dns-jobs mailing list
<a class="moz-txt-link-freetext" href="https://lists.dns-oarc.net/mailman/listinfo/dns-jobs">https://lists.dns-oarc.net/mailman/listinfo/dns-jobs</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">
</pre>
  </body>
</html>