]>
granicus.if.org Git - pdns/log
Pieter Lexis [Tue, 27 Mar 2018 12:57:30 +0000 (14:57 +0200)]
dnsdist: fix doc syntax for dynblocks
Remi Gacogne [Wed, 21 Mar 2018 16:23:50 +0000 (17:23 +0100)]
dnsdist: Add DynBlockRulesGroup
The new `DynBlockRulesGroup` object is designed to make the processing
of multiple rate-limiting rules faster by walking the query and
response buffers only once for each invocation, instead of once per
existing `exceed*()` invocation.
For example, instead of having something like:
```
function maintenance()
addDynBlocks(exceedQRate(30, 10), "Exceeded query rate", 60)
addDynBlocks(exceedNXDOMAINs(20, 10), "Exceeded NXD rate", 60)
addDynBlocks(exceedServFails(20, 10), "Exceeded ServFail rate", 60)
addDynBlocks(exceedQTypeRate(dnsdist.ANY, 5, 10), "Exceeded ANY rate", 60)
addDynBlocks(exceedRespByterate(
1000000 , 10), "Exceeded resp BW rate", 60)
end
```
The new syntax would be:
```
local dbr = dynBlockRulesGroup()
dbr:setQueryRate(30, 10, "Exceeded query rate", 60)
dbr:setRCodeRate(dnsdist.NXDOMAIN, 20, 10, "Exceeded NXD rate", 60)
dbr:setRCodeRate(dnsdist.SERVFAIL, 20, 10, "Exceeded ServFail rate", 60)
dbr:setQTypeRate(dnsdist.ANY, 5, 10, "Exceeded ANY rate", 60)
dbr:setResponseByteRate(10000, 10, "Exceeded resp BW rate", 60)
function maintenance()
dbr:apply()
end
```
The old syntax would walk the query buffer 2 times and the response
one 3 times, while the new syntax does it only once for each.
It also reuse the same internal table to keep track of the source
IPs, reducing the CPU usage.
Remi Gacogne [Tue, 20 Mar 2018 15:12:56 +0000 (16:12 +0100)]
Merge pull request #6364 from rgacogne/dnsdist-macro-sonar
dnsdist: Fix 'unreachable code' warnings reported by SonarCloud
Remi Gacogne [Tue, 20 Mar 2018 15:12:17 +0000 (16:12 +0100)]
Merge pull request #6327 from lowellmower/server-up-metric
Add Metric "server-up" Count to Carbon Reporting
Remi Gacogne [Tue, 20 Mar 2018 14:47:43 +0000 (15:47 +0100)]
Merge pull request #6372 from krionbsd/pedantic
Remove extra semicolons to remove some -pedantic warnings.
krion [Tue, 20 Mar 2018 11:27:43 +0000 (12:27 +0100)]
Remove extra semicolons to remove some -pedantic warnings.
Remi Gacogne [Tue, 20 Mar 2018 08:58:57 +0000 (09:58 +0100)]
Merge pull request #6363 from chbruyand/issue-6346
dnsdist: Make custom LuaAction and LuaResponsAction second return value optional
Remi Gacogne [Tue, 20 Mar 2018 08:57:57 +0000 (09:57 +0100)]
Merge pull request #6366 from rgacogne/dnsdist-exceed-reserve
dnsdist: Reserve according to the _query_ ring size in exceedQueryGen
Remi Gacogne [Tue, 20 Mar 2018 08:57:15 +0000 (09:57 +0100)]
Merge pull request #6368 from rgacogne/dnsdist-faster-dynblocks
dnsdist: Only update the DynBlock state holders when needed
Remi Gacogne [Mon, 19 Mar 2018 18:03:11 +0000 (19:03 +0100)]
dnsdist: Only update the DynBlock state holders when needed
Remi Gacogne [Mon, 19 Mar 2018 13:48:57 +0000 (14:48 +0100)]
dnsdist: Reserve according to the _query_ ring size in exceedQueryGen
Remi Gacogne [Mon, 19 Mar 2018 13:37:34 +0000 (14:37 +0100)]
Merge pull request #6350 from rgacogne/dnsdist-lua-inspection-perfs
dnsdist: Speed up the processing of large ring buffers
Charles-Henri Bruyand [Mon, 19 Mar 2018 12:38:57 +0000 (13:38 +0100)]
dnsdist: correct typos in doc, adjust regression test
Charles-Henri Bruyand [Mon, 19 Mar 2018 12:02:58 +0000 (13:02 +0100)]
dnsdist: ignore certificate files used by the tests
Charles-Henri Bruyand [Mon, 19 Mar 2018 11:44:46 +0000 (12:44 +0100)]
dnsdist: test LuaAction optional second return value
Charles-Henri Bruyand [Mon, 19 Mar 2018 11:29:10 +0000 (12:29 +0100)]
dnsdist: add missing definition for DNSResponseAction
Charles-Henri Bruyand [Mon, 19 Mar 2018 10:20:04 +0000 (11:20 +0100)]
Merge branch 'master' into issue-6346
* master:
use mirror for dnsperf
rather than crash, sheepishly report no file/linenum
dnsdist: Update deprecated syntax used in dist configuration file
Update secpoll
build lua2 backend packages
calidns: Add the --ecs parameter to add random ECS values to queries
Charles-Henri Bruyand [Mon, 19 Mar 2018 10:16:30 +0000 (11:16 +0100)]
improve documentation of addLuaAction and addLuaResponseAction
Charles-Henri Bruyand [Fri, 16 Mar 2018 03:43:13 +0000 (04:43 +0100)]
dnsdist: make lua actions second return value optional
Remi Gacogne [Mon, 19 Mar 2018 08:41:38 +0000 (09:41 +0100)]
dnsdist: Fix 'unreachable code' warnings reported by SonarCloud
Peter van Dijk [Fri, 16 Mar 2018 15:58:15 +0000 (16:58 +0100)]
Merge pull request #6354 from Habbie/zpt-eof-crash
rather than crash, sheepishly report no file/linenum
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
Peter van Dijk [Fri, 16 Mar 2018 13:33:58 +0000 (14:33 +0100)]
use mirror for dnsperf
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
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.
Remi Gacogne [Thu, 15 Mar 2018 14:27:44 +0000 (15:27 +0100)]
dnsdist: Move StatNode's counters to uint64_t
Remi Gacogne [Thu, 15 Mar 2018 13:59:47 +0000 (14:59 +0100)]
dnsdist: Fix StatNode stats update
Remi Gacogne [Thu, 15 Mar 2018 11:09:48 +0000 (12:09 +0100)]
dnsdist: Restore StatNode's children (optionnally) for dnsscope
Remi Gacogne [Thu, 15 Mar 2018 09:49:25 +0000 (10:49 +0100)]
dnsdist: Use a reserve()'d unordered_map for exceed* functions
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
Charles-Henri Bruyand [Thu, 15 Mar 2018 09:18:49 +0000 (10:18 +0100)]
dnsdist: Update deprecated syntax used in dist configuration file
Pieter Lexis [Thu, 15 Mar 2018 08:23:48 +0000 (09:23 +0100)]
Merge pull request #6345 from pieterlexis/secpoll-update
Update secpoll
Remi Gacogne [Wed, 14 Mar 2018 17:28:25 +0000 (18:28 +0100)]
dnsdist: Don't copy data around in the exceed* functions
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
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.
Pieter Lexis [Wed, 14 Mar 2018 16:07:18 +0000 (17:07 +0100)]
Merge pull request #6338 from cmouse/lua
build lua2 backend packages
Pieter Lexis [Wed, 14 Mar 2018 14:48:28 +0000 (15:48 +0100)]
Update secpoll
Lowell Mower [Wed, 14 Mar 2018 12:58:23 +0000 (08:58 -0400)]
move constant in countServersUp() signature
Aki Tuomi [Mon, 12 Mar 2018 17:35:25 +0000 (19:35 +0200)]
build lua2 backend packages
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
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
Peter van Dijk [Mon, 12 Mar 2018 12:36:50 +0000 (13:36 +0100)]
note that libunbound also needs to come from backports
Peter van Dijk [Mon, 12 Mar 2018 11:31:42 +0000 (12:31 +0100)]
add latest deb9 auth to secpoll
Lowell Mower [Mon, 12 Mar 2018 11:00:09 +0000 (07:00 -0400)]
remove unnecessary class attributes
Lowell Mower [Mon, 12 Mar 2018 10:58:26 +0000 (06:58 -0400)]
change return value to size_t for countServerUp
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
Lowell Mower [Fri, 9 Mar 2018 15:46:48 +0000 (10:46 -0500)]
hardcode servers and up/down in the configuration attribute
Lowell Mower [Fri, 9 Mar 2018 15:45:36 +0000 (10:45 -0500)]
c++11 loop style for countServerUp()
Peter van Dijk [Fri, 9 Mar 2018 12:51:49 +0000 (13:51 +0100)]
make tkey.py work on Python 3
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
Lowell Mower [Thu, 8 Mar 2018 21:26:35 +0000 (16:26 -0500)]
add metric line to interpolate value returned from countServersUp
Lowell Mower [Thu, 8 Mar 2018 21:25:00 +0000 (16:25 -0500)]
add regression test for server-up metric
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
Peter van Dijk [Thu, 8 Mar 2018 08:55:16 +0000 (09:55 +0100)]
Merge pull request #6157 from cmouse/lua
Lua2 backend
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 …
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
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
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
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
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
Aki Tuomi [Tue, 23 Jan 2018 11:54:25 +0000 (13:54 +0200)]
travis: Run tests for lua2
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)
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
Aki Tuomi [Fri, 26 Jan 2018 12:51:34 +0000 (14:51 +0200)]
lua-base4: Add QType 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
Aki Tuomi [Sun, 7 Jan 2018 16:45:58 +0000 (18:45 +0200)]
lua-base4: Add newDRR for making DNSResourceRecords
Chris Hofstaedtler [Tue, 6 Mar 2018 07:49:25 +0000 (08:49 +0100)]
Remove latency tracking for TCP again, for now
Chris Hofstaedtler [Tue, 6 Mar 2018 07:45:25 +0000 (08:45 +0100)]
api tests: pick python3 if available
Chris Hofstaedtler [Tue, 6 Mar 2018 07:41:19 +0000 (08:41 +0100)]
Auth API: return status 409 if domain already exists #4482
Chris Hofstaedtler [Tue, 6 Mar 2018 07:40:53 +0000 (08:40 +0100)]
api tests: fix up for py3k and other cleanup
Pieter Lexis [Mon, 5 Mar 2018 15:25:35 +0000 (16:25 +0100)]
Fix unused variable compiler warning
Chris Hofstaedtler [Mon, 5 Mar 2018 13:15:00 +0000 (14:15 +0100)]
Document protobufServer behaviour change
Chris Hofstaedtler [Mon, 5 Mar 2018 11:34:00 +0000 (12:34 +0100)]
dnsdist tests: make py3k compatible and pick py3k if available
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.
Chris Hofstaedtler [Mon, 5 Mar 2018 11:21:57 +0000 (12:21 +0100)]
TeeAction: make getStats() order deterministic
bert hubert [Mon, 5 Mar 2018 08:37:38 +0000 (08:37 +0000)]
Merge pull request #6304 from Habbie/unbreak
unbreak various things
Peter van Dijk [Sun, 4 Mar 2018 21:24:23 +0000 (22:24 +0100)]
make travis happy about new json sorting?
Peter van Dijk [Tue, 27 Feb 2018 21:11:12 +0000 (22:11 +0100)]
test: fix comments-in-forward-zones-file sorting?
Peter van Dijk [Tue, 27 Feb 2018 19:55:33 +0000 (20:55 +0100)]
another shot at zone2ldap.1
Peter van Dijk [Tue, 27 Feb 2018 18:56:06 +0000 (19:56 +0100)]
do dist zone2ldap.1 always
Peter van Dijk [Tue, 27 Feb 2018 16:33:43 +0000 (17:33 +0100)]
don't try to package ixfrdist.service on trusty
Peter van Dijk [Tue, 27 Feb 2018 16:26:26 +0000 (17:26 +0100)]
only build zone2ldap.1 when needed
Peter van Dijk [Tue, 27 Feb 2018 16:25:01 +0000 (17:25 +0100)]
package ixfrdist for sles
Peter van Dijk [Mon, 26 Feb 2018 20:53:32 +0000 (21:53 +0100)]
test: add zone2json to debian packages
Peter van Dijk [Mon, 26 Feb 2018 18:56:27 +0000 (19:56 +0100)]
test: remove ldap backend for SLES build some more
Peter van Dijk [Mon, 26 Feb 2018 18:44:22 +0000 (19:44 +0100)]
test: remove ldap backend for SLES build
Peter van Dijk [Mon, 26 Feb 2018 15:47:30 +0000 (16:47 +0100)]
again do 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
Peter van Dijk [Mon, 26 Feb 2018 15:02:59 +0000 (16:02 +0100)]
luabackend: do not assume binary paths
Peter van Dijk [Mon, 26 Feb 2018 13:49:37 +0000 (14:49 +0100)]
luabackend: do not _tostring t tables and userdata
Remi Gacogne [Fri, 2 Mar 2018 09:49:52 +0000 (09:49 +0000)]
Merge pull request #6320 from rgacogne/rec-cache-a-aaaa
rec: Fix ECS-specific NS AAAA not being returned from the cache
Remi Gacogne [Thu, 1 Mar 2018 20:09:36 +0000 (20:09 +0000)]
rec: Fix ECS-specific NS AAAA not being returned from the cache
Reported by Andreas Jakum (thanks!).
Pieter Lexis [Thu, 1 Mar 2018 08:41:19 +0000 (09:41 +0100)]
Merge pull request #6306 from rgacogne/rec-update-ecs-index-only-when-needed
rec: Only update the ECS cache index when needed
Remi Gacogne [Thu, 1 Mar 2018 08:03:17 +0000 (08:03 +0000)]
Merge pull request #6311 from pieterlexis/6305-dnsdist-exit-on-wrong-option
dnsdist: Exit with code 1 on invalid parameter
Remi Gacogne [Thu, 1 Mar 2018 08:02:54 +0000 (08:02 +0000)]
Merge pull request #6313 from rgacogne/rec-auth-zone-cache-miss
rec: Count a lookup into an internal auth zone as a cache miss
Remi Gacogne [Wed, 28 Feb 2018 14:46:10 +0000 (14:46 +0000)]
rec: Add the auth-zone-queries metric counting queries to hosted zones
Remi Gacogne [Wed, 28 Feb 2018 14:09:47 +0000 (14:09 +0000)]
rec: Initialize SyncRes::d_authzonequeries
Remi Gacogne [Wed, 28 Feb 2018 10:26:03 +0000 (10:26 +0000)]
rec: Count a lookup into an internal auth zone as a cache miss
We only considered a query a cache miss if we had to do at least
one outgoing query, but having to look up into one of the internally
hosted zone (auth-zones) should count as a cache miss too.
Peter van Dijk [Tue, 27 Feb 2018 14:19:32 +0000 (15:19 +0100)]
Merge pull request #6276 from pieterlexis/issue-6270-dnsupdate-cname
dnsupdate: Reject updates if they would lead to CNAME+Other data
Pieter Lexis [Tue, 27 Feb 2018 14:12:47 +0000 (15:12 +0100)]
Merge pull request #6243 from mind04/rectify2
Auth: fix rectify (ordername) for non dnssec zones