Trick named to not expire secondary zones?

Matus UHLAR - fantomas uhlar at fantomas.sk
Sun Nov 22 14:23:43 UTC 2026


On 22.11.26 05:58, Lars-Johan Liman wrote:
>It happens from time to time that I have need to prevent my secondary
>named from expiring a certain zone. Typically when I mess up my hidden
>primary and don't have time to put the pieces back together again before
>the zone threatens to expire.
>
>In the past that used to be possible by "touching" (i.e., updating the
>modification date of) the zonefile where named stores the zone on the
>secondary server. Nowadays there is of course also often a journal file
>to keep en eye on.
>
>Does this "hack" still work, or does a modern named have more elaborate
>ways to keep track of whether a zone has expired or not? If the hack
>works, is it necessary to "reload" the zone in way, or does named
>automagically always stat() the file when refreshing and pick up a new
>date?
>
>If the hack doesn't work, is that another (better?) hack that _does_
>work?

perhaps designing localhost as one of primaries (masters) would help.

Note that the explicit reason for expiring zones is that you don't provide 
old zone when you aren't able to fetch it.
  
-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
WinError #98652: Operation completed successfully.


More information about the bind-users mailing list