IXFR & manually edited zone files

Mark Andrews marka at isc.org
Tue Mar 8 20:44:19 UTC 2011


In message <B840935F-4809-40CF-98C5-029CBBAB48EF at columbia.edu>, David Coulthart
 writes:
> On Mar 7, 2011, at 12:24 PM, David Coulthart wrote:
> > On Mar 7, 2011, at 11:42 AM, Chris Thompson wrote:
> >> On Mar 7 2011, David Coulthart wrote:
> >>> BIND Version: 9.7.3 on Solaris 9 & 10 (locally compiled)
> ...
> >>> Based on the ARM & a posting to bind-users[1], I enabled "ixfr-from-diffe
> rences
> >>> master;" on the hidden master expecting the master nameserver would gener
> ate
> >>> a "diff" from the previous zone file in memory and the new one being load
> ed
> >>> so it could send an IXFR to the slaves.
> ...
> >> There is also a named-journalprint utility which you can apply to the
> >> journal file on the master to check it contains what you hope for.
> > 
> > I don't see a journal file being created on the master after I do the reloa
> d.  The only messages in the master's log about a journal are on initial star
> tup:
> ...
> > Based on the description of ixfr-from-differences in the ARM, I think a jou
> rnal file should be created.  I have named running as user named, but I've ch
> ecked permissions on the directory & zone file & confirmed that named can cre
> ate files in the directory containing the zone file.
> 
> It looks like the problem is with setting ixfr-from-differences to master.  I
> f I instead set the option to yes, a journal file is generated & IXFR works c
> orrectly.  The zone definition in my test named.conf is:
> 
> zone "example.com" {
>     type master;
>     file "example.com.zone";
> };
> 
> so I expected setting "ixfr-from-differences master;" would cause a journal f
> ile to be created for this master zone.  Am I not understanding what the mast
> er option for ixfr-from-differences is intended to do or is this a bug in BIN
> D?
> 
> Thanks,
> Dave Coulthart
> _______________________________________________
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users

Index: bin/named/zoneconf.c
===================================================================
RCS file: /proj/cvs/prod/bind9/bin/named/zoneconf.c,v
retrieving revision 1.171.34.2
diff -u -r1.171.34.2 zoneconf.c
--- bin/named/zoneconf.c	7 Mar 2011 04:16:39 -0000	1.171.34.2
+++ bin/named/zoneconf.c	8 Mar 2011 20:44:00 -0000
@@ -1077,10 +1077,10 @@
 		INSIST(result == ISC_R_SUCCESS && obj != NULL);
 		if (cfg_obj_isboolean(obj))
 			ixfrdiff = cfg_obj_asboolean(obj);
-		else if (strcasecmp(cfg_obj_asstring(obj), "master") &&
+		else if (!strcasecmp(cfg_obj_asstring(obj), "master") &&
 			 ztype == dns_zone_master)
 			ixfrdiff = ISC_TRUE;
-		else if (strcasecmp(cfg_obj_asstring(obj), "slave") &&
+		else if (!strcasecmp(cfg_obj_asstring(obj), "slave") &&
 			ztype == dns_zone_slave)
 			ixfrdiff = ISC_TRUE;
 		else
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org



More information about the bind-users mailing list