<?xml version="1.0"?>
<!DOCTYPE abiword PUBLIC "-//ABISOURCE//DTD AWML 1.0 Strict//EN" "http://www.abisource.com/awml.dtd">
<abiword xmlns="http://www.abisource.com/awml.dtd" xmlns:awml="http://www.abisource.com/awml.dtd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:dc="http://purl.org/dc/elements/1.1/" version="1.0.1" fileformat="1.0" styles="unlocked">
<!-- =====================================================================  -->
<!-- This file is an AbiWord document.                                      -->
<!-- AbiWord is a free, Open Source word processor.                         -->
<!-- You may obtain more information about AbiWord at www.abisource.com     -->
<!-- You should not edit this file by hand.                                 -->
<!-- =====================================================================  -->

<styles>
<s type="P" name="Normal" basedon="" followedby="Current Settings" props="font-family:Times New Roman; margin-top:0pt; font-variant:normal; margin-left:0pt; text-indent:0in; widows:2; font-style:normal; font-weight:normal; text-decoration:none; color:000000; line-height:1.0; text-align:left; margin-bottom:0pt; text-position:normal; margin-right:0pt; bgcolor:transparent; font-size:12pt; font-stretch:normal"/>
</styles>
<pagesize pagetype="Letter" orientation="portrait" width="8.500000" height="11.000000" units="in" page-scale="1.000000"/>
<section>
<p style="Normal"><c props="font-weight:bold; lang:en-US">MaraDNS and the year 2038 </c></p>
<p style="Normal"><c props="font-weight:bold; lang:en-US"></c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US">MaraDNS, like many *NIX applications, uses standard UNIX time for variables which need to keep track of the time.  In the year 2002, with a RedHat 7.2 system on an Intel x86 (Pentium III) processor, UNIX time is stored as a 32-bit signed integer, which means the date will roll over early in the morning of January 19, 2038 (GMT time zone).  </c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US"></c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US">MaraDNS will start to exhibit problems before this time on systems which uses 32-bit signed integers to store time values.  Problems will start to show up in January of 2036, and become increasingly more frequent until 2038.  The problem is that MaraDNS uses timestamps to determine when to remove entries in the cache; if a given resource record has an expire time which is after January 19, 2038, the record will be set to expire in they year 1901 (or thereabouts).  As a consequence, the record in question will immediately expire.  </c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US"></c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US">Since all answers MaraDNS' recursive/caching nameserver hands out come from the cache, any record which expires after January 19, 2038 (on systems which use 32-bit signed time_t) will be inaccessible.</c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US"></c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US">MaraDNS allows a given resource record to expire as long as two years in the future.  This is why problems will start to appear in early 2036.</c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US"></c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US">The solution is to recompile and deploy MaraDNS on a system where time_t is either a 32-bit unsigned integer (in which case the roll-over date is 2099) or a 64-bit signed integer (at which point, MaraDNS will work fine until the year 292,277,026,596).</c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US"></c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US">- Sam</c></p>
<p style="Normal"><c props="font-weight:normal; lang:en-US"></c></p>
</section>
</abiword>
