]>
granicus.if.org Git - pdns/log
Christian Hofstaedtler [Tue, 24 Feb 2015 22:46:27 +0000 (23:46 +0100)]
API (Auth): fix hosting of root zone
As discovered by @jpmens in #2216, the API could not create the root
zone, and listing zones would also fail when the root zone was present.
This corrects those bugs, plus another that prevented reading the root
zone, and adds a small API test set for the root zone.
Fixes #2216.
Peter van Dijk [Tue, 24 Feb 2015 16:05:01 +0000 (17:05 +0100)]
Merge pull request #2278 from mind04/gitignore
add calidns and dumresp to .gitignore
Kees Monshouwer [Sun, 15 Feb 2015 21:34:34 +0000 (22:34 +0100)]
add calidns and dumresp to .gitignore
Peter van Dijk [Tue, 24 Feb 2015 14:35:34 +0000 (15:35 +0100)]
Merge pull request #1993 from rubenk/libtool
Libtool stuff
Ruben Kerkhof [Wed, 24 Dec 2014 22:54:08 +0000 (23:54 +0100)]
Any recent system has RTLD_NOW
And we checked them all...
Ruben Kerkhof [Wed, 24 Dec 2014 22:51:26 +0000 (23:51 +0100)]
Bail out if dlopen doesn't work
Ruben Kerkhof [Wed, 24 Dec 2014 22:42:29 +0000 (23:42 +0100)]
Use libtool to check for libdl
Ruben Kerkhof [Wed, 24 Dec 2014 22:12:23 +0000 (23:12 +0100)]
Require libtool 2.2.2 or newer for bootstrapping
Peter van Dijk [Tue, 24 Feb 2015 11:52:18 +0000 (12:52 +0100)]
Merge pull request #2276 from cmouse/fix-lmdb-race-condition
Properly lock lmdb database, fixes #1954
Peter van Dijk [Tue, 24 Feb 2015 10:44:31 +0000 (11:44 +0100)]
Merge pull request #2252 from cmouse/consistent-config-h
Consistently include config.h as first, if HAVE_CONFIG_H is defined
Aki Tuomi [Tue, 24 Feb 2015 09:53:42 +0000 (11:53 +0200)]
Properly lock lmdb database, fixes #1954
The LMDB database needs to be reloaded without allowing requests, so
we use readwrite lock to ensure that this cannot happen.
Aki Tuomi [Tue, 24 Feb 2015 08:32:47 +0000 (10:32 +0200)]
Remove undef VERSION as it's not really needed
Aki Tuomi [Tue, 24 Feb 2015 07:50:53 +0000 (09:50 +0200)]
Set HAVE_CONFIG_H when building recursor
Aki Tuomi [Tue, 24 Feb 2015 07:44:16 +0000 (09:44 +0200)]
Include config.h only in .cc files
Including config.h in header files can make it difficult to make
the header files public in future, also, including config.h only
in compilation units ensures it's only included once.
Peter van Dijk [Mon, 23 Feb 2015 18:32:06 +0000 (19:32 +0100)]
Merge pull request #2180 from rubenk/sanitizers
Add support for various sanitizers
Peter van Dijk [Mon, 23 Feb 2015 17:49:32 +0000 (18:49 +0100)]
Merge pull request #2265 from rubenk/exit-on-unknown-command
pdns_control: exit 1 on unknown command
Peter van Dijk [Mon, 23 Feb 2015 13:27:32 +0000 (14:27 +0100)]
remove useless script
Peter van Dijk [Mon, 23 Feb 2015 13:43:51 +0000 (14:43 +0100)]
Merge pull request #2263 from rubenk/log-when-we-cant-do-relro
Log when we cant do relro
Peter van Dijk [Mon, 23 Feb 2015 13:34:04 +0000 (14:34 +0100)]
Merge pull request #2269 from rubenk/report-to-ueberbackend-once
Let gpgsqlbackend report only once
Peter van Dijk [Mon, 23 Feb 2015 10:05:03 +0000 (11:05 +0100)]
Merge pull request #2259 from Habbie/nozonerefused
respond REFUSED instead of NOERROR for "unknown zone" situations
Ruben Kerkhof [Fri, 20 Feb 2015 22:18:32 +0000 (23:18 +0100)]
rec_control: exit 1 on unknown command
Ruben Kerkhof [Sat, 21 Feb 2015 10:29:22 +0000 (11:29 +0100)]
Let gpgsqlbackend report only once
That's more than enough ;)
Peter van Dijk [Sat, 21 Feb 2015 10:02:26 +0000 (11:02 +0100)]
Merge pull request #2019 from rubenk/add-missing-include-guards
Add missing include guards
Ruben Kerkhof [Fri, 20 Feb 2015 20:59:20 +0000 (21:59 +0100)]
pdns_control: exit 1 on unknown command
Fixes #1295
Ruben Kerkhof [Tue, 3 Feb 2015 21:53:48 +0000 (22:53 +0100)]
Add support for various sanitizers
- AddressSanitizer
- ThreadSanitizer
- LeakSanitizer
- MemorySanitizer
- Undefined Behavious Sanitizer
Ruben Kerkhof [Fri, 20 Feb 2015 16:51:38 +0000 (16:51 +0000)]
Check compiler for relro support instead of linker
We use the compiler for linking in most cases
instead of calling ld directly.
Do this the same way as we do for the recursor.
Fixes #2172
Ruben Kerkhof [Fri, 20 Feb 2015 16:47:23 +0000 (16:47 +0000)]
Log when we don't know how to link relro
Peter van Dijk [Fri, 20 Feb 2015 14:25:15 +0000 (15:25 +0100)]
Merge pull request #2262 from hkraal/master
Documentation enhancements (added links and MySQL replication information)
Henk Kraal [Fri, 20 Feb 2015 12:32:57 +0000 (13:32 +0100)]
Warn for STATEMENT based replication with MySQL and added links to modes-of-operation.md in settings.md
Peter van Dijk [Fri, 20 Feb 2015 12:54:12 +0000 (13:54 +0100)]
Merge pull request #2255 from rubenk/fix-automake-warning
Fix automake warnings for remotebackend testsuite
Peter van Dijk [Fri, 20 Feb 2015 12:11:20 +0000 (13:11 +0100)]
Merge pull request #2260 from rubenk/remove-temporary-socket
pdns_control: don't open socket in /tmp
Ruben Kerkhof [Fri, 13 Feb 2015 16:25:39 +0000 (17:25 +0100)]
pdns_control: don't open socket in /tmp
pdns_control opened a socket in /tmp to receive
responses on from pdns. However, since the control
socket pdns_control connects to is a SOCK_STREAM socket
there's no need to do this anymore.
Fixes #2221
Peter van Dijk [Fri, 20 Feb 2015 10:52:52 +0000 (11:52 +0100)]
Merge pull request #1953 from rubenk/limit-notifies
Limit who can send us AXFR notify queries
Ruben Kerkhof [Sun, 14 Dec 2014 14:19:55 +0000 (15:19 +0100)]
Limit who can send us AXFR notify queries
Fixes #1937 and #1120
Peter van Dijk [Fri, 20 Feb 2015 10:41:28 +0000 (11:41 +0100)]
Merge pull request #1948 from rubenk/dont-return-success-on-failure
Don't exit 0 on failure
Peter van Dijk [Fri, 20 Feb 2015 10:37:37 +0000 (11:37 +0100)]
Merge pull request #2257 from rubenk/security-for-pdns-systemd-unit
Add more restrictions to pdns systemd unit file
Peter van Dijk [Fri, 20 Feb 2015 10:22:05 +0000 (11:22 +0100)]
Merge pull request #2256 from rubenk/fix-systemd-capabilities-for-recursor
recursor needs capability to switch user and group
Peter van Dijk [Fri, 20 Feb 2015 10:21:55 +0000 (11:21 +0100)]
Merge pull request #2254 from rubenk/set-defaults-for-cflags
Add -Wall to the default CFLAGS
Peter van Dijk [Fri, 20 Feb 2015 09:18:47 +0000 (10:18 +0100)]
respond REFUSED instead of NOERROR for "unknown zone" situations
Ruben Kerkhof [Thu, 19 Feb 2015 19:46:51 +0000 (20:46 +0100)]
Add more restrictions to pdns systemd unit file
We already did for the recursor, now do the same for auth.
Ruben Kerkhof [Thu, 19 Feb 2015 19:45:27 +0000 (20:45 +0100)]
recursor needs capability to switch user and group
Ruben Kerkhof [Thu, 19 Feb 2015 19:18:31 +0000 (20:18 +0100)]
Fix automake warnings for remotebackend testsuite
Define RECHECK_LOGS and TEST_EXTENSIONS outside of the UNIT_TESTS
conditional
Fixes the following warnings:
/usr/share/automake-1.14/am/check.am: warning: RECHECK_LOGS was already defined in condition UNIT_TESTS, which is included in condition TRUE ...
modules/remotebackend/Makefile.am:74: ... 'RECHECK_LOGS' previously defined here
modules/remotebackend/Makefile.am:62: warning: 'TEST_EXTENSIONS' cannot have conditional contents
Ruben Kerkhof [Thu, 19 Feb 2015 18:41:07 +0000 (19:41 +0100)]
Add -Wall to the default CFLAGS
The default on my system is -g -O2
Peter van Dijk [Thu, 19 Feb 2015 08:20:11 +0000 (09:20 +0100)]
Merge pull request #2253 from pieterlexis/configureOutputCXXYesNo
Have configure show yes/no for C++2011 support
Pieter Lexis [Wed, 18 Feb 2015 20:04:07 +0000 (21:04 +0100)]
Have configure show yes/no for C++2011 support
Peter van Dijk [Wed, 18 Feb 2015 16:01:31 +0000 (17:01 +0100)]
Merge pull request #2251 from hkraal/patch-1
Corrected default value for master setting
Henk Kraal [Wed, 18 Feb 2015 15:55:55 +0000 (16:55 +0100)]
Corrected default value for master setting
Peter van Dijk [Wed, 18 Feb 2015 08:16:10 +0000 (09:16 +0100)]
Merge pull request #2215 from pieterlexis/issue-2179-API-send-403
JSON-API: Send 403 on bad API-Key
Peter van Dijk [Tue, 17 Feb 2015 16:26:41 +0000 (17:26 +0100)]
avoid fbsd10 build failure, thanks @rubenk
Peter van Dijk [Tue, 17 Feb 2015 16:20:18 +0000 (17:20 +0100)]
move recursor-git build script from jenkins config into git
Peter van Dijk [Tue, 17 Feb 2015 15:24:55 +0000 (16:24 +0100)]
move auth-git build script from jenkins config into git
Peter van Dijk [Tue, 17 Feb 2015 15:14:37 +0000 (16:14 +0100)]
Merge pull request #2218 from sspans/sspans-bindany
add support for non-local binds
Sten Spans [Wed, 11 Feb 2015 13:50:10 +0000 (14:50 +0100)]
add support for non-local binds
- add option non-local-bind to request this behaviour
- add support to auth and recursor
- add utility function to set sockopts
bert hubert [Tue, 17 Feb 2015 13:31:00 +0000 (14:31 +0100)]
teach dnsscope to read multiple files closes #2247
bert hubert [Tue, 17 Feb 2015 12:42:27 +0000 (13:42 +0100)]
add support for raw IP tcpdump format, which makes is compatible with DNS OARC dnscap and closes #2246
Peter van Dijk [Tue, 17 Feb 2015 09:16:38 +0000 (10:16 +0100)]
remove all traces of fancy records
Peter van Dijk [Tue, 17 Feb 2015 10:14:33 +0000 (11:14 +0100)]
Merge pull request #2230 from Whissi/improve-remotebackend-testsuite-r1
Improve remotebackend testsuite
Thomas D [Sat, 14 Feb 2015 13:31:21 +0000 (14:31 +0100)]
Show 'modules/remotebackend/test-suite.log' when exists
This will help us to see what's going on.
Thomas D [Sat, 14 Feb 2015 13:28:12 +0000 (14:28 +0100)]
Workaround for Travis `make check` failure no longer needed
Thomas D [Sat, 14 Feb 2015 13:23:25 +0000 (14:23 +0100)]
Make parallel test harness work with automake-1.11
Thomas D [Fri, 13 Feb 2015 12:58:26 +0000 (13:58 +0100)]
Add check for curl program
When building "remote" module with unit tests enabled we need the curl program
because the remotebacked testsuite uses the curl program.
Thomas D [Fri, 13 Feb 2015 12:33:23 +0000 (13:33 +0100)]
When test service startup timeout was reached kill (cleanup) still running test services
If curl for example isn't installed or fails to check the service status for any reason,
we need to kill the test service if still running to prevent any resource leak.
Thomas D [Fri, 13 Feb 2015 03:01:09 +0000 (04:01 +0100)]
Fix testrunner.sh's exit status
"$rv" isn't defined so use "$?" instead.
Thomas D [Fri, 13 Feb 2015 02:44:22 +0000 (03:44 +0100)]
Detect test service start failures
It is possible that a test service doesn't start (i.e. due to missing Ruby dependencies).
We are now checking if the test services are running or we will display a meaningful
error message.
Also, because testrunner.sh is now called by test-driver, we can skip tests.
Thomas D [Fri, 13 Feb 2015 01:58:55 +0000 (02:58 +0100)]
Detect test service stop failures
Imagine a test blocks or kills the test service. Failures like that
should be detected.
Thomas D [Fri, 13 Feb 2015 01:02:47 +0000 (02:02 +0100)]
Test services should log into their own log file
Each test has a general log file in the following schema:
remotebackend_<module>.log
When testrunner.sh spins up a service, the service logs its output
into the general log file. But test-driver from automake, which is
using the same log file and starts after the test service is up and
running, will overwrite the log file.
So in case of a server failure we will miss important log data.
Using a dedicated log file for the services we start will solve
this problem. The new schema for server log files will be
remotebackend_<module>_server.log
Thomas D [Fri, 13 Feb 2015 00:22:54 +0000 (01:22 +0100)]
automake: Use parallel test harness to prevent a parallel make issue
The http, post and json test are using the same TCP port. Because of
that we need to specify an execution order or we will get errors like
INFO WEBrick 1.3.1
INFO ruby 2.0.0 (2014-11-13) [x86_64-linux]
WARN TCPServer Error: Address already in use - bind(2)
WARN TCPServer Error: Address already in use - bind(2)
/usr/lib64/ruby/2.0.0/webrick/utils.rb:85:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
from /usr/lib64/ruby/2.0.0/webrick/utils.rb:85:in `new'
from /usr/lib64/ruby/2.0.0/webrick/utils.rb:85:in `block in create_listeners'
from /usr/lib64/ruby/2.0.0/webrick/utils.rb:82:in `each'
from /usr/lib64/ruby/2.0.0/webrick/utils.rb:82:in `create_listeners'
from /usr/lib64/ruby/2.0.0/webrick/server.rb:132:in `listen'
from /usr/lib64/ruby/2.0.0/webrick/server.rb:113:in `initialize'
from /usr/lib64/ruby/2.0.0/webrick/httpserver.rb:45:in `initialize'
from ./unittest_http.rb:184:in `new'
from ./unittest_http.rb:184:in `<main>'
when running the tests in parallel (`make -j5 check`).
Thomas D [Thu, 12 Feb 2015 20:21:39 +0000 (21:21 +0100)]
Disable shell debug mode
Probably leftovers from a previous debugging session.
Peter van Dijk [Tue, 17 Feb 2015 08:53:42 +0000 (09:53 +0100)]
Merge pull request #2234 from rubenk/cleanup-log-messages
Cleanup the log messages a bit
bert hubert [Tue, 17 Feb 2015 08:43:57 +0000 (09:43 +0100)]
remove the parts that are wrong from this readme, add some stuff that is right
Ruben Kerkhof [Sat, 14 Feb 2015 14:18:37 +0000 (15:18 +0100)]
Cleanup the log messages a bit
And fix a few typos while we're at it.
Peter van Dijk [Tue, 17 Feb 2015 07:52:22 +0000 (08:52 +0100)]
Merge pull request #2237 from zeha/share-thread-ueberbackend
PacketHandler: Share UeberBackend with DNSSECKeeper
Peter van Dijk [Tue, 17 Feb 2015 06:22:53 +0000 (07:22 +0100)]
Merge pull request #2243 from mind04/dolog
dnsdist requires dolog.hh
Kees Monshouwer [Mon, 16 Feb 2015 22:50:29 +0000 (23:50 +0100)]
dnsdist requires dolog.hh
Peter van Dijk [Mon, 16 Feb 2015 21:50:41 +0000 (22:50 +0100)]
Merge pull request #2242 from mind04/dist
add LuaContext.hpp to auth dist tar.bz2
Kees Monshouwer [Mon, 16 Feb 2015 20:05:04 +0000 (21:05 +0100)]
add LuaContext.hpp to auth dist tar.bz2
Pieter Lexis [Tue, 10 Feb 2015 18:09:51 +0000 (19:09 +0100)]
JSON-API: Send 401 on bad API-Key
* Closes #2179
* We send an HTTP 401 (Unauthorized) when:
* The API Key is wrong
* The API Key is empty or missing
* Authentication failures are logged as Error (was Debug)
* Fix the API regression test to accept this 401 as valid
Peter van Dijk [Mon, 16 Feb 2015 15:09:00 +0000 (16:09 +0100)]
Merge pull request #2235 from Whissi/make-remotebackend-zeromq-depending-on-remote-module
0MQ remotebackend requires remote backend itself
Peter van Dijk [Mon, 16 Feb 2015 14:11:14 +0000 (15:11 +0100)]
Merge pull request #2236 from Whissi/cleanup-configure-output
Improve configure output
Peter van Dijk [Mon, 16 Feb 2015 14:00:27 +0000 (15:00 +0100)]
Merge pull request #2157 from cmouse/tsig-changes
Tsig changes
Peter van Dijk [Mon, 16 Feb 2015 12:22:15 +0000 (13:22 +0100)]
move statbag so static initialisation happens early enough for packetcache; thanks @cmouse for pointers
Peter van Dijk [Mon, 16 Feb 2015 12:43:38 +0000 (13:43 +0100)]
Merge pull request #1735 from cmouse/send-servfail-on-error
Make sure we send servfail on error
bert hubert [Mon, 16 Feb 2015 11:27:09 +0000 (12:27 +0100)]
remove dependency on sendmmsg, which did not help in any case
Peter van Dijk [Mon, 16 Feb 2015 09:29:11 +0000 (10:29 +0100)]
Avoid warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wc++11-compat-deprecated-writable-strings]
Peter van Dijk [Mon, 16 Feb 2015 08:09:01 +0000 (09:09 +0100)]
Merge pull request #2238 from cmouse/fix-lua-auth-warning
Use correct type for loop variable, removes warning
bert hubert [Mon, 16 Feb 2015 07:44:47 +0000 (08:44 +0100)]
we used to rely on SRCDIR environment variable being set, now assume . if unset
bert hubert [Sun, 15 Feb 2015 18:55:44 +0000 (19:55 +0100)]
fix up our c++2011-with-working-lua-detection (thanks to pieter for spotting the issue)
Aki Tuomi [Sun, 15 Feb 2015 15:23:02 +0000 (17:23 +0200)]
Use correct type for loop variable, removes warning
Christian Hofstaedtler [Sun, 15 Feb 2015 14:01:28 +0000 (15:01 +0100)]
Replace PacketHandler with UeberBackend where possible
Makes reasoning about PacketHandler usage easier.
Christian Hofstaedtler [Sun, 15 Feb 2015 13:36:45 +0000 (14:36 +0100)]
Remove emitNSEC3 from header file
I broke it's signature during the last cleanup, but nobody outside
packethandler.cc uses it.
Christian Hofstaedtler [Sun, 15 Feb 2015 13:35:27 +0000 (14:35 +0100)]
PacketHandler: Remove signatures for missing functions
Christian Hofstaedtler [Sun, 15 Feb 2015 13:08:32 +0000 (14:08 +0100)]
PacketHandler: Share UeberBackend with DNSSECKeeper
Reduces number of backend instances by 50%, very relevant for setups
that have backends with huge startup/runtime cost.
Thomas D [Sat, 14 Feb 2015 21:14:42 +0000 (22:14 +0100)]
Add information whether we are building ZeroMQ remotebackend to summary
Thomas D [Sat, 14 Feb 2015 17:42:52 +0000 (18:42 +0100)]
"--disable-hardening" option improved
* Splitted into argument and helptext
* MSG about hardening status added to configure output
bert hubert [Sat, 14 Feb 2015 18:26:17 +0000 (19:26 +0100)]
dnsdist is c++2011 now which means jenkins can't build it anymore for us. Remove it from RPM.
Thomas D [Sat, 14 Feb 2015 16:43:34 +0000 (17:43 +0100)]
ZeroMQ remotebackend requires remote backend itself
Peter van Dijk [Sat, 14 Feb 2015 14:54:54 +0000 (15:54 +0100)]
Merge pull request #2233 from rubenk/handle-missing-so_reuseport
Older kernels don't have SO_REUSEPORT
Ruben Kerkhof [Sat, 14 Feb 2015 14:42:07 +0000 (15:42 +0100)]
Older kernels don't have SO_REUSEPORT
bert hubert [Sat, 14 Feb 2015 12:10:03 +0000 (13:10 +0100)]
only do c++-2011 is luawrapper works (breaks c+2011 for non-lua builds, but want to get the tests running again)
bert hubert [Sat, 14 Feb 2015 09:41:21 +0000 (10:41 +0100)]
turns out travis and jenkins don't know about the sendmmsg system call (eh?)