]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
8 years agoadd mmdb support to deb builds?
Peter van Dijk [Fri, 16 Mar 2018 15:37:09 +0000 (16:37 +0100)] 
add mmdb support to deb builds?

8 years agoMerge pull request #6360 from Habbie/mirror-dnsperf
Peter van Dijk [Fri, 16 Mar 2018 14:48:54 +0000 (15:48 +0100)] 
Merge pull request #6360 from Habbie/mirror-dnsperf

use mirror for dnsperf

8 years agouse mirror for dnsperf 6360/head
Peter van Dijk [Fri, 16 Mar 2018 13:33:58 +0000 (14:33 +0100)] 
use mirror for dnsperf

8 years agohook LUA to geoip again
Peter van Dijk [Fri, 16 Mar 2018 12:56:54 +0000 (13:56 +0100)] 
hook LUA to geoip again

8 years agoMerge 'master', but take geoipbackend from master as
Peter van Dijk [Fri, 16 Mar 2018 12:09:54 +0000 (13:09 +0100)] 
Merge 'master', but take geoipbackend from master as
it has diverged tremendously. Followup commits will
restore the geoip interface for LUA.

8 years agorec: Set the visibility of FFI functions to 'default' (external) 6344/head
Remi Gacogne [Fri, 16 Mar 2018 08:36:49 +0000 (09:36 +0100)] 
rec: Set the visibility of FFI functions to 'default' (external)

This makes the symbols usable across shared object boundary (Lua FFI)
even if the default visibility is set to hidden.

8 years agoremove typo 6342/head
Charles-Henri Bruyand [Fri, 16 Mar 2018 00:53:46 +0000 (01:53 +0100)] 
remove typo

8 years agorename new settings to group them, add documentation 6355/head
Charles-Henri Bruyand [Thu, 15 Mar 2018 20:38:35 +0000 (21:38 +0100)] 
rename new settings to group them, add documentation

8 years agofix more ;/return confusion
Peter van Dijk [Thu, 15 Mar 2018 19:22:38 +0000 (20:22 +0100)] 
fix more ;/return confusion

8 years agofix include syntax; fix included syntax
Peter van Dijk [Thu, 15 Mar 2018 19:18:31 +0000 (20:18 +0100)] 
fix include syntax; fix included syntax

8 years agoclosest: update code to match docs
Peter van Dijk [Thu, 15 Mar 2018 18:59:40 +0000 (19:59 +0100)] 
closest: update code to match docs

8 years agoMerge pull request #6356 from chbruyand/update-dnsdistconf-lua
Peter van Dijk [Thu, 15 Mar 2018 17:47:43 +0000 (18:47 +0100)] 
Merge pull request #6356 from chbruyand/update-dnsdistconf-lua

dnsdist: Update deprecated syntax used in dist configuration file

8 years agorather than crash, sheepishly report no file/linenum 6354/head
Peter van Dijk [Thu, 15 Mar 2018 16:51:18 +0000 (17:51 +0100)] 
rather than crash, sheepishly report no file/linenum

Before this commit, you could crash pdnsutil edit-zone this way:
1) run pdnsutil edit-zone example.org
2) add a line saying: IN TXT ("
3) exit editor

I suspect other consumers of the zone file parser could also crash this way.

After this commit, we don't crash but we fail to report the line number.
There is room for more improvement here.

8 years agobuild-scripts: Use correct example file for lua2 6352/head
Aki Tuomi [Thu, 15 Mar 2018 16:33:22 +0000 (18:33 +0200)] 
build-scripts: Use correct example file for lua2

8 years agoadd crude geoiplookup function
Peter van Dijk [Thu, 15 Mar 2018 14:53:07 +0000 (15:53 +0100)] 
add crude geoiplookup function

8 years agodnsdist: Move StatNode's counters to uint64_t 6350/head
Remi Gacogne [Thu, 15 Mar 2018 14:27:44 +0000 (15:27 +0100)] 
dnsdist: Move StatNode's counters to uint64_t

8 years agowrite bestwho in non-ECS case as well
Peter van Dijk [Thu, 15 Mar 2018 14:06:07 +0000 (15:06 +0100)] 
write bestwho in non-ECS case as well

8 years agodnsdist: Fix StatNode stats update
Remi Gacogne [Thu, 15 Mar 2018 13:59:47 +0000 (14:59 +0100)] 
dnsdist: Fix StatNode stats update

8 years agostrip ; prefix before giving code to lua
Peter van Dijk [Thu, 15 Mar 2018 12:49:39 +0000 (13:49 +0100)] 
strip ; prefix before giving code to lua

8 years agodnsdist: Restore StatNode's children (optionnally) for dnsscope
Remi Gacogne [Thu, 15 Mar 2018 11:09:48 +0000 (12:09 +0100)] 
dnsdist: Restore StatNode's children (optionnally) for dnsscope

8 years agorecursor: add min-udp-source-port, max-udp-source-port and avoid-udp-source-port...
Charles-Henri Bruyand [Thu, 15 Mar 2018 11:09:47 +0000 (12:09 +0100)] 
recursor: add min-udp-source-port, max-udp-source-port and avoid-udp-source-port variables to tune the range of ports we use

8 years agodnsdist: Use a reserve()'d unordered_map for exceed* functions
Remi Gacogne [Thu, 15 Mar 2018 09:49:25 +0000 (10:49 +0100)] 
dnsdist: Use a reserve()'d unordered_map for exceed* functions

8 years agoMerge pull request #6326 from rgacogne/calidns-ecs
bert hubert [Thu, 15 Mar 2018 09:38:21 +0000 (10:38 +0100)] 
Merge pull request #6326 from rgacogne/calidns-ecs

calidns: Add the --ecs parameter to add random ECS values to queries

8 years agodnsdist: Update deprecated syntax used in dist configuration file 6356/head
Charles-Henri Bruyand [Thu, 15 Mar 2018 09:18:49 +0000 (10:18 +0100)] 
dnsdist: Update deprecated syntax used in dist configuration file

8 years agoMerge pull request #6345 from pieterlexis/secpoll-update
Pieter Lexis [Thu, 15 Mar 2018 08:23:48 +0000 (09:23 +0100)] 
Merge pull request #6345 from pieterlexis/secpoll-update

Update secpoll

8 years agodnsdist: Don't copy data around in the exceed* functions
Remi Gacogne [Wed, 14 Mar 2018 17:28:25 +0000 (18:28 +0100)] 
dnsdist: Don't copy data around in the exceed* functions

8 years agodnsdist: Don't copy labels into a deque when inserting in StatNode
Remi Gacogne [Wed, 14 Mar 2018 17:27:33 +0000 (18:27 +0100)] 
dnsdist: Don't copy labels into a deque when inserting in StatNode

8 years agodnsdist: Don't keep track of the remote in StatNode
Remi Gacogne [Wed, 14 Mar 2018 17:24:30 +0000 (18:24 +0100)] 
dnsdist: Don't keep track of the remote in StatNode

We don't use them (they are not even available from Lua) and it
becomes very painful when you have a lot of different remotes in
the ring buffers.

8 years agoMerge pull request #6338 from cmouse/lua
Pieter Lexis [Wed, 14 Mar 2018 16:07:18 +0000 (17:07 +0100)] 
Merge pull request #6338 from cmouse/lua

build lua2 backend packages

8 years agoUpdate secpoll 6345/head
Pieter Lexis [Wed, 14 Mar 2018 14:48:28 +0000 (15:48 +0100)] 
Update secpoll

8 years agomove constant in countServersUp() signature 6327/head
Lowell Mower [Wed, 14 Mar 2018 12:58:23 +0000 (08:58 -0400)] 
move constant in countServersUp() signature

8 years agorec: Constify the methods of RecursorLua4 when possible
Remi Gacogne [Wed, 14 Mar 2018 10:14:34 +0000 (11:14 +0100)] 
rec: Constify the methods of RecursorLua4 when possible

8 years agorec: Instruct LuaWrapper to stay away from our FFI pdns_ffi_param struct
Remi Gacogne [Mon, 12 Mar 2018 16:20:26 +0000 (17:20 +0100)] 
rec: Instruct LuaWrapper to stay away from our FFI pdns_ffi_param struct

8 years agorec: Add a new Lua FFI hook, gettag-ffi
Remi Gacogne [Mon, 12 Mar 2018 10:39:45 +0000 (11:39 +0100)] 
rec: Add a new Lua FFI hook, gettag-ffi

8 years agoDon't check for changes more than once every 60 secs
Charles-Henri Bruyand [Wed, 14 Mar 2018 00:26:22 +0000 (00:26 +0000)] 
Don't check for changes more than once every 60 secs

8 years agoUse RAII wrappers for locks and some cleaning following reviews
Charles-Henri Bruyand [Tue, 13 Mar 2018 21:59:05 +0000 (21:59 +0000)] 
Use RAII wrappers for locks and some cleaning following reviews

8 years agoAuth: Reload /etc/resolv.conf when modified. Fix #6263
Charles-Henri Bruyand [Tue, 13 Mar 2018 18:08:22 +0000 (18:08 +0000)] 
Auth: Reload /etc/resolv.conf when modified. Fix #6263

8 years agobuild lua2 backend packages 6338/head
Aki Tuomi [Mon, 12 Mar 2018 17:35:25 +0000 (19:35 +0200)] 
build lua2 backend packages

8 years agoMerge pull request #6335 from Habbie/jessie-unbound
Peter van Dijk [Mon, 12 Mar 2018 19:12:27 +0000 (20:12 +0100)] 
Merge pull request #6335 from Habbie/jessie-unbound

note that libunbound also needs to come from backports

8 years agoMerge pull request #6334 from Habbie/deb892718
Peter van Dijk [Mon, 12 Mar 2018 16:47:02 +0000 (17:47 +0100)] 
Merge pull request #6334 from Habbie/deb892718

add latest deb9 auth to secpoll

8 years agonote that libunbound also needs to come from backports 6335/head
Peter van Dijk [Mon, 12 Mar 2018 12:36:50 +0000 (13:36 +0100)] 
note that libunbound also needs to come from backports

8 years agoadd latest deb9 auth to secpoll 6334/head
Peter van Dijk [Mon, 12 Mar 2018 11:31:42 +0000 (12:31 +0100)] 
add latest deb9 auth to secpoll

8 years agoremove unnecessary class attributes
Lowell Mower [Mon, 12 Mar 2018 11:00:09 +0000 (07:00 -0400)] 
remove unnecessary class attributes

8 years agochange return value to size_t for countServerUp
Lowell Mower [Mon, 12 Mar 2018 10:58:26 +0000 (06:58 -0400)] 
change return value to size_t for countServerUp

8 years agoMerge pull request #6330 from Habbie/tkey-py3
Remi Gacogne [Mon, 12 Mar 2018 09:02:46 +0000 (10:02 +0100)] 
Merge pull request #6330 from Habbie/tkey-py3

make tkey.py work on Python 3

8 years agohardcode servers and up/down in the configuration attribute
Lowell Mower [Fri, 9 Mar 2018 15:46:48 +0000 (10:46 -0500)] 
hardcode servers and up/down in the configuration attribute

8 years agoc++11 loop style for countServerUp()
Lowell Mower [Fri, 9 Mar 2018 15:45:36 +0000 (10:45 -0500)] 
c++11 loop style for countServerUp()

8 years agoadd TCP support for ALIAS. Closes #6328
Peter van Dijk [Fri, 9 Mar 2018 14:45:58 +0000 (15:45 +0100)] 
add TCP support for ALIAS. Closes #6328

8 years agoremove recursor= leftovers
Peter van Dijk [Fri, 9 Mar 2018 13:34:12 +0000 (14:34 +0100)] 
remove recursor= leftovers

8 years agomake tkey.py work on Python 3 6330/head
Peter van Dijk [Fri, 9 Mar 2018 12:51:49 +0000 (13:51 +0100)] 
make tkey.py work on Python 3

8 years agoadd function to get count for servers with status UP within a pool
Lowell Mower [Thu, 8 Mar 2018 21:27:55 +0000 (16:27 -0500)] 
add function to get count for servers with status UP within a pool

8 years agoadd metric line to interpolate value returned from countServersUp
Lowell Mower [Thu, 8 Mar 2018 21:26:35 +0000 (16:26 -0500)] 
add metric line to interpolate value returned from countServersUp

8 years agoadd regression test for server-up metric
Lowell Mower [Thu, 8 Mar 2018 21:25:00 +0000 (16:25 -0500)] 
add regression test for server-up metric

8 years agocalidns: Add the --ecs parameter to add random ECS values to queries 6326/head
Remi Gacogne [Thu, 8 Mar 2018 14:26:07 +0000 (15:26 +0100)] 
calidns: Add the --ecs parameter to add random ECS values to queries

8 years agodnsdist: Remove functions that relied on only one active certificate
Remi Gacogne [Sun, 19 Nov 2017 20:31:04 +0000 (21:31 +0100)] 
dnsdist: Remove functions that relied on only one active certificate

8 years agodnsdist: Document the new DNSCrypt calls, restore compatibility
Remi Gacogne [Sun, 29 Oct 2017 22:14:27 +0000 (23:14 +0100)] 
dnsdist: Document the new DNSCrypt calls, restore compatibility

8 years agoDNSCrypt: Document certificates versions
Remi Gacogne [Sun, 29 Oct 2017 17:50:04 +0000 (18:50 +0100)] 
DNSCrypt: Document certificates versions

8 years agoDNSCrypt: Certificate serials should be in network byte order
Remi Gacogne [Sun, 29 Oct 2017 17:49:05 +0000 (18:49 +0100)] 
DNSCrypt: Certificate serials should be in network byte order

8 years agodnsdist: Add support for DNSCrypt's xchacha20, n active certs
Remi Gacogne [Sun, 15 Oct 2017 20:28:32 +0000 (22:28 +0200)] 
dnsdist: Add support for DNSCrypt's xchacha20, n active certs

8 years agoMerge pull request #6157 from cmouse/lua
Peter van Dijk [Thu, 8 Mar 2018 08:55:16 +0000 (09:55 +0100)] 
Merge pull request #6157 from cmouse/lua

Lua2 backend

8 years agoMerge pull request #5361 from oridistor/master
Pieter Lexis [Wed, 7 Mar 2018 12:37:20 +0000 (13:37 +0100)] 
Merge pull request #5361 from oridistor/master

See #3602, made requests always return to sender, for usage in multi …

8 years agoMerge pull request #6324 from pieterlexis/waitForMultiData-unused-var-fix
Pieter Lexis [Wed, 7 Mar 2018 09:28:40 +0000 (10:28 +0100)] 
Merge pull request #6324 from pieterlexis/waitForMultiData-unused-var-fix

Fix unused variable compiler warning

8 years agoMerge pull request #6325 from zeha/auth-api-409
Pieter Lexis [Wed, 7 Mar 2018 09:28:22 +0000 (10:28 +0100)] 
Merge pull request #6325 from zeha/auth-api-409

Auth API: return status 409 if domain already exists (+test cleanup

8 years agodnsdist: Use the best multiplexer available instead of poll() 6317/head
Remi Gacogne [Tue, 6 Mar 2018 15:20:48 +0000 (16:20 +0100)] 
dnsdist: Use the best multiplexer available instead of poll()

8 years agodnsdist: Account for more than one socket per backend
Remi Gacogne [Mon, 5 Mar 2018 09:49:52 +0000 (10:49 +0100)] 
dnsdist: Account for more than one socket per backend

8 years agodnsdist: If at least one (re-)connection failed, close all sockets
Remi Gacogne [Mon, 5 Mar 2018 09:44:41 +0000 (10:44 +0100)] 
dnsdist: If at least one (re-)connection failed, close all sockets

8 years agodnsdist: Check that the number of sockets is > 0
Remi Gacogne [Mon, 5 Mar 2018 09:43:44 +0000 (10:43 +0100)] 
dnsdist: Check that the number of sockets is > 0

8 years agodnsdist: Add an option to use several source ports toward a backend
Remi Gacogne [Thu, 1 Mar 2018 11:19:29 +0000 (11:19 +0000)] 
dnsdist: Add an option to use several source ports toward a backend

This is very useful if the backend is distributing queries based
only on (source IP, source port, destination IP, destination port),
which is for example the case of PowerDNS Recursor with several
threads, reuseport set and pdns-distribute-queries not set.

8 years agoMerge pull request #6289 from zeha/dnsdist-stats
Remi Gacogne [Tue, 6 Mar 2018 15:56:08 +0000 (15:56 +0000)] 
Merge pull request #6289 from zeha/dnsdist-stats

dnsdist: unify global stats accounting

8 years agoMerge pull request #6322 from zeha/dnsdist-tests
Remi Gacogne [Tue, 6 Mar 2018 15:53:55 +0000 (15:53 +0000)] 
Merge pull request #6322 from zeha/dnsdist-tests

dnsdist tests: make py3k compatible and pick py3k if available

8 years agoMerge pull request #6323 from zeha/dnsdist-remotelogger-checkconfig
Remi Gacogne [Tue, 6 Mar 2018 15:53:30 +0000 (15:53 +0000)] 
Merge pull request #6323 from zeha/dnsdist-remotelogger-checkconfig

dnsdist: create RemoteLoggers in client mode, but avoid connecting

8 years agotravis: Run tests for lua2 6157/head
Aki Tuomi [Tue, 23 Jan 2018 11:54:25 +0000 (13:54 +0200)] 
travis: Run tests for lua2

8 years agolua2backend: Add new backend
Aki Tuomi [Sun, 7 Jan 2018 17:39:47 +0000 (19:39 +0200)] 
lua2backend: Add new backend

This is API version 1 of lua2 backend.

It provides improved interface for Lua script to act as backends.

Configuration
 - `lua2-filename` - path to script
 - `lua2-query-logging` - log lua queries and results
 - `lua2-api' - API version (default 2)

8 years agopdns: Include lua-auth and it's dependencies in pdnsutil
Aki Tuomi [Sun, 7 Jan 2018 18:53:06 +0000 (20:53 +0200)] 
pdns: Include lua-auth and it's dependencies in pdnsutil

Needed by lua2 backend

8 years agolua-base4: Add QType methods
Aki Tuomi [Fri, 26 Jan 2018 12:51:34 +0000 (14:51 +0200)] 
lua-base4: Add QType methods

8 years agolua-base4: Expose more DNSName methods
Aki Tuomi [Tue, 23 Jan 2018 11:52:19 +0000 (13:52 +0200)] 
lua-base4: Expose more DNSName methods

These are needed to implement lua2 backend

8 years agolua-base4: Add newDRR for making DNSResourceRecords
Aki Tuomi [Sun, 7 Jan 2018 16:45:58 +0000 (18:45 +0200)] 
lua-base4: Add newDRR for making DNSResourceRecords

8 years agoRemove latency tracking for TCP again, for now 6289/head
Chris Hofstaedtler [Tue, 6 Mar 2018 07:49:25 +0000 (08:49 +0100)] 
Remove latency tracking for TCP again, for now

8 years agoapi tests: pick python3 if available 6325/head
Chris Hofstaedtler [Tue, 6 Mar 2018 07:45:25 +0000 (08:45 +0100)] 
api tests: pick python3 if available

8 years agoAuth API: return status 409 if domain already exists #4482
Chris Hofstaedtler [Tue, 6 Mar 2018 07:41:19 +0000 (08:41 +0100)] 
Auth API: return status 409 if domain already exists #4482

8 years agoapi tests: fix up for py3k and other cleanup
Chris Hofstaedtler [Tue, 6 Mar 2018 07:40:53 +0000 (08:40 +0100)] 
api tests: fix up for py3k and other cleanup

8 years agoFix unused variable compiler warning 6324/head
Pieter Lexis [Mon, 5 Mar 2018 15:25:35 +0000 (16:25 +0100)] 
Fix unused variable compiler warning

8 years agoDocument protobufServer behaviour change 6323/head
Chris Hofstaedtler [Mon, 5 Mar 2018 13:15:00 +0000 (14:15 +0100)] 
Document protobufServer behaviour change

8 years agodnsdist tests: make py3k compatible and pick py3k if available 6322/head
Chris Hofstaedtler [Mon, 5 Mar 2018 11:34:00 +0000 (12:34 +0100)] 
dnsdist tests: make py3k compatible and pick py3k if available

8 years agodnsdist: create RemoteLoggers in client mode, but avoid connecting
Chris Hofstaedtler [Mon, 5 Mar 2018 13:10:32 +0000 (14:10 +0100)] 
dnsdist: create RemoteLoggers in client mode, but avoid connecting

Fixes a nullptr deref under --check-config.

8 years agoTeeAction: make getStats() order deterministic
Chris Hofstaedtler [Mon, 5 Mar 2018 11:21:57 +0000 (12:21 +0100)] 
TeeAction: make getStats() order deterministic

8 years agoMerge pull request #6304 from Habbie/unbreak
bert hubert [Mon, 5 Mar 2018 08:37:38 +0000 (08:37 +0000)] 
Merge pull request #6304 from Habbie/unbreak

unbreak various things

8 years agomake travis happy about new json sorting? 6304/head
Peter van Dijk [Sun, 4 Mar 2018 21:24:23 +0000 (22:24 +0100)] 
make travis happy about new json sorting?

8 years agotest: fix comments-in-forward-zones-file sorting?
Peter van Dijk [Tue, 27 Feb 2018 21:11:12 +0000 (22:11 +0100)] 
test: fix comments-in-forward-zones-file sorting?

8 years agoanother shot at zone2ldap.1
Peter van Dijk [Tue, 27 Feb 2018 19:55:33 +0000 (20:55 +0100)] 
another shot at zone2ldap.1

8 years agodo dist zone2ldap.1 always
Peter van Dijk [Tue, 27 Feb 2018 18:56:06 +0000 (19:56 +0100)] 
do dist zone2ldap.1 always

8 years agodon't try to package ixfrdist.service on trusty
Peter van Dijk [Tue, 27 Feb 2018 16:33:43 +0000 (17:33 +0100)] 
don't try to package ixfrdist.service on trusty

8 years agoonly build zone2ldap.1 when needed
Peter van Dijk [Tue, 27 Feb 2018 16:26:26 +0000 (17:26 +0100)] 
only build zone2ldap.1 when needed

8 years agopackage ixfrdist for sles
Peter van Dijk [Tue, 27 Feb 2018 16:25:01 +0000 (17:25 +0100)] 
package ixfrdist for sles

8 years agotest: add zone2json to debian packages
Peter van Dijk [Mon, 26 Feb 2018 20:53:32 +0000 (21:53 +0100)] 
test: add zone2json to debian packages

8 years agotest: remove ldap backend for SLES build some more
Peter van Dijk [Mon, 26 Feb 2018 18:56:27 +0000 (19:56 +0100)] 
test: remove ldap backend for SLES build some more

8 years agotest: remove ldap backend for SLES build
Peter van Dijk [Mon, 26 Feb 2018 18:44:22 +0000 (19:44 +0100)] 
test: remove ldap backend for SLES build

8 years agoagain do not try to make /usr/bin/pdns_notify
Peter van Dijk [Mon, 26 Feb 2018 15:47:30 +0000 (16:47 +0100)] 
again do not try to make /usr/bin/pdns_notify

8 years agodo not try to make /usr/bin/pdns_notify
Peter van Dijk [Mon, 26 Feb 2018 15:09:59 +0000 (16:09 +0100)] 
do not try to make /usr/bin/pdns_notify

8 years agoluabackend: do not assume binary paths
Peter van Dijk [Mon, 26 Feb 2018 15:02:59 +0000 (16:02 +0100)] 
luabackend: do not assume binary paths