On Tue, Sep 11, 2018 at 04:12:48PM +0200, Peter J. Philipp wrote:
> Hi,
> 
> I wasn't going to ask, but the book I have (alternative dns servers - jpm) is
> somewhat outdated on nsd.
> 
> If I'm correct, in order to pull the zones to disk on a slave nsd setup, one
> has to manually or crontab "nsd-control write example.com".  Is this correct?
> 
> Is there an automated way to do this in the server or must I crontab this?

nsd.conf(5) has this:

       zonefiles-write: <seconds>
              Write changed secondary zones to their zonefile every N seconds.
              If the zone (pattern) configuration has "" zonefile, it is not
              written.  Zones that have received zone transfer updates are
              written to their zonefile.  Default is 0 (disabled) when there
              is a database, and 3600 (1 hour) when database is "".  The
              database also commits zone transfer contents.  You can configure
              it away from the default by putting the config statement for
              zonefiles-write: after the database: statement in the config
              file.

Default is to have no database, so on a slave it takes an hour to write to disk.

> 
> What I'm worried on is not writing any zone material to disk and then having
> a mishap on my delphinusdnsd primary server.  A sudden restart could make
> nsd forget zones if they weren't written to disk somehow right?
> 

yes, it will answer servfail

> Thanks and best regards,
> 
> -peter
> 

-- 
I'm not entirely sure you are real.

Reply via email to