+1344. [func] Log if the serial number on the master has gone backwards.
+ If you have multiple machines specified in the masters
+ clause you may want to set 'multi-master yes;' to suppress
+ this warning.
+
1343. [func] Log successful notifies received (info). Adjust log level
for failed notifies to notice.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: config.c,v 1.29 2002/03/07 13:46:35 marka Exp $ */
+/* $Id: config.c,v 1.30 2002/07/29 06:58:45 marka Exp $ */
#include <config.h>
min-retry-time 500;\n\
max-refresh-time 2419200; /* 4 weeks */\n\
min-refresh-time 300;\n\
+ multi-master no;
sig-validity-interval 30; /* days */\n\
zone-statistics false;\n\
max-journal-size unlimited;\n\
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zoneconf.c,v 1.101 2002/02/20 03:33:26 marka Exp $ */
+/* $Id: zoneconf.c,v 1.102 2002/07/29 06:58:45 marka Exp $ */
#include <config.h>
dns_zonetype_t ztype;
int i;
isc_int32_t journal_size;
+ isc_boolean_t multi;
i = 0;
if (zconfig != NULL) {
result = dns_zone_setmasters(zone, NULL, 0);
RETERR(result);
+ multi = ISC_FALSE;
+ if (count > 1) {
+ obj = NULL;
+ result = ns_config_get(maps, "multi-master", &obj);
+ INSIST(result == ISC_R_SUCCESS);
+ multi = cfg_obj_asboolean(obj);
+ }
+ dns_zone_setoption(zone, DNS_ZONEOPT_MULTIMASTER, multi);
+
obj = NULL;
result = ns_config_get(maps, "max-transfer-time-in", &obj);
INSIST(result == ISC_R_SUCCESS);
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">
-<!-- File: $Id: Bv9ARM-book.xml,v 1.203 2002/07/01 02:18:42 marka Exp $ -->
+<!-- File: $Id: Bv9ARM-book.xml,v 1.204 2002/07/29 06:58:45 marka Exp $ -->
<book>
<title>BIND 9 Administrator Reference Manual</title>
difference set.
</para></listitem></varlistentry>
+<varlistentry><term><command>multi-master</command></term>
+<listitem>
+<para>
+This should be set when you have multiple masters for a zone and the
+addresses refer to different machines. If 'yes' named will not log
+when the serial number on the master is less than what named currently
+has. The default is <userinput>no</userinput>.
+</para></listitem></varlistentry>
+
</variablelist>
</sect3>
<optional> max-refresh-time <replaceable>number</replaceable> ; </optional>
<optional> min-retry-time <replaceable>number</replaceable> ; </optional>
<optional> max-retry-time <replaceable>number</replaceable> ; </optional>
+ <optional> multi-master <replaceable>yes_or_no</replaceable> ; </optional>
<optional> key-directory <replaceable>path_name</replaceable>; </optional>
}</optional>;
<command>key-directory</command> in <xref linkend="options"/></para>
</listitem></varlistentry>
+<varlistentry><term><command>multi-master</command></term>
+<listitem><para>See the description of
+<command>multi-master</command> in <xref linkend="boolean_options"/>.</para>
+</listitem></varlistentry>
</variablelist>
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zone.h,v 1.116 2002/07/19 02:34:57 marka Exp $ */
+/* $Id: zone.h,v 1.117 2002/07/29 06:58:46 marka Exp $ */
#ifndef DNS_ZONE_H
#define DNS_ZONE_H 1
#define DNS_ZONEOPT_NOMERGE 0x00000040U /* don't merge journal */
#define DNS_ZONEOPT_CHECKNS 0x00000080U /* check if NS's are addresses */
#define DNS_ZONEOPT_FATALNS 0x00000100U /* DNS_ZONEOPT_CHECKNS is fatal */
+#define DNS_ZONEOPT_MULTIMASTER 0x00000200U /* this zone has multiple masters */
#ifndef NOMINUM_PUBLIC
/*
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zone.c,v 1.373 2002/07/26 06:27:30 marka Exp $ */
+/* $Id: zone.c,v 1.374 2002/07/29 06:58:46 marka Exp $ */
#include <config.h>
DNS_ZONE_TIME_ADD(&now, zone->expire, &zone->expiretime);
goto next_master;
} else {
- zone_debuglog(zone, me, 1, "ahead");
+ if (!DNS_ZONE_OPTION(zone, DNS_ZONEOPT_MULTIMASTER))
+ dns_zone_log(zone, ISC_LOG_INFO, "serial number (%u) "
+ "received from master %s < ours (%u)",
+ soa.serial, master, zone->serial);
+ else
+ zone_debuglog(zone, me, 1, "ahead");
goto next_master;
}
if (msg != NULL)
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: namedconf.c,v 1.7 2002/07/13 00:53:34 marka Exp $ */
+/* $Id: namedconf.c,v 1.8 2002/07/29 06:58:46 marka Exp $ */
#include <config.h>
{ "maintain-ixfr-base", &cfg_type_boolean, CFG_CLAUSEFLAG_OBSOLETE },
{ "max-ixfr-log-size", &cfg_type_size, CFG_CLAUSEFLAG_OBSOLETE },
{ "max-journal-size", &cfg_type_sizenodefault, 0 },
- { "transfer-source", &cfg_type_sockaddr4wild, 0 },
- { "transfer-source-v6", &cfg_type_sockaddr6wild, 0 },
{ "max-transfer-time-in", &cfg_type_uint32, 0 },
{ "max-transfer-time-out", &cfg_type_uint32, 0 },
{ "max-transfer-idle-in", &cfg_type_uint32, 0 },
{ "min-retry-time", &cfg_type_uint32, 0 },
{ "max-refresh-time", &cfg_type_uint32, 0 },
{ "min-refresh-time", &cfg_type_uint32, 0 },
+ { "multi-master", &cfg_type_boolean, 0 },
{ "sig-validity-interval", &cfg_type_uint32, 0 },
+ { "transfer-source", &cfg_type_sockaddr4wild, 0 },
+ { "transfer-source-v6", &cfg_type_sockaddr6wild, 0 },
{ "zone-statistics", &cfg_type_boolean, 0 },
{ "key-directory", &cfg_type_qstring, 0 },
{ NULL, NULL, 0 }