From ffd62047e30d73ec81c09b2e5931a5b90aefa640 Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Thu, 13 Mar 2003 12:45:30 +0000 Subject: [PATCH] lots git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@160 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- ChangeLog | 35 ++++---- configure.in | 2 +- debian/changelog | 6 ++ modules/pdnsbackend/pdnsbackend.cc | 7 +- modules/pdnsbackend/pdnsbackend.hh | 3 +- pdns/docs/pdns.sgml | 127 ++++++++++++++++++++++++++++- 6 files changed, 159 insertions(+), 21 deletions(-) diff --git a/ChangeLog b/ChangeLog index a71f9c9fe..0d1a0a692 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,22 +1,27 @@ Changes since 2.9.6: * need to do work on ( and ) in zones! - - added local-query-address (Mark Bergsma) - - zone2sql now removes dots in the SOA record - - zone2sql no longer silently tries to read directories - - improved error reporting if unable to figure out IP addresses for +feat - added local-query-address (Mark Bergsma) +bug - zone2sql now removes dots in the SOA record +imp - zone2sql no longer silently tries to read directories +imp - improved error reporting if unable to figure out IP addresses for slaves - - removed vestigal receiver-threads setting - - ldapbackend needs to include utility.hh (Remco Post) - - pdns_control could sometimes leave files behind in /tmp (dG) - - ldapbackend updates - - TCP incoming AXFR fixes for Solaris and other big endian systems +imp - removed vestigal receiver-threads setting +bug - ldapbackend needs to include utility.hh (Remco Post) +bug - pdns_control could sometimes leave files behind in /tmp (dG) +impr - ldapbackend updates +bug - TCP incoming AXFR fixes for Solaris and other big endian systems (Willem de Groot helped debug) - - bogus error message about unparseable packets (Mark Bergsma) - - solved potential crash in recursor (Dan Faerch delivered coredump) - - when started via a path, pdns_server could not always find itself (Maurice Nonnekes) - - silly wuh debugging output in zone2sql/bindbackend (Ivo van der Wijk) - - pdns_recursor lived in the 'bin' and not the 'sbin' directory (Norbert Sendetzky) - - chatter from master/slave backend is not 'Error'-worthy (Willem) +imp - bogus error message about unparseable packets (Mark Bergsma) +bug - solved potential crash in recursor (Dan Faerch delivered coredump) +imp - when started via a path, pdns_server could not always find itself (Maurice Nonnekes) +bug - silly wuh debugging output in zone2sql/bindbackend (Ivo van der Wijk) +imp - pdns_recursor lived in the 'bin' and not the 'sbin' directory (Norbert Sendetzky) +imp - chatter from master/slave backend is not 'Error'-worthy (Willem) +bug - recursor neglected the difference between negative cache of NXDOMAIN and NOERROR +imp - added ipv6 AAAAditional processing (noticed by Stephane Bortzmeyer) +imp - fixed incorrect AA bit on serving NS from non-top records (noticed by Stephane Bortzmeyer) +imp - added robustness fixed to dnspacket.cc getAnswers for incoming queries + Changes since 2.9.5: - implemented isMaster in bindbackend (we now react to notifies) diff --git a/configure.in b/configure.in index 102d3be80..7bc1041b3 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl intro AC_INIT(pdns/receiver.cc) -AM_INIT_AUTOMAKE(pdns, 2.9.6) +AM_INIT_AUTOMAKE(pdns, 2.9.7) AC_CANONICAL_HOST AM_CONFIG_HEADER(config.h) AC_C_BIGENDIAN diff --git a/debian/changelog b/debian/changelog index 7426ea940..27aebe5bf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +pdns (2.9.7-1) unstable; urgency=low + + * fill in the blanks + + -- Wichert Akkerman Thu, 14 Mar 2003 20:16:16 +0100 + pdns (2.9.6-1) unstable; urgency=low * fill in the blanks diff --git a/modules/pdnsbackend/pdnsbackend.cc b/modules/pdnsbackend/pdnsbackend.cc index 15b95609c..691096d35 100644 --- a/modules/pdnsbackend/pdnsbackend.cc +++ b/modules/pdnsbackend/pdnsbackend.cc @@ -1,4 +1,4 @@ -// $Id: pdnsbackend.cc,v 1.4 2003/02/10 12:08:06 ahu Exp $ +// $Id: pdnsbackend.cc,v 1.5 2003/03/13 12:45:30 ahu Exp $ #include #include @@ -39,7 +39,7 @@ PdnsBackend::PdnsBackend(const string &suffix) : d_result(NULL) { mysql_init(&d_database); - + d_suffix=suffix; MYSQL* theDatabase = mysql_real_connect ( &d_database, @@ -162,7 +162,7 @@ bool PdnsBackend::getSOA(const string& inZoneName, SOAData& outSoaData) outSoaData.hostmaster = theRow[1]; outSoaData.serial = atoi(theRow[2]); - outSoaData.refresh = 10800; + outSoaData.refresh = arg()["pdns-"+d_suffix+"soa-refresh"].empty() ? 10800 : atoi(arg()["pdns-"+d_suffix+"soa-refresh"].c_str()); outSoaData.retry = 3600; outSoaData.expire = 604800; outSoaData.default_ttl = 40000; @@ -239,6 +239,7 @@ class PDNSFactory : public BackendFactory declare(suffix,"host","Pdns backend host to connect to",""); declare(suffix,"password","Pdns backend password to connect with",""); declare(suffix,"socket","Pdns backend socket to connect to",""); + declare(suffix,"soa-refresh","Pdns SOA refresh in seconds",""); } DNSBackend *make(const string &suffix="") diff --git a/modules/pdnsbackend/pdnsbackend.hh b/modules/pdnsbackend/pdnsbackend.hh index 756dd6aec..380c8c556 100644 --- a/modules/pdnsbackend/pdnsbackend.hh +++ b/modules/pdnsbackend/pdnsbackend.hh @@ -1,4 +1,4 @@ -// $Id: pdnsbackend.hh,v 1.3 2002/12/09 16:24:17 ahu Exp $ +// $Id: pdnsbackend.hh,v 1.4 2003/03/13 12:45:30 ahu Exp $ #ifndef PDNSBACKEND_HH #define PDNSBACKEND_HH @@ -28,6 +28,7 @@ class PdnsBackend : public DNSBackend MYSQL d_database; MYSQL_RES* d_result; + string d_suffix; void Query(const string& inQuery); string sqlEscape(const string &nanme); diff --git a/pdns/docs/pdns.sgml b/pdns/docs/pdns.sgml index 32f6e7245..f79933bfa 100644 --- a/pdns/docs/pdns.sgml +++ b/pdns/docs/pdns.sgml @@ -11,7 +11,7 @@ - v2.1 $Date: 2003/03/12 16:06:35 $ + v2.1 $Date: 2003/03/13 12:45:30 $ @@ -81,6 +81,131 @@ Before proceeding, it is advised to check the release notes for your PDNS version, as specified in the name of the distribution file. + Version 2.9.7 + + This is a sweeping release in the sense of cleanup. There are some new features but mostly a lot of cleanup going on. Hiding inside is the + bind2backend, the next generation of the bind backend. Very much a work in progress. Those of you with overlapping zones, + as mentioned in the changelog of 2.9.6, are invited to check it out. + + + Features: + + + + Mark Bergsma contributed local-query-address which allows the operator to select which source address to + use. This is useful on servers with multiple source addresses and the operating system selecting an unintended one, leading to + remotes denying access. + + + + + PowerDNS can now perform AAAA additional processing optionally, turned on by setting do-ipv6-additional-processing. + Thanks to Stephane Bortzmeyer for pointing out the need. + + + + + + Improvements: + + + + Zone2sql would happily try to read from a directory and not give a useful error about this. + + + + + PowerDNS now reports the case where it can't figure out any IP address of slave nameservers for a zone + + + + + Removed receiver-threads setting which was experimental and in fact only made things worse. + + + + + LDAP backend updates from its author Norbert Sendetzky. Reverse lookups should work now too. + + + + + An error message about unparseable packets did not include the originating IP address (fixed by Mark Bergsma) + + + + + PowerDNS can now be started via path resolution while running with a guardian. Suggested by Maurice Nonnekes. + + + + + pdns_recursor moved to sbin (reported by Norbert Sendetzky) + + + + + Retuned some logger errorlevels, a lot of master/slave chatter was logged as 'Error'. Reported by Willem de Groot. + + + + + + Bugs fixed: + + + + zone2sql did not remove trailing dots in SOA records. + + + + + ldapbackend did not include utility.hh which caused compilation problems on Solaris (reported by Remco Post) + + + + + pdns_control could leave behind remnants in case PowerDNS was not running (reported by dG) + + + + + Incoming AXFR did not work on Solaris and other big-endian systems (Willem de Groot helped debugging this long standing problem). + + + + + Recursor could crash on convoluted CNAME loops. Thanks to Dan Faerch for delivering coredumps. + + + + + Silly 'wuh' debugging output in zone2sql and bindbackend removed (spotted by Ivo van der Wijk) + + + + + Recursor neglected to differentiate between negative cache of NXDOMAIN and NOERROR, leading to problems + with IPv6 enabled Windows clients. Thanks to Stuart Walsh for reporting this and testing the fix. + + + + + PowerDNS set the 'aa' bit on serving NS records in a zone for which it was authoritative. Most implementations + drop the 'aa' bit in this case and Stephane Bortzmeyer informed us of this. PowerDNS now also drops the 'aa' + bit in this case. + + + + + getAnswers() in dnspacket.cc could be forced to read bytes beyond the end of the packet, leading to crashes in the + PowerDNS recursor. This is an ongoing project that needs more work. Reported by Dan Faerch, with a coredump proving the problem. + + + + + + Version 2.9.6 Two new backends - Generic ODBC (windows only) and LDAP. Furthermore, a few important bugs have been fixed which may have hampered sites seeing a lot of -- 2.40.0