NSD 3.0.1 release

dr. W.C.A. Wijngaards wouter at NLnetLabs.nl
Wed Sep 6 12:24:18 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

To fix the nsd-patch bug, NSD 3.0.1 is released today.

Quick download at:
http://www.nlnetlabs.nl/downloads/nsd/nsd-3.0.1.tar.gz
with sha-1
37259401e1040ea99540590a9dedc519b48543e1

And now that I am not using PGP/Mime with mailman, this message will
also have a correct PGP signature. :-)

Best regards,
   Wouter


dr. W.C.A. Wijngaards wrote:
> Hi,
> 
> Oops. Attached is a patch for nsd-patch.c. Use that by:
> # patch < patch_for_nsd_patch
> # make
> 
> Error is fixed in svn trunk (see Changelog), and will be released in
> 3.0.1 today or tomorrow.
> 
> Thanks for the bugreport Alex,
> 
> Wouter
> 
> Alex WC Lee wrote:
>> Hi,
>>
>> I'm not sure if it's the way the zone files are written on the master
>> server or if something is wrong when the zones files gets written by the
>> "nsdc patch" command or if it's the way nsd parses the zone files.
>>
>> Whenever my slaves servers issues the nsdc patch command, it tries to
>> save it to corresponding zone files. After that when we try to
>> rebuild/reparse those zone files, it gives the following error,
>> complaining as many times as I have any lines above the SOA entry:
>>
>> error: RR before SOA skipped
>>
>> Then i went into the zone files and looked at the way it's been written,
>> and it seems that if i move the SOA entry to the top before all the NS,
>> MX and TXT entries, then the problem goes away. However, that's just a
>> manual workaround, and it would be nice if I the "nsdc patch" command
>> would write something that nsdc accepts.
>>
>> Just wondering if anyone experiences similar issues.
>>
>> ~Alex
>> _______________________________________________
>> nsd-users mailing list
>> nsd-users at NLnetLabs.nl
>> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users
> 
> 
> ------------------------------------------------------------------------
> 
> --- nsd-patch.c	2006-09-06 07:56:15.000000000 +0200
> +++ nsd-patch.c	2006-09-06 08:12:30.000000000 +0200
> @@ -171,6 +171,17 @@
>  	domain_type *domain = zone->apex;
>  	region_type* region = region_create(xalloc, free);
>  	struct state_pretty_rr* state = create_pretty_rr(region);
> +	/* first print the SOA record for the zone */
> +	if(zone->soa_rrset) {
> +		size_t i;
> +		for(i=0; i<zone->soa_rrset->rr_count; i++) {
> +			if(!print_rr(out, state, &zone->soa_rrset->rrs[i])){
> +				fprintf(stderr, "There was an error "
> +				   "printing SOARR to zone %s\n",
> +				   zone->opts->name);
> +			}
> +		}
> +	}
>          /* go through entire tree below the zone apex (incl subzones) */
>  	while(domain && dname_is_subdomain(
>  		domain_dname(domain), domain_dname(zone->apex)))
> @@ -178,7 +189,7 @@
>  		for(rrset = domain->rrsets; rrset; rrset=rrset->next)
>  		{
>  			size_t i;
> -			if(rrset->zone != zone)
> +			if(rrset->zone != zone || rrset == zone->soa_rrset)
>  				continue;
>  			for(i=0; i<rrset->rr_count; i++) {
>  				if(!print_rr(out, state, &rrset->rrs[i])){
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> nsd-users mailing list
> nsd-users at NLnetLabs.nl
> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD4DBQFE/r3ykDLqNwOhpPgRAuMfAJd2UiKDnqMVnvxnh09qNsP8G3T6AKCIDF8E
2IqHe7IDcsIwjsQiFp3yUw==
=jMrF
-----END PGP SIGNATURE-----



More information about the nsd-users mailing list