Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2011 15:15:01 +0200
From:      Ralf van der Enden <tremere@cainites.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/160308: [MAINTAINER] dns/powerdns: fix loading a whole new set of backend connections per BIND zone loaded!
Message-ID:  <E1QyO9d-0008q8-DZ@cainites.net>
Resent-Message-ID: <201108301320.p7UDKCPI089278@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         160308
>Category:       ports
>Synopsis:       [MAINTAINER] dns/powerdns: fix loading a whole new set of backend connections per BIND zone loaded!
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 30 13:20:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ralf van der Enden
>Release:        FreeBSD 8.2-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD lan.cainites.net 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #3: Thu Jul  7 13:50:12 CEST
>Description:
- Fix loading a whole new set of backend connections per BIND zone loaded!
On large installations this would cause a serious slowdown when (re)starting PowerDNS when using the BIND backend
Added file(s):
- files/patch-pdns_pdns_backends_bind_bindbackend2_cc

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- powerdns-3.0_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/dns/powerdns.orig/Makefile /usr/ports/dns/powerdns/Makefile
--- /usr/ports/dns/powerdns.orig/Makefile	2011-08-14 04:46:28.000000000 +0200
+++ /usr/ports/dns/powerdns/Makefile	2011-08-30 10:46:38.000000000 +0200
@@ -7,7 +7,7 @@
 
 PORTNAME=	powerdns
 PORTVERSION=	3.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	dns ipv6
 MASTER_SITES=	http://downloads.powerdns.com/releases/ \
 		http://mirrors.evolva.ro/powerdns.com/releases/
diff -ruN --exclude=CVS /usr/ports/dns/powerdns.orig/files/patch-pdns_pdns_backends_bind_bindbackend2_cc /usr/ports/dns/powerdns/files/patch-pdns_pdns_backends_bind_bindbackend2_cc
--- /usr/ports/dns/powerdns.orig/files/patch-pdns_pdns_backends_bind_bindbackend2_cc	1970-01-01 01:00:00.000000000 +0100
+++ /usr/ports/dns/powerdns/files/patch-pdns_pdns_backends_bind_bindbackend2_cc	2011-08-30 10:44:51.000000000 +0200
@@ -0,0 +1,16 @@
+--- pdns/backends/bind/bindbackend2.cc.orig	2011-07-22 13:23:22.000000000 +0200
++++ pdns/backends/bind/bindbackend2.cc	2011-08-30 10:38:47.000000000 +0200
+@@ -620,5 +620,5 @@
+ 
+     sort(domains.begin(), domains.end()); // put stuff in inode order
+-
++    DNSSECKeeper dk;
+     for(vector<BindDomainInfo>::const_iterator i=domains.begin();
+         i!=domains.end();
+@@ -660,5 +660,5 @@
+         if(filenameChanged || !bbd->d_loaded || !bbd->current()) {
+           L<<Logger::Info<<d_logprefix<<" parsing '"<<i->name<<"' from file '"<<i->filename<<"'"<<endl;
+-          DNSSECKeeper dk;
++
+           NSEC3PARAMRecordContent ns3pr;
+           bool nsec3zone=dk.getNSEC3PARAM(i->name, &ns3pr);
--- powerdns-3.0_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1QyO9d-0008q8-DZ>