Commit 1c713e6b authored by Mark Karpilovskij's avatar Mark Karpilovskij Committed by Daniel Salzman

zone: disabled zonefile-sync docs and warnings

parent 50b98d1c
......@@ -1059,8 +1059,9 @@ on the disk (see \fI\%file\fP). The server will serve the latest
zone even after a restart using zone journal, but the zone file on the disk will
only be synced after \fBzonefile\-sync\fP time has expired (or after manual zone
flush). This is applicable when the zone is updated via IXFR, DDNS or automatic
DNSSEC signing. In order to disable automatic zonefile synchronization, \-1 value
can be used (manual zone flush is still possible).
DNSSEC signing. In order to completely disable automatic zonefile synchronization,
set the value to \-1. In that case, it is still possible to force a manual zone flush
using the \fB\-f\fP option.
.sp
\fBNOTE:\fP
.INDENT 0.0
......
......@@ -1212,8 +1212,9 @@ on the disk (see :ref:`file<zone_file>`). The server will serve the latest
zone even after a restart using zone journal, but the zone file on the disk will
only be synced after ``zonefile-sync`` time has expired (or after manual zone
flush). This is applicable when the zone is updated via IXFR, DDNS or automatic
DNSSEC signing. In order to disable automatic zonefile synchronization, -1 value
can be used (manual zone flush is still possible).
DNSSEC signing. In order to completely disable automatic zonefile synchronization,
set the value to -1. In that case, it is still possible to force a manual zone flush
using the ``-f`` option.
.. NOTE::
If you are serving large zones with frequent updates where
......
......@@ -97,6 +97,8 @@ static int flush_journal(conf_t *conf, zone_t *zone, bool allow_empty_zone)
/* Check for disabled zonefile synchronization. */
conf_val_t val = conf_zone_get(conf, C_ZONEFILE_SYNC, zone->name);
if (conf_int(&val) < 0 && !force) {
log_zone_warning(zone->name, "zonefile synchronization disabled, "
"use force command to override it");
return KNOT_EOK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment