]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
10 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

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

10 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

10 years agopdns: Fix build on OSX 3557/head
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.

10 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

10 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

10 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

10 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

10 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

10 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

10 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

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

10 years agodnsdist: Add an option to limit the number of queued TCP connections 3556/head
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.

10 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

10 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 )

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

10 years agoDnsdist: include <sys/endian.h> on FreeBSD 3551/head
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++

10 years agoDnsdist: Fix build failure on FreeBSD 3550/head
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"

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

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

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

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

10 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

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

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

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

10 years agorec: Handle multiple EDNS0 Options in gettag 3537/head
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.

10 years agodnsdist: Don't crash when calling cache functions with nil on the console 3539/head
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.

10 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

10 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!

10 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

10 years agoRecursor: disable dnssec in the default config 3529/head
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.

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

10 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

10 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

10 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

10 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…

10 years agodnsdist: Add API regression tests 3538/head
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'.

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

10 years agoMerge pull request #20 from rgacogne/ednssubnetblind 3519/head
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

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

10 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

10 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.

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

10 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?!

10 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

10 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

10 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

10 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

10 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

10 years agoHandle unset 'wild' in RRL policy script
HĆ„kan Lindqvist [Sat, 5 Mar 2016 20:40:45 +0000 (21:40 +0100)] 
Handle unset 'wild' in RRL policy script

10 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 ā€¦

10 years agopropogate calculated packet cache tag to preresolve (the other hooks could get it... 3514/head
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)

10 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 ā€¦

10 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!

10 years agogive gettag the ednssubnetmask too. Fix up logger to actualy log our enum. 3513/head
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.

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

10 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

10 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

10 years agomake second argument to pdnslog optional 3502/head
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

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

10 years agodnsdist: Check response validity over TCP, more cache fixes 3509/head
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

10 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

10 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

10 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

10 years agodnsdist: Add statistics and config to API to make pdnscontrol happy 3508/head
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.

10 years agoAPI: Mask out api-key in settings list 3507/head
Christian Hofstaedtler [Fri, 4 Mar 2016 10:36:30 +0000 (07:36 -0300)] 
API: Mask out api-key in settings list

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

10 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

10 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

10 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

10 years agodnsdist: Allow accessing the API with an optional API key 3504/head
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.

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

10 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

10 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

10 years agodnsdist: Allow the use of stale cache entries if no backend are available 3501/head
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.

10 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

10 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'

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

10 years agoFix end computation in DNSName::packetParser 3498/head
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.

10 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.

10 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

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

10 years agoreinstate old behaviour that we do process authoritative responses that are header... 3497/head
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

10 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

10 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

10 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

10 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

10 years agoAdd /api discovery endpoint 3495/head
Christian Hofstaedtler [Wed, 2 Mar 2016 12:44:26 +0000 (09:44 -0300)] 
Add /api discovery endpoint

Closes #3253.

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

10 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

10 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

10 years agoif you send us EDNS subnet information we did not ask for, ignore it. Increases cache...
bert hubert [Wed, 2 Mar 2016 12:00:19 +0000 (13:00 +0100)] 
if you send us EDNS subnet information we did not ask for, ignore it. Increases cache hitrate for a popular CDN.

10 years agodump recursor cache in sequential ordering, which allows us to debug our deletion...
bert hubert [Wed, 2 Mar 2016 11:59:37 +0000 (12:59 +0100)] 
dump recursor cache in sequential ordering, which allows us to debug our deletion queue

10 years agoMerge pull request #3493 from celevra/patch-1
bert hubert [Wed, 2 Mar 2016 10:26:48 +0000 (11:26 +0100)] 
Merge pull request #3493 from celevra/patch-1

Update README.md

10 years agoMerge pull request #3491 from rgacogne/dnsdist-cache-response-crash
bert hubert [Wed, 2 Mar 2016 10:24:38 +0000 (11:24 +0100)] 
Merge pull request #3491 from rgacogne/dnsdist-cache-response-crash

dnsdist: Don't parse DNS names when caching responses

10 years agoUpdate README.md 3493/head
celevra [Wed, 2 Mar 2016 09:26:01 +0000 (10:26 +0100)] 
Update README.md

10 years agowe prevent an authoritative server to keep its nameservers alive even though they...
bert hubert [Tue, 1 Mar 2016 22:47:22 +0000 (23:47 +0100)] 
we prevent an authoritative server to keep its nameservers alive even though they had changed the parent, but this code had a bug which set the TTL of nameserver entries to negative numbers, leading to overly frequent requerying. Closes #3489.

10 years agodnsdist: Don't parse DNS names when caching responses 3491/head
Remi Gacogne [Tue, 1 Mar 2016 15:47:04 +0000 (16:47 +0100)] 
dnsdist: Don't parse DNS names when caching responses

Fix a crash reported by @rygl:

terminate called after throwing an instance of 'std::out_of_range'
what():  dnsname issue: Found a forward reference during label decompression

10 years agodnsdist: Add a specific TTL for ServFail responses
Remi Gacogne [Mon, 29 Feb 2016 15:22:04 +0000 (16:22 +0100)] 
dnsdist: Add a specific TTL for ServFail responses

Before this commit we used the maxTTL for Server Failure responses
as well, and it might not be a good idea.

Fixes #3469.