> pdnssec, a newly introduced tool in pdns 3.0, tries to find the
> backend configuration from pdns.conf. In Debian, by default, the
> backend configuration is specified by a separate file, (e.g.
> /etc/powerdns/pdns.d/pdns.local.gmysql,) the location of which is
> specified in pdns.conf by "include" directive:
> 
> include=/etc/powerdns/pdns.d
> 
> It seems that pdnssec doesn't recognize it. (When you concatenate the
> missing configuration to pdns.conf itself, it works fine.)
> 
> # pdnssec rectify-zone example.com
> Error: No database backends configured for launch, unable to function

I've created a patch that fixes this problem. See attach.

Can somebody add it to the package :-)
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 pdns (3.0-1.1) unstable; urgency=high
 .
   * Non-maintainer upload.
   * Don't respond to responses fixes CVE-2012-0206
   * Make build dependency on mongodb-dev arch specific (Closes: #654568).
Author: Luk Claes <l...@debian.org>
Bug-Debian: http://bugs.debian.org/654568

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- pdns-3.0.orig/pdns/pdnssec.cc
+++ pdns-3.0/pdns/pdnssec.cc
@@ -95,6 +95,7 @@ void loadMainConfig(const std::string& c
   ::arg().set("launch","Which backends to launch");
   ::arg().set("dnssec","if we should do dnssec")="true";
   ::arg().set("config-name","Name of this virtual configuration - will rename 
the binary image")=g_vm["config-name"].as<string>();
+  ::arg().set("include", "Directory with config files to 
include")="/etc/powerdns/pdns.d"; // Add directory with config files
   ::arg().setCmd("help","Provide a helpful message");
   //::arg().laxParse(argc,argv);
 

Reply via email to