]> granicus.if.org Git - pdns/log
pdns
8 years agoMerge pull request #3558 from rubenk/pdns-recursor-fix-building-on-OSX
Peter van Dijk [Tue, 15 Mar 2016 09:01:11 +0000 (10:01 +0100)]
Merge pull request #3558 from rubenk/pdns-recursor-fix-building-on-OSX

pdns-recursor: fix build failure on OSX

8 years agoMerge pull request #3554 from nlyan/ctxlinkfixes
Peter van Dijk [Tue, 15 Mar 2016 09:00:32 +0000 (10:00 +0100)]
Merge pull request #3554 from nlyan/ctxlinkfixes

Fix Boost component library detection on ARM64 etc.

8 years agoMerge pull request #3549 from rubenk/dont-break-vim-syntax-highlighting
Peter van Dijk [Tue, 15 Mar 2016 08:59:23 +0000 (09:59 +0100)]
Merge pull request #3549 from rubenk/dont-break-vim-syntax-highlighting

Single single quotes break Vim highlighting

8 years agoMerge pull request #3546 from rubenk/dnsdist-needs-autoconf-2.61
Peter van Dijk [Tue, 15 Mar 2016 08:58:49 +0000 (09:58 +0100)]
Merge pull request #3546 from rubenk/dnsdist-needs-autoconf-2.61

Dnsdist needs Autoconf >= 2.61 for Boost macros

8 years agoMerge pull request #3545 from rubenk/recursor-needs-autoconf-2.61
Peter van Dijk [Tue, 15 Mar 2016 08:58:42 +0000 (09:58 +0100)]
Merge pull request #3545 from rubenk/recursor-needs-autoconf-2.61

Recursor needs Autoconf >= 2.61 for Boost macros

8 years agoMerge pull request #3541 from rubenk/spec-point-to-https-url
Peter van Dijk [Tue, 15 Mar 2016 08:57:46 +0000 (09:57 +0100)]
Merge pull request #3541 from rubenk/spec-point-to-https-url

Specs: use https url for powerdns.com

8 years agoMerge pull request #3540 from rubenk/remove-unused-recursor-spec
Peter van Dijk [Tue, 15 Mar 2016 08:57:26 +0000 (09:57 +0100)]
Merge pull request #3540 from rubenk/remove-unused-recursor-spec

Remove unused pdns-recursor.spec

8 years agoMerge pull request #3564 from rgacogne/dnsdist-readn2-eagain
Remi Gacogne [Mon, 14 Mar 2016 10:42:57 +0000 (11:42 +0100)]
Merge pull request #3564 from rgacogne/dnsdist-readn2-eagain

dnsdist: Add more information when readn2 fails because of EAGAIN

8 years agodnsdist: Add more information when readn2 fails because of EAGAIN
Remi Gacogne [Mon, 14 Mar 2016 09:22:08 +0000 (10:22 +0100)]
dnsdist: Add more information when readn2 fails because of EAGAIN

8 years agomake sure ednsoptions.hh gets distributed, fixing build on our builder infrastructure...
bert hubert [Sat, 12 Mar 2016 19:23:16 +0000 (20:23 +0100)]
make sure ednsoptions.hh gets distributed, fixing build on our builder infrastructure, which builds from make dist

8 years agopdns-recursor: fix build failure on OSX
Ruben Kerkhof [Sat, 12 Mar 2016 18:13:29 +0000 (19:13 +0100)]
pdns-recursor: fix build failure on OSX

Using OpenSSL from Homebrew, by doing
./configure --with-openssl=/Users/ruben/homebrew/Cellar/openssl/1.0.2g

Results in:

/Library/Developer/CommandLineTools/usr/bin/make  all-am
CXX      base64.o
base64.cc:7:10: fatal error: 'openssl/bio.h' file not found
     ^
1 error generated.

8 years agoMerge pull request #3557 from rubenk/pdns-fix-building-on-osx
Peter van Dijk [Sat, 12 Mar 2016 17:47:47 +0000 (18:47 +0100)]
Merge pull request #3557 from rubenk/pdns-fix-building-on-osx

pdns: Fix build on OSX

8 years agonits
bert hubert [Sat, 12 Mar 2016 13:05:11 +0000 (14:05 +0100)]
nits

8 years agowe lied in our description of secure-zone: we no longer add all those keys
bert hubert [Sat, 12 Mar 2016 13:00:35 +0000 (14:00 +0100)]
we lied in our description of secure-zone: we no longer add all those keys

8 years agopdns: Fix build on OSX
Ruben Kerkhof [Sat, 12 Mar 2016 11:59:22 +0000 (12:59 +0100)]
pdns: Fix build on OSX

Using OpenSSL from Homebrew, by doing
./configure --with-openssl=/Users/ruben/homebrew/Cellar/openssl/1.0.2g

Results in:

Making all in pdns
/Library/Developer/CommandLineTools/usr/bin/make  all-am
  CXX      base64.o
base64.cc:7:10: fatal error: 'openssl/bio.h' file not found
         ^
1 error generated.

8 years agoMerge pull request #3556 from rgacogne/dnsdist-tcp-max-queued
bert hubert [Fri, 11 Mar 2016 20:57:30 +0000 (21:57 +0100)]
Merge pull request #3556 from rgacogne/dnsdist-tcp-max-queued

dnsdist: Add an option to limit the number of queued TCP connections

8 years agoMerge pull request #3537 from rgacogne/rec-gettag-ecs
bert hubert [Fri, 11 Mar 2016 20:57:11 +0000 (21:57 +0100)]
Merge pull request #3537 from rgacogne/rec-gettag-ecs

rec: Handle multiple EDNS0 Options in gettag

8 years agoMerge pull request #3548 from rubenk/bump-copyright-year
bert hubert [Fri, 11 Mar 2016 20:56:49 +0000 (21:56 +0100)]
Merge pull request #3548 from rubenk/bump-copyright-year

Bump copyright year

8 years agoMerge pull request #3551 from rubenk/include-endian-h-on-freebsd
bert hubert [Fri, 11 Mar 2016 20:56:34 +0000 (21:56 +0100)]
Merge pull request #3551 from rubenk/include-endian-h-on-freebsd

Dnsdist: include <sys/endian.h> on FreeBSD

8 years agoMerge pull request #3550 from rubenk/fix-build-failure-on-freebsd
bert hubert [Fri, 11 Mar 2016 20:56:17 +0000 (21:56 +0100)]
Merge pull request #3550 from rubenk/fix-build-failure-on-freebsd

Dnsdist: Fix build failure on FreeBSD

8 years agoMerge pull request #3538 from rgacogne/dnsdist-api-tests
Remi Gacogne [Fri, 11 Mar 2016 16:54:54 +0000 (17:54 +0100)]
Merge pull request #3538 from rgacogne/dnsdist-api-tests

dnsdist: Add API regression tests

8 years agoMerge pull request #3539 from rgacogne/dnsdist-fix-printing-empty-cache
Remi Gacogne [Fri, 11 Mar 2016 16:50:54 +0000 (17:50 +0100)]
Merge pull request #3539 from rgacogne/dnsdist-fix-printing-empty-cache

dnsdist: Don't crash when calling cache functions with nil on the console

8 years agoAdd ifdef HAVE_CONFIG_H
Andrew Nelless [Fri, 11 Mar 2016 16:26:38 +0000 (16:26 +0000)]
Add ifdef HAVE_CONFIG_H

8 years agodnsdist: Add an option to limit the number of queued TCP connections
Remi Gacogne [Fri, 11 Mar 2016 15:31:24 +0000 (16:31 +0100)]
dnsdist: Add an option to limit the number of queued TCP connections

By default, if all TCP threads are busy we will queue incoming TCP
connections until the communication pipes are full.
In some setup, we might run out of file descriptors quickly,
causing new TCP connections but also health checks, web requests,
console connections to fail.
This new `setMaxTCPQueuedConnections()` option limits the number of
queued connections, dropping new ones when the threshold is
reached.

8 years agoMerge pull request #3553 from ahupowerdns/fixbits
bert hubert [Fri, 11 Mar 2016 14:42:18 +0000 (15:42 +0100)]
Merge pull request #3553 from ahupowerdns/fixbits

get number of key bits for presigned zone show-zone properly

8 years agoFix Boost component library detection.
Andrew Nelless [Thu, 10 Mar 2016 19:59:50 +0000 (19:59 +0000)]
Fix Boost component library detection.

On some platforms the Boost context headers are being shipped on
architectures where the library can't be built. Here we patch
boost.m4 to set HAVE_BOOST_<component> definitions based on
whether the library actually exists.

This should also fix builds against Boost 1.58.0, which shipped
a broken context/all.hpp header when compiling in modes before
C++14 (see: https://svn.boost.org/trac/boost/ticket/11223 )

8 years agoget number of key bits for presigned zone show-zone properly
bert hubert [Fri, 11 Mar 2016 13:06:29 +0000 (14:06 +0100)]
get number of key bits for presigned zone show-zone properly

8 years agoDnsdist: include <sys/endian.h> on FreeBSD
Ruben Kerkhof [Fri, 11 Mar 2016 12:07:27 +0000 (13:07 +0100)]
Dnsdist: include <sys/endian.h> on FreeBSD

Fixes:
In file included from dnsdist.hh:6:0,
                 from dnsdist.cc:23:
iputils.hh: In member function 'NetmaskTree<T>::node_type& NetmaskTree<T>::insert(const key_type&)':
iputils.hh:532:73: error: there are no arguments to 'be32toh' that depend on a template parameter, so a declaration of 'be32toh' must be available [-fpermissive]
       std::bitset<32> addr(be32toh(key.getNetwork().sin4.sin_addr.s_addr));
                                                                         ^

When building with g++

8 years agoDnsdist: Fix build failure on FreeBSD
Ruben Kerkhof [Fri, 11 Mar 2016 10:57:05 +0000 (11:57 +0100)]
Dnsdist: Fix build failure on FreeBSD

YaHTTP needs Boost headers, and those are in /usr/local/include on FreeBSD.

Append BOOST_CPPFLAGS to AM_CPPFLAGS in configure.ac, so every Makefile uses them.
Also set the compiler flags globally, so that we compile yahttp with the same settings.

Fixes "/reqresp.hpp:7:10: fatal error: 'boost/function.hpp' file not found"

8 years agoSingle single quotes break Vim highlighting
Ruben Kerkhof [Fri, 11 Mar 2016 10:16:56 +0000 (11:16 +0100)]
Single single quotes break Vim highlighting

8 years agoBump copyright year
Ruben Kerkhof [Fri, 11 Mar 2016 10:11:18 +0000 (11:11 +0100)]
Bump copyright year

8 years agoDnsdist needs Autoconf >= 2.61 for Boost macros
Ruben Kerkhof [Fri, 11 Mar 2016 09:59:28 +0000 (10:59 +0100)]
Dnsdist needs Autoconf >= 2.61 for Boost macros

8 years agoRecursor needs Autoconf >= 2.61 for Boost macros
Ruben Kerkhof [Fri, 11 Mar 2016 09:57:13 +0000 (10:57 +0100)]
Recursor needs Autoconf >= 2.61 for Boost macros

8 years agoMerge pull request #3544 from pieterlexis/secpoll-rec-40-a2
Pieter Lexis [Fri, 11 Mar 2016 09:48:25 +0000 (10:48 +0100)]
Merge pull request #3544 from pieterlexis/secpoll-rec-40-a2

Recursor 4.0.0 Alpha 2 secpoll

8 years agoRecursor 4.0.0 Alpha 2 secpoll
Pieter Lexis [Fri, 11 Mar 2016 09:24:11 +0000 (10:24 +0100)]
Recursor 4.0.0 Alpha 2 secpoll

8 years agoSpecs: use https url for powerdns.com
Ruben Kerkhof [Thu, 10 Mar 2016 19:47:45 +0000 (20:47 +0100)]
Specs: use https url for powerdns.com

8 years agoRemove unused pdns-recursor.spec
Ruben Kerkhof [Thu, 10 Mar 2016 19:38:41 +0000 (20:38 +0100)]
Remove unused pdns-recursor.spec

8 years agorec: Handle multiple EDNS0 Options in gettag
Remi Gacogne [Thu, 10 Mar 2016 14:25:20 +0000 (15:25 +0100)]
rec: Handle multiple EDNS0 Options in gettag

Refactor the handling of EDNS0 Options parsing to use the same code
in dnsdist and the recursor (packet cache and gettag).
Closes #3516.

8 years agodnsdist: Don't crash when calling cache functions with nil on the console
Remi Gacogne [Thu, 10 Mar 2016 14:08:58 +0000 (15:08 +0100)]
dnsdist: Don't crash when calling cache functions with nil on the console

Fix some minor issues in the README.

8 years agoMerge pull request #3509 from rgacogne/dnsdist-tcp-cache
bert hubert [Wed, 9 Mar 2016 19:06:44 +0000 (20:06 +0100)]
Merge pull request #3509 from rgacogne/dnsdist-tcp-cache

dnsdist: Check response validity over TCP, more cache fixes

8 years agoMerge pull request #3524 from zeha/cleanup
bert hubert [Wed, 9 Mar 2016 19:05:36 +0000 (20:05 +0100)]
Merge pull request #3524 from zeha/cleanup

Remove unused function simpleExpandTo - contuing the quest to have only one dns name parser in all of powerdns!

8 years agoMerge pull request #3529 from pieterlexis/dnssec-off
Pieter Lexis [Wed, 9 Mar 2016 15:21:07 +0000 (16:21 +0100)]
Merge pull request #3529 from pieterlexis/dnssec-off

Recursor: dnssec=off by default for now plus changelog update

8 years agoRecursor: disable dnssec in the default config
Pieter Lexis [Tue, 8 Mar 2016 20:06:27 +0000 (21:06 +0100)]
Recursor: disable dnssec in the default config

This will be set to process after the dnssec implementation is more
bug-free.

8 years agoUpdate recursor changelog
Pieter Lexis [Tue, 8 Mar 2016 20:21:31 +0000 (21:21 +0100)]
Update recursor changelog

8 years agoProperly print version in autoconf for releases rec-4.0.0-alpha2
Pieter Lexis [Wed, 9 Mar 2016 13:53:41 +0000 (14:53 +0100)]
Properly print version in autoconf for releases

8 years agoMerge pull request #3520 from janeczku/rec-stats-loglevel
Pieter Lexis [Wed, 9 Mar 2016 10:54:55 +0000 (11:54 +0100)]
Merge pull request #3520 from janeczku/rec-stats-loglevel

pdns-rec: reduce log level of periodic statistics to notice

8 years agoMerge pull request #3527 from ahupowerdns/atomic
Pieter Lexis [Wed, 9 Mar 2016 10:54:34 +0000 (11:54 +0100)]
Merge pull request #3527 from ahupowerdns/atomic

make the recursor counters atomic, closes #1747

8 years agoMerge pull request #3519 from ahupowerdns/ednssubnetblind
bert hubert [Wed, 9 Mar 2016 08:50:41 +0000 (09:50 +0100)]
Merge pull request #3519 from ahupowerdns/ednssubnetblind

make sure our recursor cache is blind for edns subnet - THIS CODE NEE…

8 years agodnsdist: Add API regression tests
Remi Gacogne [Wed, 9 Mar 2016 07:49:00 +0000 (08:49 +0100)]
dnsdist: Add API regression tests

So we'll notice if we break the web server or the API.
This commit also cleans up the responses counter usage.
Because the counters are written to by the responder threads,
they are updated at the class level. We do not want to alter
them at the instance level, because that would create a new variable
at this level, disconnected from the other one, but we can still
read them from the instance level using 'self'.

8 years agoRemove unused function simpleExpandTo
Christian Hofstaedtler [Tue, 8 Mar 2016 10:53:00 +0000 (07:53 -0300)]
Remove unused function simpleExpandTo

8 years agoMerge pull request #20 from rgacogne/ednssubnetblind
bert hubert [Mon, 7 Mar 2016 22:48:32 +0000 (23:48 +0100)]
Merge pull request #20 from rgacogne/ednssubnetblind

rec: Handle more than EDNS option in our packet cache hashing

8 years agomake the recursor counters atomic, closes #1747
bert hubert [Mon, 7 Mar 2016 20:09:02 +0000 (21:09 +0100)]
make the recursor counters atomic, closes #1747

8 years agofix up compilation for non-lua recursor
bert hubert [Mon, 7 Mar 2016 13:53:37 +0000 (14:53 +0100)]
fix up compilation for non-lua recursor

8 years agorec: Handle more than EDNS option in our packet cache hashing
Remi Gacogne [Mon, 7 Mar 2016 10:41:26 +0000 (11:41 +0100)]
rec: Handle more than EDNS option in our packet cache hashing

We now skip an ECS option regardless of whether there are others
EDNS options before or after the ECS one, keeping the others
untouched.

8 years agoReduce log level of periodic statistics to Notice
Jan Broer [Mon, 7 Mar 2016 10:02:13 +0000 (11:02 +0100)]
Reduce log level of periodic statistics to Notice

8 years agoastoundingly enough, our function based statistics counters were... 32 bits?!
bert hubert [Sun, 6 Mar 2016 20:02:44 +0000 (21:02 +0100)]
astoundingly enough, our function based statistics counters were... 32 bits?!

8 years agoimprove error message on errors emanating from gettag
bert hubert [Sun, 6 Mar 2016 20:02:28 +0000 (21:02 +0100)]
improve error message on errors emanating from gettag

8 years agoimprove sdig error reporting (was an ABORT), closes #3517
bert hubert [Sun, 6 Mar 2016 18:33:42 +0000 (19:33 +0100)]
improve sdig error reporting (was an ABORT), closes #3517

8 years agomake sure our recursor cache is blind for edns subnet - THIS CODE NEEDS TO BE IMPROVE...
bert hubert [Sun, 6 Mar 2016 09:59:23 +0000 (10:59 +0100)]
make sure our recursor cache is blind for edns subnet - THIS CODE NEEDS TO BE IMPROVED @rgacogne

8 years agoclarify a deficiency in our packet hashing in the presence of EDNS subnet options
bert hubert [Sun, 6 Mar 2016 09:58:37 +0000 (10:58 +0100)]
clarify a deficiency in our packet hashing in the presence of EDNS subnet options

8 years agoonly deal with (1) EDNS record
bert hubert [Sun, 6 Mar 2016 09:57:52 +0000 (10:57 +0100)]
only deal with (1) EDNS record

8 years agoMerge pull request #3514 from ahupowerdns/propotag
bert hubert [Sat, 5 Mar 2016 19:55:48 +0000 (20:55 +0100)]
Merge pull request #3514 from ahupowerdns/propotag

propagate calculated packet cache tag to preresolve (the other hooks …

8 years agopropogate calculated packet cache tag to preresolve (the other hooks could get it...
bert hubert [Sat, 5 Mar 2016 18:49:07 +0000 (19:49 +0100)]
propogate calculated packet cache tag to preresolve (the other hooks could get it with a typing exercise)

8 years agoMerge pull request #3513 from ahupowerdns/ednssubnetgettag
bert hubert [Sat, 5 Mar 2016 12:17:03 +0000 (13:17 +0100)]
Merge pull request #3513 from ahupowerdns/ednssubnetgettag

give gettag the ednssubnetmask too. Fix up logger to actualy log our …

8 years agoMerge pull request #3512 from ahupowerdns/unlabel
bert hubert [Sat, 5 Mar 2016 12:16:53 +0000 (13:16 +0100)]
Merge pull request #3512 from ahupowerdns/unlabel

wow yet another misnamed function attempting to encode DNS strings!

8 years agogive gettag the ednssubnetmask too. Fix up logger to actualy log our enum.
bert hubert [Sat, 5 Mar 2016 11:34:46 +0000 (12:34 +0100)]
give gettag the ednssubnetmask too. Fix up logger to actualy log our enum.

8 years agowow yet another misnamed function attempting to encode DNS strings!
bert hubert [Sat, 5 Mar 2016 10:42:48 +0000 (11:42 +0100)]
wow yet another misnamed function attempting to encode DNS strings!

8 years agoMerge pull request #3502 from tfarina/fix-3487
bert hubert [Fri, 4 Mar 2016 21:19:23 +0000 (22:19 +0100)]
Merge pull request #3502 from tfarina/fix-3487

make second argument to pdnslog optional

8 years agoMerge pull request #3510 from rgacogne/dnsdist-api-frontends
bert hubert [Fri, 4 Mar 2016 21:18:39 +0000 (22:18 +0100)]
Merge pull request #3510 from rgacogne/dnsdist-api-frontends

dnsdist: Add frontends to API

8 years agomake second argument to pdnslog optional
Thiago Farina [Thu, 3 Mar 2016 13:32:59 +0000 (10:32 -0300)]
make second argument to pdnslog optional

This patch makes the |loglevel| parameter for pdnslog in Lua, optional.
If not specified the default log level will be Warning.

Fixes #3487

8 years agodnsdist: Add frontends to API
Remi Gacogne [Fri, 4 Mar 2016 17:40:00 +0000 (18:40 +0100)]
dnsdist: Add frontends to API

8 years agodnsdist: Check response validity over TCP, more cache fixes
Remi Gacogne [Fri, 4 Mar 2016 17:12:32 +0000 (18:12 +0100)]
dnsdist: Check response validity over TCP, more cache fixes

- Add `unsetCache()` to remove the cache from a pool
- Check the response size before caching it, and make no
assumption when getting it from the cache
- Check that the response is larger than sizeof(dnsheader) over
TCP too
- Check that the response matches the query over TCP too, because
we reuse downstream connections

8 years agowhen pre-parsing qname for gettag in lua, catch exception and set tag to 0
bert hubert [Fri, 4 Mar 2016 15:57:10 +0000 (16:57 +0100)]
when pre-parsing qname for gettag in lua, catch exception and set tag to 0

8 years agoMerge pull request #3508 from rgacogne/dnsdist-api-config-stats
bert hubert [Fri, 4 Mar 2016 15:36:17 +0000 (16:36 +0100)]
Merge pull request #3508 from rgacogne/dnsdist-api-config-stats

dnsdist: Add statistics and config to API to make pdnscontrol happy

8 years agoMerge pull request #3505 from PowerDNS/terrorobe-patch-1
bert hubert [Fri, 4 Mar 2016 15:05:57 +0000 (16:05 +0100)]
Merge pull request #3505 from PowerDNS/terrorobe-patch-1

minor nits in dnsdist webserver() documentation

8 years agodnsdist: Add statistics and config to API to make pdnscontrol happy
Remi Gacogne [Fri, 4 Mar 2016 14:32:17 +0000 (15:32 +0100)]
dnsdist: Add statistics and config to API to make pdnscontrol happy

This is a very rough implementation to unify dnsdist with auth and
rec as far as pdnscontrol is concerned, by adding:
- /api/v1/servers/localhost/config
- /api/v1/servers/localhost/statistics

We'll need to refactor this at some point, maybe by merging with
ws-api.

8 years agominor nits in dnsdist webserver() documentation
Michael Renner [Fri, 4 Mar 2016 10:00:59 +0000 (11:00 +0100)]
minor nits in dnsdist webserver() documentation

8 years agoMerge pull request #3504 from rgacogne/dnsdist-api-key
bert hubert [Fri, 4 Mar 2016 07:43:34 +0000 (08:43 +0100)]
Merge pull request #3504 from rgacogne/dnsdist-api-key

dnsdist: Allow accessing the API with an optional API key

8 years agoMerge pull request #3500 from rgacogne/dnsdist-intro
bert hubert [Fri, 4 Mar 2016 07:43:10 +0000 (08:43 +0100)]
Merge pull request #3500 from rgacogne/dnsdist-intro

dnsdist: Fix addServer() -> newServer() in introduction.md

8 years agoMerge pull request #3501 from rgacogne/dnsdist-enhance-cache
bert hubert [Fri, 4 Mar 2016 07:42:59 +0000 (08:42 +0100)]
Merge pull request #3501 from rgacogne/dnsdist-enhance-cache

dnsdist: packet cache enhancements

8 years agodnsdist: Allow accessing the API with an optional API key
Remi Gacogne [Thu, 3 Mar 2016 17:35:01 +0000 (18:35 +0100)]
dnsdist: Allow accessing the API with an optional API key

The API key can be specified as an additional, optional parameter
to `webserver()`. If present in a X-API-Key header, it allows
access to the API URLs:
- /api/v1/servers/localhost
- /jsonstat

Others URLs are still only allowed through basic authentication.

8 years agodnsdist: Fix addServer() -> newServer() in introduction.md
Remi Gacogne [Thu, 3 Mar 2016 13:01:25 +0000 (14:01 +0100)]
dnsdist: Fix addServer() -> newServer() in introduction.md

8 years agoMerge pull request #3498 from rgacogne/dnsdist-labellen
bert hubert [Thu, 3 Mar 2016 12:23:59 +0000 (13:23 +0100)]
Merge pull request #3498 from rgacogne/dnsdist-labellen

Fix parsing of invalid DNS names

8 years agoMerge pull request #3499 from rgacogne/dnsdist-multi-carbon
bert hubert [Thu, 3 Mar 2016 12:21:37 +0000 (13:21 +0100)]
Merge pull request #3499 from rgacogne/dnsdist-multi-carbon

dnsdist: Add support for multiple carbon servers

8 years agodnsdist: Allow the use of stale cache entries if no backend are available
Remi Gacogne [Thu, 3 Mar 2016 09:54:27 +0000 (10:54 +0100)]
dnsdist: Allow the use of stale cache entries if no backend are available

And add more documentation and regression tests.

8 years agoMerge pull request #3496 from ahupowerdns/do-3490
bert hubert [Wed, 2 Mar 2016 19:03:14 +0000 (20:03 +0100)]
Merge pull request #3496 from ahupowerdns/do-3490

fix up #3478 - rhel6 compat

8 years agoMerge pull request #3497 from ahupowerdns/more-cleanups
bert hubert [Wed, 2 Mar 2016 17:35:43 +0000 (18:35 +0100)]
Merge pull request #3497 from ahupowerdns/more-cleanups

More cleanups - silence some common warnings, make servfail cache ttl explicit, deal better with 'responses with no question'

8 years agodnsdist: Add support for multiple carbon servers
Remi Gacogne [Wed, 2 Mar 2016 16:55:45 +0000 (17:55 +0100)]
dnsdist: Add support for multiple carbon servers

8 years agoFix end computation in DNSName::packetParser
Remi Gacogne [Wed, 2 Mar 2016 15:57:02 +0000 (16:57 +0100)]
Fix end computation in DNSName::packetParser

end was computed by

end = qpos + offset + len

but the offset is already included in len, as seen in the way
label compression is handled, by calling packetParser with the
same original position and len but an updated offset.

8 years agodnsdist: Fix a crash when adding an invalid packet to the cache
Remi Gacogne [Wed, 2 Mar 2016 15:50:02 +0000 (16:50 +0100)]
dnsdist: Fix a crash when adding an invalid packet to the cache

Reported by @rygl.

8 years agoMerge pull request #3440 from pieterlexis/dnsdist-client-improvements
bert hubert [Wed, 2 Mar 2016 14:47:57 +0000 (15:47 +0100)]
Merge pull request #3440 from pieterlexis/dnsdist-client-improvements

Client operation improvements for dnsdist

8 years agofix up #3478 - rhel6 compat
bert hubert [Wed, 2 Mar 2016 14:09:17 +0000 (15:09 +0100)]
fix up #3478 - rhel6 compat

8 years agoreinstate old behaviour that we do process authoritative responses that are header...
bert hubert [Wed, 2 Mar 2016 14:02:12 +0000 (15:02 +0100)]
reinstate old behaviour that we do process authoritative responses that are header only to hasten the timeout

8 years agosilence some common errors with log-common-errors=off
bert hubert [Wed, 2 Mar 2016 14:00:15 +0000 (15:00 +0100)]
silence some common errors with log-common-errors=off

8 years agomake it explicit that servfail packets get stored for servfail-packetcache-ttl seconds
bert hubert [Wed, 2 Mar 2016 13:59:24 +0000 (14:59 +0100)]
make it explicit that servfail packets get stored for servfail-packetcache-ttl seconds

8 years agoplease don't just replace atoi with pdns_stou - it does something different
bert hubert [Wed, 2 Mar 2016 13:58:09 +0000 (14:58 +0100)]
please don't just replace atoi with pdns_stou - it does something different

8 years agoMerge pull request #3494 from ahupowerdns/various-fixes
bert hubert [Wed, 2 Mar 2016 13:49:06 +0000 (14:49 +0100)]
Merge pull request #3494 from ahupowerdns/various-fixes

Various fixes: ignore unrequested EDNS Subnet, count DNSSEC queries, add recursor packet cache dumping & make it sequential in order

8 years agohook up recursor packet cache dumping to rec_control dump-cache
bert hubert [Wed, 2 Mar 2016 12:03:53 +0000 (13:03 +0100)]
hook up recursor packet cache dumping to rec_control dump-cache

8 years agoadd a 'wants DNSSEC' metric to recursor
bert hubert [Wed, 2 Mar 2016 12:02:58 +0000 (13:02 +0100)]
add a 'wants DNSSEC' metric to recursor

8 years agoteach recursor packet cache to dump itself too for dump-cache
bert hubert [Wed, 2 Mar 2016 12:01:30 +0000 (13:01 +0100)]
teach recursor packet cache to dump itself too for dump-cache