{"id":4325,"date":"2015-01-14T08:33:49","date_gmt":"2015-01-14T13:33:49","guid":{"rendered":"http:\/\/www.databook.bz\/?page_id=4325"},"modified":"2017-11-24T08:42:31","modified_gmt":"2017-11-24T13:42:31","slug":"dns-slave-does-not-update","status":"publish","type":"page","link":"http:\/\/www.linux-databook.info\/?page_id=4325","title":{"rendered":"DNS secondary server does not update"},"content":{"rendered":"<p>Sometimes in a primary \/ secondary DNS name server environment, the secondary server zone files do not get updated. This occurs with BIND, the Berkely Internet Name Domain, name services.<\/p>\n<p>This problem can be caused by failure to change the serial number of the primary zone file. This is a typical symptom of changing the zone file but not the serial number in the zone file. Be sure to change the serial number in the reverse zone file, too.<\/p>\n<p>The top of my zone file looks like this:<\/p>\n<p><span style=\"font-family: andale mono,times;\">; Authoritative data for both.org zone<\/span><br \/>\n<span style=\"font-family: andale mono,times;\"> ;<\/span><br \/>\n<span style=\"font-family: andale mono,times;\"> $TTL 1D<\/span><br \/>\n<span style=\"font-family: andale mono,times;\"> @\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IN SOA\u00a0 hornet.both.org.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 root.hornet.both.org. (<\/span><br \/>\n<span style=\"font-family: andale mono,times;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2013102101\u00a0\u00a0\u00a0\u00a0\u00a0 ; serial<\/span><br \/>\n<span style=\"font-family: andale mono,times;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1D\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; refresh<\/span><br \/>\n<span style=\"font-family: andale mono,times;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1H\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; retry<\/span><br \/>\n<span style=\"font-family: andale mono,times;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1W\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; expire<\/span><br \/>\n<span style=\"font-family: andale mono,times;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3H )\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; minimum<\/span><\/p>\n<p>The serial number can be anything you want it to be, so long as it is always ascending in numerical value. I do use a sequence with some meaning. My serial number is based on the date the last change was made and a 2 digit sequence number within the date and it breaks down like this:<br \/>\n2013102101<\/p>\n<p>2013 = year<br \/>\n10 = month<br \/>\n21 = day<br \/>\n01 = Sequence number for the date<\/p>\n<p>If I were to have changed the zone file again on the date of October 21, 2013, the sequence number would be 02 and the serial number would look like this: 2013102102. If I were to change my zone file today, the serial number for the first change of today would be 2015011401.<\/p>\n<p>This serial number format gives me information that can be very useful because it tells me the date of the last zone file change, and it also provides an ascending sequence. The forward and reverse zone serial numbers do not have to be the same, but they can be.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes in a primary \/ secondary DNS name server environment, the secondary server zone files do not get updated. This occurs with BIND, the Berkely Internet Name Domain, name services. This problem can be caused by failure to change the&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.linux-databook.info\/?page_id=4325\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":4327,"menu_order":8,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4325","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.linux-databook.info\/index.php?rest_route=\/wp\/v2\/pages\/4325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.linux-databook.info\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.linux-databook.info\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.linux-databook.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.linux-databook.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4325"}],"version-history":[{"count":3,"href":"http:\/\/www.linux-databook.info\/index.php?rest_route=\/wp\/v2\/pages\/4325\/revisions"}],"predecessor-version":[{"id":5196,"href":"http:\/\/www.linux-databook.info\/index.php?rest_route=\/wp\/v2\/pages\/4325\/revisions\/5196"}],"up":[{"embeddable":true,"href":"http:\/\/www.linux-databook.info\/index.php?rest_route=\/wp\/v2\/pages\/4327"}],"wp:attachment":[{"href":"http:\/\/www.linux-databook.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}