Re: Method of writing zone files

2018-11-13 Thread Marcus Frenkel
Thanks Matus. Does bind keep the received messages for zone updates in queue during rndc freeze, and apply them after rndc thaw? I think that while rndc freeze is in effect, bind will ignore (and not keep) notify messages for zone updates. The drawback in this case is that a zone will only update

Re: Method of writing zone files

2018-11-13 Thread Matus UHLAR - fantomas
On 12-Nov-18 14:39, Marcus Frenkel asked about backing up slave zone files & bind's update mechanism: On 13.11.18 06:37, Timothe Litt wrote: I believe you're asking the wrong questions and are likely to run into complications.  You don't know when BIND will merge the journal, or that rsync will

Re: Method of writing zone files

2018-11-13 Thread Timothe Litt
On 12-Nov-18 14:39, Marcus Frenkel asked about backing up slave zone files & bind's update mechanism: I believe you're asking the wrong questions and are likely to run into complications.  You don't know when BIND will merge the journal, or that rsync will atomically snapshot the zone file and the

Re: Method of writing zone files

2018-11-12 Thread Danny Mayer
If you are talking about BIND9 atomic replacement on Windows then it does, at least when I wrote that piece of code. It very carefully makes sure it doesn't lose the file. Danny On 11/12/18 6:21 PM, Mark Andrews wrote: > It really depends on the platform. > > Windows doesn’t support atomic replac

Re: Method of writing zone files

2018-11-12 Thread Mark Andrews
It really depends on the platform. Windows doesn’t support atomic replacement via rename. On platforms where atomic replacement via rename is supported it is used. Mark > On 13 Nov 2018, at 6:39 am, Marcus Frenkel wrote: > > Thank you for the quick reply Tony! > > Follow-up questions just to

Re: Method of writing zone files

2018-11-12 Thread Marcus Frenkel
Thank you for the quick reply Tony! Follow-up questions just to be sure: 1. The new zone file is renamed in the placed of the old one, only after all changes to the new file are written? 2. Is the zone file atomically replaced during the renaming process, in a sense that there is no window in whic

Re: Method of writing zone files

2018-11-12 Thread Tony Finch
Marcus Frenkel wrote: > > I need to know how BIND writes to slave zone files after zone has been > updated. Does it modify the file in place or it replaces the file with > new one at once? Changes are written to a journal append-only style. Every so often the master file is rewritten to incorpora

Method of writing zone files

2018-11-12 Thread Marcus Frenkel
Hello, Question to BIND devs. I need to know how BIND writes to slave zone files after zone has been updated. Does it modify the file in place or it replaces the file with new one at once? We run rsync to backup these files. Normally, if the file is being written to, rsync will copy whatever data