]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
5 years agoAllocate DNSRecord objects as smart pointers right away
Remi Gacogne [Wed, 23 May 2018 08:35:17 +0000 (10:35 +0200)] 
Allocate DNSRecord objects as smart pointers right away

(cherry picked from commit 1339125af5afe6d6ecfe0a500c5fdc76d790459d)

5 years agoMerge pull request #7129 from Habbie/dnsdist-el6
Pieter Lexis [Fri, 2 Nov 2018 15:09:11 +0000 (16:09 +0100)] 
Merge pull request #7129 from Habbie/dnsdist-el6

dnsdist: fix rhel6 stop-on-upgrade issue

5 years agoMerge pull request #7130 from Habbie/recursor-el6-no-protobuf
Pieter Lexis [Fri, 2 Nov 2018 15:08:25 +0000 (16:08 +0100)] 
Merge pull request #7130 from Habbie/recursor-el6-no-protobuf

fix el6 recursor build by disabling protobuf support

5 years agoMerge pull request #7133 from spirillen/patch-2
Peter van Dijk [Thu, 1 Nov 2018 20:10:03 +0000 (21:10 +0100)] 
Merge pull request #7133 from spirillen/patch-2

added the s to http to avoid redirect line 10

5 years agoadded the s to http to avoid redirect line 10 7133/head
spirillen [Thu, 1 Nov 2018 20:07:14 +0000 (21:07 +0100)] 
added the s to http to avoid redirect line 10

see subject

5 years agoMerge pull request #7132 from spirillen/patch-1
Peter van Dijk [Thu, 1 Nov 2018 19:53:58 +0000 (20:53 +0100)] 
Merge pull request #7132 from spirillen/patch-1

Line #84 old link to doc

5 years agoLine #84 old link to doc 7132/head
spirillen [Thu, 1 Nov 2018 19:45:35 +0000 (20:45 +0100)] 
Line #84 old link to doc

as submitted in the issue #7131 the link for current documentation is outdated, this commit will update this issue

5 years agoMerge pull request #7106 from dwfreed/fix-travis-python
Peter van Dijk [Thu, 1 Nov 2018 19:21:23 +0000 (20:21 +0100)] 
Merge pull request #7106 from dwfreed/fix-travis-python

Make travis use a modern python

5 years agofix el6 recursor build by disabling protobuf support 7130/head
Peter van Dijk [Thu, 1 Nov 2018 16:37:52 +0000 (17:37 +0100)] 
fix el6 recursor build by disabling protobuf support

5 years agodocument el6 dnsdist restart bug 7129/head
Peter van Dijk [Thu, 1 Nov 2018 14:07:33 +0000 (15:07 +0100)] 
document el6 dnsdist restart bug

5 years agoremove (broken) centos6 dnsdist init script
Peter van Dijk [Thu, 1 Nov 2018 14:05:03 +0000 (15:05 +0100)] 
remove (broken) centos6 dnsdist init script

5 years agoel6 dnsdist: on upgrade, restart instead of stop
Peter van Dijk [Thu, 1 Nov 2018 14:04:45 +0000 (15:04 +0100)] 
el6 dnsdist: on upgrade, restart instead of stop

5 years agoMerge pull request #7127 from pieterlexis/pkg-fixes
Pieter Lexis [Thu, 1 Nov 2018 13:36:21 +0000 (14:36 +0100)] 
Merge pull request #7127 from pieterlexis/pkg-fixes

Several packaging fixes

5 years agoMerge pull request #7115 from rgacogne/dnsdist-secpoll
Remi Gacogne [Wed, 31 Oct 2018 13:58:16 +0000 (14:58 +0100)] 
Merge pull request #7115 from rgacogne/dnsdist-secpoll

dnsdist: Add security polling

5 years agoMerge pull request #7078 from rgacogne/dnsdist-creation-order
Remi Gacogne [Wed, 31 Oct 2018 10:54:45 +0000 (11:54 +0100)] 
Merge pull request #7078 from rgacogne/dnsdist-creation-order

dnsdist: Add a 'creationOrder' field to rules

5 years agodnsdist: Remove useless call to gettimeofday() in the security poll 7115/head
Remi Gacogne [Wed, 31 Oct 2018 09:50:09 +0000 (10:50 +0100)] 
dnsdist: Remove useless call to gettimeofday() in the security poll

5 years agoMerge pull request #7117 from chbruyand/dnsdist-webserver-creds
Remi Gacogne [Wed, 31 Oct 2018 09:39:45 +0000 (10:39 +0100)] 
Merge pull request #7117 from chbruyand/dnsdist-webserver-creds

dnsdist: add ability to update webserver credentials

5 years agodnsdist: Correctly handle PACKAGEVERSION, check name in secpoll reply
Remi Gacogne [Wed, 31 Oct 2018 09:21:54 +0000 (10:21 +0100)] 
dnsdist: Correctly handle PACKAGEVERSION, check name in secpoll reply

5 years agoUpdate dnsdist-lua.cc 7117/head
Charles-Henri Bruyand [Wed, 31 Oct 2018 08:36:38 +0000 (09:36 +0100)] 
Update dnsdist-lua.cc

5 years agodnsdist: refactor webserver config in a single table
Charles-Henri Bruyand [Tue, 30 Oct 2018 16:33:39 +0000 (17:33 +0100)] 
dnsdist: refactor webserver config in a single table

5 years agoUpdate test_API.py
Charles-Henri Bruyand [Tue, 30 Oct 2018 13:33:54 +0000 (14:33 +0100)] 
Update test_API.py

5 years agodnsdist: add ability to update webserver credentials
Charles-Henri Bruyand [Tue, 30 Oct 2018 13:29:51 +0000 (14:29 +0100)] 
dnsdist: add ability to update webserver credentials

5 years agodnsdist: Add security polling
Remi Gacogne [Tue, 30 Oct 2018 10:11:49 +0000 (11:11 +0100)] 
dnsdist: Add security polling

5 years agoMerge pull request #7094 from neilcook/udr
Remi Gacogne [Tue, 30 Oct 2018 09:14:46 +0000 (10:14 +0100)] 
Merge pull request #7094 from neilcook/udr

Unique DNS Responses

5 years agopkgs: prevent dpkg warnings 7127/head
Pieter Lexis [Mon, 29 Oct 2018 15:51:22 +0000 (16:51 +0100)] 
pkgs: prevent dpkg warnings

This removes several files that _might_ be on-disk from an older
package to prevent dpkg to stumble over them.

Closes #7066

5 years agoRemove all Jenkins related stuff
Pieter Lexis [Mon, 29 Oct 2018 13:38:11 +0000 (14:38 +0100)] 
Remove all Jenkins related stuff

5 years agoRemove all old building files
Pieter Lexis [Mon, 29 Oct 2018 13:36:37 +0000 (14:36 +0100)] 
Remove all old building files

5 years agobuilder: update
Pieter Lexis [Mon, 29 Oct 2018 10:48:40 +0000 (11:48 +0100)] 
builder: update

5 years agobuilder: Re-enable secpoll in packages
Pieter Lexis [Thu, 25 Oct 2018 11:49:45 +0000 (13:49 +0200)] 
builder: Re-enable secpoll in packages

Closes #7105

5 years agoMerge pull request #7109 from chbruyand/dnsdist-console-output-limit
Remi Gacogne [Mon, 29 Oct 2018 09:07:19 +0000 (10:07 +0100)] 
Merge pull request #7109 from chbruyand/dnsdist-console-output-limit

dnsdist: add setConsoleOutputMaxMsgSize function

5 years agoMerge pull request #7108 from rgacogne/dnsdist-tcp-smart
Remi Gacogne [Sat, 27 Oct 2018 17:17:54 +0000 (19:17 +0200)] 
Merge pull request #7108 from rgacogne/dnsdist-tcp-smart

dnsdist: Wrap TCP connection objects in smart pointers

5 years agoMerge pull request #7110 from chbruyand/dnsdist-docs-allow-from
Remi Gacogne [Sat, 27 Oct 2018 17:16:11 +0000 (19:16 +0200)] 
Merge pull request #7110 from chbruyand/dnsdist-docs-allow-from

dnsdist docs: update documentation on updating ACLs via the API

5 years agodnsdist docs: update documentation on updating ACLs via the API 7110/head
Charles-Henri Bruyand [Fri, 26 Oct 2018 16:19:05 +0000 (18:19 +0200)] 
dnsdist docs: update documentation on updating ACLs via the API

5 years agodnsdist: add setConsoleOutputMaxMsgSize function to tune console output message maxim... 7109/head
Charles-Henri Bruyand [Fri, 26 Oct 2018 15:21:28 +0000 (17:21 +0200)] 
dnsdist: add setConsoleOutputMaxMsgSize function to tune console output message maximum size

5 years agoMerge pull request #7024 from cmouse/geoip-config
Pieter Lexis [Fri, 26 Oct 2018 11:31:23 +0000 (13:31 +0200)] 
Merge pull request #7024 from cmouse/geoip-config

geoipbackend: Handle read error for config file

5 years agoMerge pull request #7033 from pieterlexis/ubuntu-cosmic-pkgs
Pieter Lexis [Fri, 26 Oct 2018 11:30:33 +0000 (13:30 +0200)] 
Merge pull request #7033 from pieterlexis/ubuntu-cosmic-pkgs

Add Ubuntu Cosmic Cuttlefish build target

5 years agoMerge pull request #7043 from Habbie/el7-arm64
Pieter Lexis [Fri, 26 Oct 2018 11:30:20 +0000 (13:30 +0200)] 
Merge pull request #7043 from Habbie/el7-arm64

fixes for el7 on arm64

5 years agoMerge pull request #7059 from pieterlexis/rec-read-dns-root-data
Pieter Lexis [Fri, 26 Oct 2018 11:30:01 +0000 (13:30 +0200)] 
Merge pull request #7059 from pieterlexis/rec-read-dns-root-data

Recursor: Allow reading root DNSSEC keys from file

5 years agoMerge pull request #7074 from rgacogne/auth-py-regression-tests-log
Pieter Lexis [Fri, 26 Oct 2018 11:29:29 +0000 (13:29 +0200)] 
Merge pull request #7074 from rgacogne/auth-py-regression-tests-log

auth: Print the content of pdns.log when the regression tests fail

5 years agoMerge pull request #7075 from rgacogne/dnsdist-dynblock-nxd
Pieter Lexis [Fri, 26 Oct 2018 11:29:15 +0000 (13:29 +0200)] 
Merge pull request #7075 from rgacogne/dnsdist-dynblock-nxd

dnsdist: Support the NXDomain action with dynamic blocks

5 years agoDocument NOD and UDR policy tag configuration 7094/head
Neil Cook [Fri, 26 Oct 2018 10:28:57 +0000 (10:28 +0000)] 
Document NOD and UDR policy tag configuration

5 years agoSupport for protobuf policy tags for NOD and UDR
Neil Cook [Fri, 26 Oct 2018 10:27:12 +0000 (10:27 +0000)] 
Support for protobuf policy tags for NOD and UDR

- Add configurable policy tags if NOD or UDR are detected
- Remove the tags before committing to the packet cache

5 years agoNew methods to add and remove individual policy tags
Neil Cook [Fri, 26 Oct 2018 10:26:51 +0000 (10:26 +0000)] 
New methods to add and remove individual policy tags

5 years agodnsdist: Wrap TCP connection objects in smart pointers 7108/head
Remi Gacogne [Fri, 26 Oct 2018 08:06:13 +0000 (10:06 +0200)] 
dnsdist: Wrap TCP connection objects in smart pointers

5 years agoMerge pull request #7086 from jsoref/rm-pandoc
Pieter Lexis [Fri, 26 Oct 2018 07:58:05 +0000 (09:58 +0200)] 
Merge pull request #7086 from jsoref/rm-pandoc

Removing pandoc remnants

5 years agoMerge pull request #7104 from chbruyand/arm-32bits-warn
Remi Gacogne [Fri, 26 Oct 2018 05:47:13 +0000 (07:47 +0200)] 
Merge pull request #7104 from chbruyand/arm-32bits-warn

Fix format string issue on 32bits arm

5 years agoMerge pull request #7103 from rgacogne/rec-smart-dnscombowriter
Remi Gacogne [Fri, 26 Oct 2018 05:46:44 +0000 (07:46 +0200)] 
Merge pull request #7103 from rgacogne/rec-smart-dnscombowriter

rec: Wrap our DNSComboWriter objects in smart pointers

5 years agoMake travis use a modern python 7106/head
Doug Freed [Thu, 25 Oct 2018 19:28:52 +0000 (15:28 -0400)] 
Make travis use a modern python

5 years agofix string format issue on 32bits arm 7104/head
Charles-Henri Bruyand [Thu, 25 Oct 2018 08:42:43 +0000 (10:42 +0200)] 
fix string format issue on 32bits arm

5 years agoUpdate settings documentation:
Neil Cook [Wed, 24 Oct 2018 12:37:02 +0000 (12:37 +0000)] 
Update settings documentation:

- New Unique DNS Response documentation
- Update and improve NOD documentation

5 years agoFix code-review issues:
Neil Cook [Wed, 24 Oct 2018 12:35:57 +0000 (12:35 +0000)] 
Fix code-review issues:

- Indentation (tabs vs spaces, grr)
- Don't make NOD detection dependent on protobuf being enabled

5 years agoAccount for the fact that udr and nod flags are optional in protobuf
Neil Cook [Wed, 24 Oct 2018 12:35:39 +0000 (12:35 +0000)] 
Account for the fact that udr and nod flags are optional in protobuf

5 years agoRemove the NOD and UDR info from Protobuf *before* adding to packet cache
Neil Cook [Mon, 22 Oct 2018 11:05:50 +0000 (11:05 +0000)] 
Remove the NOD and UDR info from Protobuf *before* adding to packet cache

5 years agoMake SBF size configurable
Neil Cook [Mon, 22 Oct 2018 10:37:29 +0000 (10:37 +0000)] 
Make SBF size configurable

5 years agoAdd thread ID to snapshotCurrent()
Neil Cook [Fri, 19 Oct 2018 11:25:37 +0000 (11:25 +0000)] 
Add thread ID to snapshotCurrent()

5 years agoAdd UDR Tracking and refactor NOD support
Neil Cook [Fri, 19 Oct 2018 11:23:02 +0000 (11:23 +0000)] 
Add UDR Tracking and refactor NOD support

- New Unique DNS Response tracking (tracks triplet of (qname, qtype, RR))
- Move NOD checks so that the results appear in protobuf
- Add NOD and UDR to protobuf messages
- Clear NOD and UDR flags for protobuf messsages from packet cache

5 years agoUpdate ProtobufLogger.py with info from new NOD and UDR flags
Neil Cook [Fri, 19 Oct 2018 11:22:26 +0000 (11:22 +0000)] 
Update ProtobufLogger.py with info from new NOD and UDR flags

5 years agoAdd NOD and UDR to Protobuf Logs
Neil Cook [Fri, 19 Oct 2018 11:18:47 +0000 (11:18 +0000)] 
Add NOD and UDR to Protobuf Logs

- Add newly observed domain flag to DNS Message protobuf definition
- Add unique dns response flag to RRs in DNS Message Response definition
- Utility methods to manipulate new flags in Protobuf messages

5 years agoRefactor NOD code
Neil Cook [Fri, 19 Oct 2018 11:16:52 +0000 (11:16 +0000)] 
Refactor NOD code

- Move core Persistent Stable Bloom Filter code into a separate class
- Create new class for handling Unique DNS Responses (UDR)
- Make threadID consistent by requiring it's passed to housekeeping method

5 years agomore nit 7043/head
Peter van Dijk [Wed, 24 Oct 2018 12:09:49 +0000 (14:09 +0200)] 
more nit

5 years agoMerge pull request #7098 from Habbie/builder-amazon2
Pieter Lexis [Wed, 24 Oct 2018 12:09:12 +0000 (14:09 +0200)] 
Merge pull request #7098 from Habbie/builder-amazon2

add support for building Amazon Linux 2 packages

5 years agoMerge pull request #7093 from pieterlexis/el6-post-inst-issue
Pieter Lexis [Wed, 24 Oct 2018 12:06:55 +0000 (14:06 +0200)] 
Merge pull request #7093 from pieterlexis/el6-post-inst-issue

Fix el6 post install issue with auth

5 years agoadd support for building Amazon Linux 2 packages 7098/head
Peter van Dijk [Wed, 24 Oct 2018 12:05:46 +0000 (14:05 +0200)] 
add support for building Amazon Linux 2 packages

5 years agonit
Peter van Dijk [Wed, 24 Oct 2018 11:48:39 +0000 (13:48 +0200)] 
nit

5 years agoundo merge damage
Peter van Dijk [Wed, 24 Oct 2018 11:45:38 +0000 (13:45 +0200)] 
undo merge damage

5 years agobuild dnsdist on el7/arm64
Peter van Dijk [Tue, 9 Oct 2018 07:39:01 +0000 (07:39 +0000)] 
build dnsdist on el7/arm64

5 years agobuild rec on el7/arm64; remove comment
Peter van Dijk [Mon, 8 Oct 2018 19:42:10 +0000 (19:42 +0000)] 
build rec on el7/arm64; remove comment

5 years agobuild auth on el7/arm64
Peter van Dijk [Mon, 8 Oct 2018 18:13:03 +0000 (18:13 +0000)] 
build auth on el7/arm64

5 years agoMerge pull request #7083 from Privex/patch-privex-docs1
Pieter Lexis [Wed, 24 Oct 2018 07:51:07 +0000 (09:51 +0200)] 
Merge pull request #7083 from Privex/patch-privex-docs1

Documentation for Reverse DNS functions, using Lua with generic SQL, plus README improvements

5 years agoMerge pull request #7092 from rgacogne/dnsdist-tribool-fix
Remi Gacogne [Tue, 23 Oct 2018 16:46:23 +0000 (18:46 +0200)] 
Merge pull request #7092 from rgacogne/dnsdist-tribool-fix

dnsdist: Fix return-type detection with boost 1.69's tribool

5 years agoMerge pull request #7095 from rgacogne/dnsdist-api-tests-acl-order
Remi Gacogne [Tue, 23 Oct 2018 15:17:00 +0000 (17:17 +0200)] 
Merge pull request #7095 from rgacogne/dnsdist-api-tests-acl-order

dnsdist: Nodes in NMG are now ordered, fix the API regression tests

5 years agoDocument incompatibility between loading TAs from disk and runtime managemen 7059/head
Pieter Lexis [Tue, 23 Oct 2018 15:13:44 +0000 (17:13 +0200)] 
Document incompatibility between loading TAs from disk and runtime managemen

5 years agoMerge pull request #7069 from rgacogne/openssl-signer-smart
Remi Gacogne [Tue, 23 Oct 2018 14:21:19 +0000 (16:21 +0200)] 
Merge pull request #7069 from rgacogne/openssl-signer-smart

Use unique pointers in the OpenSSL signer

5 years agodnsdist: Nodes in NMG are now ordered, fix the API regression tests 7095/head
Remi Gacogne [Tue, 23 Oct 2018 11:49:15 +0000 (13:49 +0200)] 
dnsdist: Nodes in NMG are now ordered, fix the API regression tests

5 years agorec: Wrap our DNSComboWriter objects in smart pointers 7103/head
Remi Gacogne [Tue, 23 Oct 2018 08:52:44 +0000 (10:52 +0200)] 
rec: Wrap our DNSComboWriter objects in smart pointers

5 years agoMerge pull request #7085 from pieterlexis/debian-pkg-fixes
Pieter Lexis [Tue, 23 Oct 2018 08:33:54 +0000 (10:33 +0200)] 
Merge pull request #7085 from pieterlexis/debian-pkg-fixes

Several Debian pkg fixes

5 years agoFix el6 post install issue with auth 7093/head
Pieter Lexis [Tue, 23 Oct 2018 08:19:19 +0000 (10:19 +0200)] 
Fix el6 post install issue with auth

5 years agodnsdist: Fix return-type detection with boost 1.69's tribool 7092/head
Remi Gacogne [Tue, 23 Oct 2018 07:57:12 +0000 (09:57 +0200)] 
dnsdist: Fix return-type detection with boost 1.69's tribool

5 years agoMerge pull request #7089 from pieterlexis/dnsdist-stats-add-help
Remi Gacogne [Tue, 23 Oct 2018 07:37:52 +0000 (09:37 +0200)] 
Merge pull request #7089 from pieterlexis/dnsdist-stats-add-help

dnsdist: Add HELP and TYPE for dnsdist_server_ stats

5 years agodnsdist: Add HELP and TYPE for dnsdist_server_ stats 7089/head
Pieter Lexis [Mon, 22 Oct 2018 14:54:54 +0000 (16:54 +0200)] 
dnsdist: Add HELP and TYPE for dnsdist_server_ stats

5 years agoRemoving pandoc remnants 7086/head
Josh Soref [Fri, 19 Oct 2018 20:19:57 +0000 (16:19 -0400)] 
Removing pandoc remnants

5 years agore-add licence files to dnsdist and rec tarball 7085/head
Pieter Lexis [Thu, 18 Oct 2018 15:04:15 +0000 (17:04 +0200)] 
re-add licence files to dnsdist and rec tarball

Fixes #7082

5 years agopkgs: remove ixfrdist.service from pdns-server package
Pieter Lexis [Thu, 18 Oct 2018 14:31:02 +0000 (16:31 +0200)] 
pkgs: remove ixfrdist.service from pdns-server package

5 years agoPackages needed for Ubuntu 18.04 + how to build sphinx docs 7083/head
Chris (Someguy123) [Fri, 19 Oct 2018 02:55:38 +0000 (03:55 +0100)] 
Packages needed for Ubuntu 18.04 + how to build sphinx docs

Other small clean ups, such as adding a link to the list of modules
and correcting the "compiling powerdns" link to point to the 4.1 docs

5 years agoAdded section on using Lua records with generic SQL
Chris (Someguy123) [Fri, 19 Oct 2018 01:37:36 +0000 (02:37 +0100)] 
Added section on using Lua records with generic SQL

5 years agoVarious small corrections for reverse DNS functions
Chris (Someguy123) [Fri, 19 Oct 2018 01:09:35 +0000 (02:09 +0100)] 
Various small corrections for reverse DNS functions

5 years agoCreate sections for reverse DNS functions
Someguy123 [Thu, 18 Oct 2018 23:15:52 +0000 (00:15 +0100)] 
Create sections for reverse DNS functions

Documentation + examples for:
 - createReverse
 - createForward
 - createReverse6
 - createForward6

Plus minor changes for  'closest' to 'pickclosest'

5 years agoSelector is 'pickclosest' not 'closest'
Someguy123 [Thu, 18 Oct 2018 19:52:05 +0000 (20:52 +0100)] 
Selector is 'pickclosest' not 'closest'

5 years agodnsdist: Add a 'creationOrder' field to rules 7078/head
Remi Gacogne [Wed, 17 Oct 2018 15:28:58 +0000 (17:28 +0200)] 
dnsdist: Add a 'creationOrder' field to rules

5 years agoMerge pull request #7072 from r-bk/fix_lua_recursor4_exception_handling
Remi Gacogne [Wed, 17 Oct 2018 13:31:07 +0000 (15:31 +0200)] 
Merge pull request #7072 from r-bk/fix_lua_recursor4_exception_handling

pdns-recursor: properly handle exceptions thrown from lua-recursor4

5 years agoMerge pull request #7068 from phonedph1/edns
Remi Gacogne [Wed, 17 Oct 2018 09:23:31 +0000 (11:23 +0200)] 
Merge pull request #7068 from phonedph1/edns

rec: dump edns harder

5 years agoMerge pull request #6986 from rgacogne/dnsdist-warning-dynblocks
Remi Gacogne [Wed, 17 Oct 2018 09:20:18 +0000 (11:20 +0200)] 
Merge pull request #6986 from rgacogne/dnsdist-warning-dynblocks

dnsdist: Add warning rates to dynBlockRulesGroup rules

5 years agodnsdist: Support the NXDomain action with dynamic blocks 7075/head
Remi Gacogne [Wed, 17 Oct 2018 09:14:47 +0000 (11:14 +0200)] 
dnsdist: Support the NXDomain action with dynamic blocks

5 years agorec: automatically reload trust anchors from file
Pieter Lexis [Mon, 15 Oct 2018 10:24:59 +0000 (12:24 +0200)] 
rec: automatically reload trust anchors from file

This allows external processec to update TA's without having to restart
the recursor.

5 years agopdns-recursor: properly handle exceptions thrown from lua-recursor4 7072/head
Rafael Buchbinder [Wed, 17 Oct 2018 06:48:28 +0000 (09:48 +0300)] 
pdns-recursor: properly handle exceptions thrown from lua-recursor4

directResolve function is used by lua-recursor4 in various callbacks. As
a result an exception thrown from this function is caught in generic
exception handlers at the end of startDoResolve (pdns_recursor).
Specifically, ImmediateServFailException is caught in the catch-all
exception handler, which obscures the origin of the error.

This commit adds handling of all exceptions inside directResolve and
converts them to error code (-1). This way, an exception in this
function is handled properly in startDoResolve and ServFail is sent
downstream.

To clarify, in case of exception the return DNSRecord vector is cleared
to make sure that old behavior is preserved, when in case of exception
the vector was not referenced in any way.

5 years agoauth: Print the content of pdns.log when the regression tests fail 7074/head
Remi Gacogne [Wed, 17 Oct 2018 08:19:48 +0000 (10:19 +0200)] 
auth: Print the content of pdns.log when the regression tests fail

5 years agoMerge pull request #7070 from r-bk/fix_memory_leak_in_catch_all_block
Remi Gacogne [Wed, 17 Oct 2018 08:04:29 +0000 (10:04 +0200)] 
Merge pull request #7070 from r-bk/fix_memory_leak_in_catch_all_block

pdns-recursor: avoid a memory leak in catch-all exception handler

5 years agodnsdist: Clarify that DynBlock's warning rates can't be used alone 6986/head
Remi Gacogne [Tue, 16 Oct 2018 14:23:19 +0000 (16:23 +0200)] 
dnsdist: Clarify that DynBlock's warning rates can't be used alone

5 years agoMerge pull request #7062 from rgacogne/dnsdist-tls-stored-sessions
Remi Gacogne [Tue, 16 Oct 2018 13:22:42 +0000 (15:22 +0200)] 
Merge pull request #7062 from rgacogne/dnsdist-tls-stored-sessions

dnsdist: Add a setting to control the number of stored sessions

5 years agopdns-recursor: avoid a memory leak in catch-all exception handler 7070/head
Rafael Buchbinder [Tue, 16 Oct 2018 12:39:20 +0000 (15:39 +0300)] 
pdns-recursor: avoid a memory leak in catch-all exception handler

This commit prevents a leak of DNSComboWriter in the catch-all exception
handler.