]> granicus.if.org Git - pdns/log
pdns
10 years agoship dnsdistconf.lua in tarball, move to symlinks to ../ for dnsdistdist
bert hubert [Sun, 8 Mar 2015 09:36:32 +0000 (10:36 +0100)]
ship dnsdistconf.lua in tarball, move to symlinks to ../ for dnsdistdist

10 years agofurther include fixes in modules
bert hubert [Sun, 8 Mar 2015 09:15:26 +0000 (10:15 +0100)]
further include fixes in modules

10 years agosome further utility.hh fixes
bert hubert [Sun, 8 Mar 2015 08:06:15 +0000 (09:06 +0100)]
some further utility.hh fixes

10 years agofix up testrunner
bert hubert [Sun, 8 Mar 2015 07:47:20 +0000 (08:47 +0100)]
fix up testrunner

10 years agoremove ragel requirement from config
bert hubert [Sun, 8 Mar 2015 07:46:56 +0000 (08:46 +0100)]
remove ragel requirement from config

10 years agoMerge pull request #2 from rubenk/luajit
bert hubert [Sun, 8 Mar 2015 07:10:33 +0000 (08:10 +0100)]
Merge pull request #2 from rubenk/luajit

Check for luajit before checking for lua

10 years agoCheck for luajit before checking for lua
Ruben Kerkhof [Sat, 7 Mar 2015 22:37:53 +0000 (23:37 +0100)]
Check for luajit before checking for lua

10 years agoget the right files
bert hubert [Sat, 7 Mar 2015 21:58:55 +0000 (22:58 +0100)]
get the right files

10 years agodnsdistdist infrastructure (for now)
bert hubert [Sat, 7 Mar 2015 21:46:40 +0000 (22:46 +0100)]
dnsdistdist infrastructure (for now)

10 years agostrip dnsdist down to the bare essentials
bert hubert [Sat, 7 Mar 2015 21:46:12 +0000 (22:46 +0100)]
strip dnsdist down to the bare essentials

10 years agoin this commit, we cut the ties between three painful pieces of PowerDNS: Logger...
bert hubert [Sat, 7 Mar 2015 21:33:35 +0000 (22:33 +0100)]
in this commit, we cut the ties between three painful pieces of PowerDNS: Logger, ArgVmap, StatBag. Neither of these components is very good, but if you include more than two PowerDNS files, you end up depending on all three.  In this commit, we cut those ties, allowing many tools to longer rely on this 'mediocre triad'.

10 years agoimplement LocalState/GlobalState
bert hubert [Sat, 7 Mar 2015 21:27:21 +0000 (22:27 +0100)]
implement LocalState/GlobalState

10 years agofurther removals of #include of utility.hh
bert hubert [Sat, 7 Mar 2015 21:03:25 +0000 (22:03 +0100)]
further removals of #include of utility.hh

10 years agoadd some specific includes here and there to generically improve inter-dependencies
bert hubert [Sat, 7 Mar 2015 21:02:32 +0000 (22:02 +0100)]
add some specific includes here and there to generically improve inter-dependencies

10 years agoremove dependency on unix_utility.cc from misc.hh
bert hubert [Sat, 7 Mar 2015 21:01:49 +0000 (22:01 +0100)]
remove dependency on unix_utility.cc from misc.hh

10 years agosome const correctness, Utility:: diet
bert hubert [Sat, 7 Mar 2015 21:00:37 +0000 (22:00 +0100)]
some const correctness, Utility:: diet

10 years agodnsname now stores raw DNS data in flat storage
bert hubert [Thu, 5 Mar 2015 15:33:01 +0000 (16:33 +0100)]
dnsname now stores raw DNS data in flat storage

10 years agoreduce memory usage, but DNSName needs to go on a diet: 80 bytes sizeof!!
bert hubert [Thu, 5 Mar 2015 13:12:01 +0000 (14:12 +0100)]
reduce memory usage, but DNSName needs to go on a diet: 80 bytes sizeof!!

10 years agofix up endianness issue in our crypto hopefully
bert hubert [Thu, 5 Mar 2015 11:54:57 +0000 (12:54 +0100)]
fix up endianness issue in our crypto hopefully

10 years agoparse whole config before daemonize now, which means we can complain to the operator
bert hubert [Thu, 5 Mar 2015 11:54:12 +0000 (12:54 +0100)]
parse whole config before daemonize now, which means we can complain to the operator
fix traffic ending up in pools where it did not belong

10 years agoremove some lua functions, fix up names of others
bert hubert [Thu, 5 Mar 2015 09:10:09 +0000 (10:10 +0100)]
remove some lua functions, fix up names of others

10 years agodocumentation
bert hubert [Thu, 5 Mar 2015 09:08:01 +0000 (10:08 +0100)]
documentation

10 years agosplit up dnsdist.cc, it was getting large
bert hubert [Thu, 5 Mar 2015 08:05:50 +0000 (09:05 +0100)]
split up dnsdist.cc, it was getting large

10 years agoadd header for server pools to docs
bert hubert [Wed, 4 Mar 2015 21:00:00 +0000 (22:00 +0100)]
add header for server pools to docs

10 years agouse one of those fancy c++2011 things, the 'using alias' for our server vector
bert hubert [Wed, 4 Mar 2015 20:59:23 +0000 (21:59 +0100)]
use one of those fancy c++2011 things, the 'using alias' for our server vector

10 years agoimplement pools, fix up setServerPolicy for Lua policies, document is
bert hubert [Wed, 4 Mar 2015 20:37:09 +0000 (21:37 +0100)]
implement pools, fix up setServerPolicy for Lua policies, document is

10 years agofix up compilation on gcc 4.8, older linuxes, fix makeKey() over socket
bert hubert [Wed, 4 Mar 2015 11:24:58 +0000 (12:24 +0100)]
fix up compilation on gcc 4.8, older linuxes, fix makeKey() over socket

10 years agospent an injustifiable amount of time making graphs..
bert hubert [Tue, 3 Mar 2015 20:44:15 +0000 (21:44 +0100)]
spent an injustifiable amount of time making graphs..

10 years agoadd QPS limiting per domain or subnet
bert hubert [Tue, 3 Mar 2015 13:46:29 +0000 (14:46 +0100)]
add QPS limiting per domain or subnet

10 years agorename listServers() to showServers() which is the new nomenclature, plus add showSer...
bert hubert [Tue, 3 Mar 2015 11:49:44 +0000 (12:49 +0100)]
rename listServers() to showServers() which is the new nomenclature, plus add showServerPolicy()

10 years agomake dnsgram emit 10ms-granularity query/respnse statistics on 'rdqaplot'
bert hubert [Tue, 3 Mar 2015 09:49:52 +0000 (10:49 +0100)]
make dnsgram emit 10ms-granularity query/respnse statistics on 'rdqaplot'

10 years agoloads of new goodness
bert hubert [Mon, 2 Mar 2015 20:27:46 +0000 (21:27 +0100)]
loads of new goodness

10 years agoimplement Marek Vavrusa's suggestion that dnsdist could be used for 'split horizon...
bert hubert [Fri, 27 Feb 2015 20:44:12 +0000 (21:44 +0100)]
implement Marek Vavrusa's suggestion that dnsdist could be used for 'split horizon' setups, plus document it.

10 years agoimplement ACLs, document them and add a list of sins to the source code
bert hubert [Fri, 27 Feb 2015 20:14:34 +0000 (21:14 +0100)]
implement ACLs, document them and add a list of sins to the source code

10 years agoupdate docs with latest features
bert hubert [Fri, 27 Feb 2015 15:14:48 +0000 (16:14 +0100)]
update docs with latest features

10 years agoadd ability to set TC=1 from Lua to turn ANY into TCP, for example. Plus fix up TCP...
bert hubert [Fri, 27 Feb 2015 13:35:42 +0000 (14:35 +0100)]
add ability to set TC=1 from Lua to turn ANY into TCP, for example. Plus fix up TCP so it works again.

10 years agoupdate readme, packager
bert hubert [Thu, 26 Feb 2015 20:00:31 +0000 (21:00 +0100)]
update readme, packager

10 years agomove config file, add dist script
bert hubert [Thu, 26 Feb 2015 19:33:19 +0000 (20:33 +0100)]
move config file, add dist script

10 years ago-lrt is needed for clock_gettime on some platforms
bert hubert [Thu, 26 Feb 2015 19:02:14 +0000 (20:02 +0100)]
-lrt is needed for clock_gettime on some platforms

10 years agoadd back controlSocket() to configuration file, plus fix up display of downstreamservers.
bert hubert [Thu, 26 Feb 2015 18:57:08 +0000 (19:57 +0100)]
add back controlSocket() to configuration file, plus fix up display of downstreamservers.

10 years agomake a default address for the control channel
bert hubert [Thu, 26 Feb 2015 18:39:17 +0000 (19:39 +0100)]
make a default address for the control channel

10 years agomove to symmetric crypto, plus document how it works
bert hubert [Thu, 26 Feb 2015 18:10:33 +0000 (19:10 +0100)]
move to symmetric crypto, plus document how it works

10 years agoimplement remote control with libsodium
bert hubert [Thu, 26 Feb 2015 16:19:08 +0000 (17:19 +0100)]
implement remote control with libsodium

10 years agofix crash at exit, fix history appending
bert hubert [Wed, 25 Feb 2015 21:33:31 +0000 (22:33 +0100)]
fix crash at exit, fix history appending

10 years agoadd addDomainBlock, spruce up documentation
bert hubert [Wed, 25 Feb 2015 21:19:35 +0000 (22:19 +0100)]
add addDomainBlock, spruce up documentation

10 years agofix doc mistakes
bert hubert [Wed, 25 Feb 2015 17:35:09 +0000 (18:35 +0100)]
fix doc mistakes

10 years agodnsdist now does things & has documentation
bert hubert [Wed, 25 Feb 2015 17:08:39 +0000 (18:08 +0100)]
dnsdist now does things & has documentation

10 years agosilence some warnings
bert hubert [Wed, 25 Feb 2015 16:19:59 +0000 (17:19 +0100)]
silence some warnings

10 years agoturns out we were escaping to octal, the standard is decimal. We also messed up escap...
bert hubert [Mon, 23 Feb 2015 16:08:24 +0000 (17:08 +0100)]
turns out we were escaping to octal, the standard is decimal. We also messed up escaping ".

10 years agoand fix up recursor separate compilation
bert hubert [Fri, 20 Feb 2015 16:10:33 +0000 (17:10 +0100)]
and fix up recursor separate compilation

10 years agodisable boost random tests for now, plus remove some boost thigns from zoneparser...
bert hubert [Fri, 20 Feb 2015 15:41:40 +0000 (16:41 +0100)]
disable boost random tests for now, plus remove some boost thigns from zoneparser to fix compilation on c++2011

10 years agogeoip's yaml has a c++2011 issue on travis, disabling geoip testing for now
bert hubert [Fri, 20 Feb 2015 15:14:26 +0000 (16:14 +0100)]
geoip's yaml has a c++2011 issue on travis, disabling geoip testing for now

10 years agosome small c++-2011 things that should make travis happy
bert hubert [Fri, 20 Feb 2015 14:57:57 +0000 (15:57 +0100)]
some small c++-2011 things that should make travis happy

10 years agoadd #include for std::shared_ptr
bert hubert [Fri, 20 Feb 2015 14:46:07 +0000 (15:46 +0100)]
add #include for std::shared_ptr

10 years agomove to std::shared_ptr
bert hubert [Fri, 20 Feb 2015 14:22:33 +0000 (15:22 +0100)]
move to std::shared_ptr

10 years agoteach DNSName to get names from DNS packets, including decompression
bert hubert [Fri, 20 Feb 2015 13:26:37 +0000 (14:26 +0100)]
teach DNSName to get names from DNS packets, including decompression

10 years agoadd a speed test for std::string::append()
bert hubert [Fri, 20 Feb 2015 13:23:03 +0000 (14:23 +0100)]
add a speed test for std::string::append()

10 years agoadd appending to DNSName
bert hubert [Fri, 20 Feb 2015 08:59:10 +0000 (09:59 +0100)]
add appending to DNSName

10 years agoalso extract the qclass from a dnspacket
bert hubert [Thu, 19 Feb 2015 15:16:54 +0000 (16:16 +0100)]
also extract the qclass from a dnspacket

10 years agoadd length checking and speedup name parsing a bit
bert hubert [Thu, 19 Feb 2015 12:09:54 +0000 (13:09 +0100)]
add length checking and speedup name parsing a bit

10 years agoimplement SuffixMatchNode, unit tests, expose it to Lua and use it in dnsdistconf.lua
bert hubert [Thu, 19 Feb 2015 11:49:23 +0000 (12:49 +0100)]
implement SuffixMatchNode, unit tests, expose it to Lua and use it in dnsdistconf.lua

10 years agoattempt to do gcc-4.8 on travis..
bert hubert [Thu, 19 Feb 2015 09:29:27 +0000 (10:29 +0100)]
attempt to do gcc-4.8 on travis..

10 years agoMerge branch 'master' into dnsname
bert hubert [Thu, 19 Feb 2015 08:48:44 +0000 (09:48 +0100)]
Merge branch 'master' into dnsname

10 years agosample configuration file
bert hubert [Thu, 19 Feb 2015 08:47:52 +0000 (09:47 +0100)]
sample configuration file

10 years agoimplement DNSName class, test the hell out of it, make dnsdist use it
bert hubert [Thu, 19 Feb 2015 08:47:30 +0000 (09:47 +0100)]
implement DNSName class, test the hell out of it, make dnsdist use it

10 years agosupport unions too in Luawrapper
bert hubert [Thu, 19 Feb 2015 08:45:55 +0000 (09:45 +0100)]
support unions too in Luawrapper

10 years agoMerge pull request #2253 from pieterlexis/configureOutputCXXYesNo
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

10 years agoHave 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

10 years agoMerge pull request #2251 from hkraal/patch-1
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

10 years agoCorrected default value for master setting
Henk Kraal [Wed, 18 Feb 2015 15:55:55 +0000 (16:55 +0100)]
Corrected default value for master setting

10 years agoMerge pull request #2215 from pieterlexis/issue-2179-API-send-403
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

10 years agoavoid fbsd10 build failure, thanks @rubenk
Peter van Dijk [Tue, 17 Feb 2015 16:26:41 +0000 (17:26 +0100)]
avoid fbsd10 build failure, thanks @rubenk

10 years agomove recursor-git build script from jenkins config into git
Peter van Dijk [Tue, 17 Feb 2015 16:20:18 +0000 (17:20 +0100)]
move recursor-git build script from jenkins config into git

10 years agomove auth-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

10 years agoMerge pull request #2218 from sspans/sspans-bindany
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

10 years agoadd 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

10 years agoteach dnsscope to read multiple files closes #2247
bert hubert [Tue, 17 Feb 2015 13:31:00 +0000 (14:31 +0100)]
teach dnsscope to read multiple files closes #2247

10 years agoadd support for raw IP tcpdump format, which makes is compatible with DNS OARC dnscap...
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

10 years agoremove all traces of fancy records
Peter van Dijk [Tue, 17 Feb 2015 09:16:38 +0000 (10:16 +0100)]
remove all traces of fancy records

10 years agoMerge pull request #2230 from Whissi/improve-remotebackend-testsuite-r1
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

10 years agoShow 'modules/remotebackend/test-suite.log' when exists
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.

10 years agoWorkaround for Travis `make check` failure no longer needed
Thomas D [Sat, 14 Feb 2015 13:28:12 +0000 (14:28 +0100)]
Workaround for Travis `make check` failure no longer needed

10 years agoMake parallel test harness work with automake-1.11
Thomas D [Sat, 14 Feb 2015 13:23:25 +0000 (14:23 +0100)]
Make parallel test harness work with automake-1.11

10 years agoAdd check for curl program
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.

10 years agoWhen test service startup timeout was reached kill (cleanup) still running test services
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.

10 years agoFix testrunner.sh's exit status
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.

10 years agoDetect test service start failures
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.

10 years agoDetect test service stop failures
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.

10 years agoTest services should log into their own log file
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

10 years agoautomake: Use parallel test harness to prevent a parallel make issue
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`).

10 years agoDisable shell debug mode
Thomas D [Thu, 12 Feb 2015 20:21:39 +0000 (21:21 +0100)]
Disable shell debug mode

Probably leftovers from a previous debugging session.

10 years agoMerge pull request #2234 from rubenk/cleanup-log-messages
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

10 years agoremove the parts that are wrong from this readme, add some stuff that is right
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

10 years agoCleanup the log messages a bit
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.

10 years agoMerge pull request #2237 from zeha/share-thread-ueberbackend
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

10 years agoMerge pull request #2243 from mind04/dolog
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

10 years agodnsdist requires dolog.hh
Kees Monshouwer [Mon, 16 Feb 2015 22:50:29 +0000 (23:50 +0100)]
dnsdist requires dolog.hh

10 years agoMerge pull request #2242 from mind04/dist
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

10 years agoadd 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

10 years agoJSON-API: Send 401 on bad API-Key
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