]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
6 years agoMerge pull request #5998 from pieterlexis/docs-4X-sec-adv docs-4X 12072/head 6080/head 6868/head
Pieter Lexis [Mon, 27 Nov 2017 16:58:19 +0000 (17:58 +0100)] 
Merge pull request #5998 from pieterlexis/docs-4X-sec-adv

Remove the 4.0 security advisories and refer tot he new docs

6 years agoUpdate urls for advisories to full links 5998/head
Pieter Lexis [Mon, 27 Nov 2017 14:59:42 +0000 (15:59 +0100)] 
Update urls for advisories to full links

6 years agoRemove the 4.0 security advisories and refer tot he new docs
Pieter Lexis [Mon, 27 Nov 2017 11:48:20 +0000 (12:48 +0100)] 
Remove the 4.0 security advisories and refer tot he new docs

6 years agoMake this branch for 4.0.x docs
Pieter Lexis [Tue, 18 Jul 2017 07:56:24 +0000 (09:56 +0200)] 
Make this branch for 4.0.x docs

6 years agoMerge pull request #5406 from rgacogne/rec-netmask-ordering
Pieter Lexis [Tue, 18 Jul 2017 06:56:49 +0000 (08:56 +0200)] 
Merge pull request #5406 from rgacogne/rec-netmask-ordering

rec: Make more specific Netmasks < to less specific ones

6 years agoMerge pull request #5485 from rgacogne/rec-log-level
Pieter Lexis [Tue, 18 Jul 2017 06:54:59 +0000 (08:54 +0200)] 
Merge pull request #5485 from rgacogne/rec-log-level

rec: Don't always override `loglevel` to 6

6 years agoMerge pull request #5509 from zeha/f/ship-ldap-schema
Pieter Lexis [Tue, 18 Jul 2017 06:53:40 +0000 (08:53 +0200)] 
Merge pull request #5509 from zeha/f/ship-ldap-schema

Ship ldapbackend schema files in tarball

6 years agoMerge pull request #5516 from zeha/getauth-no-dnspacket
Pieter Lexis [Tue, 18 Jul 2017 06:53:24 +0000 (08:53 +0200)] 
Merge pull request #5516 from zeha/getauth-no-dnspacket

Remove DNSPacket from getAuth() signature

6 years agoMerge pull request #5523 from rubenk/fix-typos-in-logmessage
Pieter Lexis [Tue, 18 Jul 2017 06:52:21 +0000 (08:52 +0200)] 
Merge pull request #5523 from rubenk/fix-typos-in-logmessage

Fix typo in two log messages

6 years agoMerge pull request #5525 from rgacogne/rec-sign-inception
Pieter Lexis [Tue, 18 Jul 2017 06:51:50 +0000 (08:51 +0200)] 
Merge pull request #5525 from rgacogne/rec-sign-inception

rec: Fix validation at the exact RRSIG inception or expiration time

6 years agoMerge pull request #5528 from rgacogne/rec-cname-aa-authority
Pieter Lexis [Tue, 18 Jul 2017 06:51:14 +0000 (08:51 +0200)] 
Merge pull request #5528 from rgacogne/rec-cname-aa-authority

rec: On an AA=1 CNAME answer, only the CNAME is necessarily authoritative

6 years agoMerge pull request #5527 from pieterlexis/dnsdist-python-six
Pieter Lexis [Mon, 17 Jul 2017 21:18:05 +0000 (23:18 +0200)] 
Merge pull request #5527 from pieterlexis/dnsdist-python-six

dnsdist docs: Ensure pip and setup tools are updated when building docs.

6 years agorec: On an AA=1 CNAME answer, only the CNAME is necessarily authoritative 5528/head
Remi Gacogne [Mon, 17 Jul 2017 20:31:48 +0000 (22:31 +0200)] 
rec: On an AA=1 CNAME answer, only the CNAME is necessarily authoritative

6 years agodnsdist docs: update setuptools 5527/head
Pieter Lexis [Mon, 17 Jul 2017 20:16:56 +0000 (22:16 +0200)] 
dnsdist docs: update setuptools

6 years agoMerge pull request #5505 from pieterlexis/new-docs
Remi Gacogne [Mon, 17 Jul 2017 20:03:57 +0000 (22:03 +0200)] 
Merge pull request #5505 from pieterlexis/new-docs

New dnsdist documentation

6 years agoUpdate dnsdist docs upload path 5505/head
Pieter Lexis [Mon, 17 Jul 2017 15:30:41 +0000 (17:30 +0200)] 
Update dnsdist docs upload path

6 years agoAdd rst-based dnsdist documentation.
Pieter Lexis [Thu, 9 Feb 2017 17:06:19 +0000 (18:06 +0100)] 
Add rst-based dnsdist documentation.

6 years agorec: Don't always override `loglevel` to 6 5485/head
Remi Gacogne [Mon, 17 Jul 2017 12:23:19 +0000 (14:23 +0200)] 
rec: Don't always override `loglevel` to 6

6 years agoMerge pull request #5504 from rgacogne/dnsdist-nmg-dest
Remi Gacogne [Mon, 17 Jul 2017 08:44:36 +0000 (10:44 +0200)] 
Merge pull request #5504 from rgacogne/dnsdist-nmg-dest

dnsdist: Clarify that NetmaskGroupRule can match the destination

6 years agoMerge pull request #5511 from pieterlexis/dump-cache-updates
Remi Gacogne [Mon, 17 Jul 2017 08:44:04 +0000 (10:44 +0200)] 
Merge pull request #5511 from pieterlexis/dump-cache-updates

Add more information to recursor cache dumps

6 years agoMerge pull request #5514 from pieterlexis/rm-blockfilter
Remi Gacogne [Mon, 17 Jul 2017 08:42:16 +0000 (10:42 +0200)] 
Merge pull request #5514 from pieterlexis/rm-blockfilter

dnsdist: Remove BlockFilter

6 years agorec: Fix validation at the exact RRSIG inception or expiration time 5525/head
Remi Gacogne [Mon, 17 Jul 2017 08:29:45 +0000 (10:29 +0200)] 
rec: Fix validation at the exact RRSIG inception or expiration time

Reported by Petr Špaček of cz.nic (thanks!).

6 years agoFix typo in two log messages 5523/head
Ruben Kerkhof [Fri, 14 Jul 2017 17:55:53 +0000 (19:55 +0200)] 
Fix typo in two log messages

6 years agoMerge pull request #5426 from stasic/postgres-bigint
Peter van Dijk [Thu, 13 Jul 2017 12:13:30 +0000 (14:13 +0200)] 
Merge pull request #5426 from stasic/postgres-bigint

Postgres bigint

6 years agoRemove DNSPacket from getAuth() signature 5516/head
Christian Hofstaedtler [Thu, 13 Jul 2017 09:35:55 +0000 (11:35 +0200)] 
Remove DNSPacket from getAuth() signature

6 years agoMerge pull request #5506 from cmouse/goracle
Peter van Dijk [Thu, 13 Jul 2017 08:41:33 +0000 (10:41 +0200)] 
Merge pull request #5506 from cmouse/goracle

goraclebackend: Add missing query for last key insert id

6 years agorec docs: Update tools in the venv
Pieter Lexis [Wed, 12 Jul 2017 16:03:10 +0000 (18:03 +0200)] 
rec docs: Update tools in the venv

6 years agoMerge pull request #5512 from zeha/soa-no-packet
Peter van Dijk [Wed, 12 Jul 2017 14:26:28 +0000 (16:26 +0200)] 
Merge pull request #5512 from zeha/soa-no-packet

Auth: drop broken support for packet-specific SOA replies from backends

6 years agoMerge pull request #5481 from pieterlexis/new-recursor-docs
Pieter Lexis [Wed, 12 Jul 2017 11:07:14 +0000 (13:07 +0200)] 
Merge pull request #5481 from pieterlexis/new-recursor-docs

New recursor documentation (for 4.1 and up)

6 years agoSplit the Recursor documentation 5481/head
Pieter Lexis [Wed, 28 Jun 2017 22:04:33 +0000 (00:04 +0200)] 
Split the Recursor documentation

Transform it to restructured text and use Sphinx to build it.

6 years agodnsdist: Remove BlockFilter 5514/head
Pieter Lexis [Tue, 11 Jul 2017 22:03:55 +0000 (00:03 +0200)] 
dnsdist: Remove BlockFilter

Closes #5513

6 years agoLUABackend: sync function signatures with DNSBackend 5512/head
Christian Hofstaedtler [Tue, 11 Jul 2017 14:08:19 +0000 (16:08 +0200)] 
LUABackend: sync function signatures with DNSBackend

6 years agoAuth: drop broken support for packet-specific SOA replies from backends
Christian Hofstaedtler [Thu, 6 Oct 2016 17:32:37 +0000 (19:32 +0200)] 
Auth: drop broken support for packet-specific SOA replies from backends

6 years agobindbackend: avoid inconsistent override usage warnings
Christian Hofstaedtler [Tue, 11 Jul 2017 13:12:07 +0000 (15:12 +0200)] 
bindbackend: avoid inconsistent override usage warnings

6 years agoMerge pull request #5468 from cmouse/drop-lua-policy
Peter van Dijk [Tue, 11 Jul 2017 12:43:43 +0000 (14:43 +0200)] 
Merge pull request #5468 from cmouse/drop-lua-policy

Remove all Lua Policy Engine code

6 years agoMerge pull request #5508 from rgacogne/dnsdist-dnscrypt-timestamps
Remi Gacogne [Tue, 11 Jul 2017 07:52:52 +0000 (09:52 +0200)] 
Merge pull request #5508 from rgacogne/dnsdist-dnscrypt-timestamps

dnsdist: Fix the DNSCrypt timestamps returned by the Lua bindings

6 years agorec: print records and sigs in negcache dump 5511/head
Pieter Lexis [Mon, 10 Jul 2017 12:24:00 +0000 (14:24 +0200)] 
rec: print records and sigs in negcache dump

6 years agorec: Show auth state recursor cache dump
Pieter Lexis [Mon, 10 Jul 2017 11:45:42 +0000 (13:45 +0200)] 
rec: Show auth state recursor cache dump

6 years agorec: Show validation state in recursor cache dump
Pieter Lexis [Mon, 10 Jul 2017 11:36:43 +0000 (13:36 +0200)] 
rec: Show validation state in recursor cache dump

6 years agorec: Dump RRSIGs from record cache
Pieter Lexis [Mon, 10 Jul 2017 11:29:49 +0000 (13:29 +0200)] 
rec: Dump RRSIGs from record cache

6 years agoShip ldapbackend schema files in tarball 5509/head
Christian Hofstaedtler [Mon, 10 Jul 2017 08:59:31 +0000 (10:59 +0200)] 
Ship ldapbackend schema files in tarball

6 years agodnsdist: Fix the DNSCrypt timestamps returned by the Lua bindings 5508/head
Remi Gacogne [Sun, 9 Jul 2017 10:29:08 +0000 (12:29 +0200)] 
dnsdist: Fix the DNSCrypt timestamps returned by the Lua bindings

I completely forgot that they were stored in network by-order.
Thanks to bjoe2k4 for reporting the issue!

6 years agogoraclebackend: Add missing query for last key insert id 5506/head
Aki Tuomi [Sat, 8 Jul 2017 17:28:21 +0000 (20:28 +0300)] 
goraclebackend: Add missing query for last key insert id

Forgotten in 63de53119e80fa93c6374f0db0c4cd5b2712f37c

6 years agodnsdist: Clarify that NetmaskGroupRule can match the destination 5504/head
Remi Gacogne [Fri, 7 Jul 2017 15:00:29 +0000 (17:00 +0200)] 
dnsdist: Clarify that NetmaskGroupRule can match the destination

6 years agoMerge pull request #5353 from rgacogne/dnsdist-statnode-labels
Remi Gacogne [Fri, 7 Jul 2017 15:05:45 +0000 (17:05 +0200)] 
Merge pull request #5353 from rgacogne/dnsdist-statnode-labels

dnsdist: Add labels count to StatNode, only set the name once

6 years agoMerge pull request #5490 from rgacogne/dnsdist-certificate-rotation
Remi Gacogne [Fri, 7 Jul 2017 15:04:42 +0000 (17:04 +0200)] 
Merge pull request #5490 from rgacogne/dnsdist-certificate-rotation

dnsdist: Add Lua bindings to be able to rotate `DNSCrypt` keys

6 years agoMerge pull request #5496 from rgacogne/dnsdist-lua-spoof-multi
Remi Gacogne [Fri, 7 Jul 2017 15:04:05 +0000 (17:04 +0200)] 
Merge pull request #5496 from rgacogne/dnsdist-lua-spoof-multi

dnsdist: Add support for returning several IPs to spoof from Lua

6 years agoMerge pull request #5497 from rgacogne/dnsdist-dnsrule-tostring
Remi Gacogne [Fri, 7 Jul 2017 15:03:15 +0000 (17:03 +0200)] 
Merge pull request #5497 from rgacogne/dnsdist-dnsrule-tostring

dnsdist: Add `DNSRule::toString()`, fix dtors for rules and actions

6 years agoMerge pull request #5502 from rgacogne/luawrapper-dont-move-sharedptr
Remi Gacogne [Fri, 7 Jul 2017 15:02:13 +0000 (17:02 +0200)] 
Merge pull request #5502 from rgacogne/luawrapper-dont-move-sharedptr

LuaWrapper: Don't move the content of vectors, maps and unordered_maps

6 years agodocs: Note that experimental-lua-policy-script has been dropped 5468/head
Aki Tuomi [Fri, 7 Jul 2017 09:53:19 +0000 (12:53 +0300)] 
docs: Note that experimental-lua-policy-script has been dropped

6 years agodocs: Drop unused documentation
Aki Tuomi [Tue, 27 Jun 2017 04:43:21 +0000 (07:43 +0300)] 
docs: Drop unused documentation

This never was actually used anywhere, so it's
safe to drop.

6 years agoMerge pull request #5493 from pieterlexis/disable-snmp-stretch
Peter van Dijk [Fri, 7 Jul 2017 09:42:32 +0000 (11:42 +0200)] 
Merge pull request #5493 from pieterlexis/disable-snmp-stretch

Don't build with SNMP on Debian Stretch

6 years agoLuaWrapper: Don't move the content of vectors, maps and unordered_maps 5502/head
Remi Gacogne [Fri, 7 Jul 2017 08:27:07 +0000 (10:27 +0200)] 
LuaWrapper: Don't move the content of vectors, maps and unordered_maps

They might hold shared pointers, and moving them cause the source
to become empty.

luawrapper f9c686e2fa3ad5cf5593265dda491239e32e2955

6 years agolua-auth: Remove police and policycmd
Aki Tuomi [Tue, 27 Jun 2017 04:42:58 +0000 (07:42 +0300)] 
lua-auth: Remove police and policycmd

6 years agoRemove Lua Policy Engine calls from code
Aki Tuomi [Tue, 27 Jun 2017 04:42:46 +0000 (07:42 +0300)] 
Remove Lua Policy Engine calls from code

6 years agoRemove Lua Policy Engine tests
Aki Tuomi [Tue, 27 Jun 2017 04:42:32 +0000 (07:42 +0300)] 
Remove Lua Policy Engine tests

6 years agoMerge pull request #5487 from rgacogne/rec-fix-socket-per-thread
bert hubert [Thu, 6 Jul 2017 23:35:59 +0000 (01:35 +0200)] 
Merge pull request #5487 from rgacogne/rec-fix-socket-per-thread

rec: Fix all work threads listening on all 'per thread' sockets

6 years agoMerge pull request #5488 from rgacogne/fix-no-packet-error
bert hubert [Thu, 6 Jul 2017 23:35:08 +0000 (01:35 +0200)] 
Merge pull request #5488 from rgacogne/fix-no-packet-error

rec: Only increase `no-packet-error` on the first read

6 years agoMerge pull request #5501 from rgacogne/dnsdist-tcp-short-writes
bert hubert [Thu, 6 Jul 2017 23:34:07 +0000 (01:34 +0200)] 
Merge pull request #5501 from rgacogne/dnsdist-tcp-short-writes

dnsdist: Fix TCP short writes handling

6 years agodnsdist: Fix TCP short writes handling 5501/head
Remi Gacogne [Thu, 6 Jul 2017 22:11:49 +0000 (00:11 +0200)] 
dnsdist: Fix TCP short writes handling

6 years agoMerge pull request #5245 from rgacogne/auth-sql-connection-reset
Peter van Dijk [Thu, 6 Jul 2017 19:31:51 +0000 (21:31 +0200)] 
Merge pull request #5245 from rgacogne/auth-sql-connection-reset

auth: Reconnect to the server if the My/Pg connection has been closed

6 years agoMerge pull request #5492 from Habbie/rec-4.0.6-changelog
Peter van Dijk [Thu, 6 Jul 2017 08:50:48 +0000 (10:50 +0200)] 
Merge pull request #5492 from Habbie/rec-4.0.6-changelog

changelog+secpoll for recursor 4.0.6

6 years agodnsdist: Add support for returning several IPs to spoof from Lua 5496/head
Remi Gacogne [Wed, 5 Jul 2017 15:49:42 +0000 (17:49 +0200)] 
dnsdist: Add support for returning several IPs to spoof from Lua

6 years agodnsdist: Add virtual dtors for DNSRule, DNSAction and DNSResponseAction 5497/head
Remi Gacogne [Tue, 28 Mar 2017 07:48:54 +0000 (09:48 +0200)] 
dnsdist: Add virtual dtors for DNSRule, DNSAction and DNSResponseAction

6 years agodnsdist: Add `DNSRule::toString()` Lua binding
Remi Gacogne [Tue, 28 Mar 2017 07:47:49 +0000 (09:47 +0200)] 
dnsdist: Add `DNSRule::toString()` Lua binding

6 years agochangelog+secpoll for recursor 4.0.6 5492/head
Peter van Dijk [Tue, 4 Jul 2017 13:37:32 +0000 (15:37 +0200)] 
changelog+secpoll for recursor 4.0.6

6 years agorec: Add a test for multiple libcrypto linking 5493/head
Pieter Lexis [Tue, 4 Jul 2017 14:13:07 +0000 (16:13 +0200)] 
rec: Add a test for multiple libcrypto linking

6 years agoDon't build with SNMP on Debian Stretch
Pieter Lexis [Tue, 4 Jul 2017 12:55:53 +0000 (14:55 +0200)] 
Don't build with SNMP on Debian Stretch

As net snmp is linked to OpenSSL 1.0 and we link against 1.1, users get
'interesting' crashes.

6 years agoMerge pull request #5466 from zeha/rec-ws-exception
Pieter Lexis [Tue, 4 Jul 2017 09:16:12 +0000 (11:16 +0200)] 
Merge pull request #5466 from zeha/rec-ws-exception

API: Clean up auth/recursor code mismatches

6 years agoMerge pull request #5483 from rgacogne/rec-ecs-cache-scope-test
Pieter Lexis [Tue, 4 Jul 2017 09:15:57 +0000 (11:15 +0200)] 
Merge pull request #5483 from rgacogne/rec-ecs-cache-scope-test

rec: Add ECS scope handling by the cache to our regression tests

6 years agoMerge pull request #5484 from rgacogne/rec-ecs-update-validation-state
Pieter Lexis [Tue, 4 Jul 2017 09:15:46 +0000 (11:15 +0200)] 
Merge pull request #5484 from rgacogne/rec-ecs-update-validation-state

rec: Use ECS when updating the validation state if needed

6 years agoMerge pull request #5486 from rgacogne/rec-dnssec-skipped-sec-to-insec
Pieter Lexis [Tue, 4 Jul 2017 09:15:19 +0000 (11:15 +0200)] 
Merge pull request #5486 from rgacogne/rec-dnssec-skipped-sec-to-insec

rec: Handle Secure to Insecure cut on the same auth servers

6 years agodnsdist: Add Lua bindings to be able to rotate `DNSCrypt` keys 5490/head
Remi Gacogne [Mon, 3 Jul 2017 18:42:17 +0000 (20:42 +0200)] 
dnsdist: Add Lua bindings to be able to rotate `DNSCrypt` keys

6 years agorec: Only increase `no-packet-error` on the first read 5488/head
Remi Gacogne [Mon, 3 Jul 2017 11:04:58 +0000 (13:04 +0200)] 
rec: Only increase `no-packet-error` on the first read

We try to read as many messages as possible after being woken up,
but only the first read can count as a no-packet error.

6 years agorec: Fix all work threads listening on all 'per thread' sockets 5487/head
Remi Gacogne [Mon, 3 Jul 2017 10:59:33 +0000 (12:59 +0200)] 
rec: Fix all work threads listening on all 'per thread' sockets

6 years agorec: Handle Secure to Insecure cut on the same auth servers 5486/head
Remi Gacogne [Mon, 3 Jul 2017 09:16:51 +0000 (11:16 +0200)] 
rec: Handle Secure to Insecure cut on the same auth servers

Meaning the NS answer for the Insecure zone won't be signed and
won't have a DS denial. We will pick that up with the following
DS query, but we need to make sure the NS answer isn't considered
Bogus even though it's not signed.

6 years agorec: Fix invalid test for Secure to Insecure on the same auth servers
Remi Gacogne [Mon, 3 Jul 2017 08:56:19 +0000 (10:56 +0200)] 
rec: Fix invalid test for Secure to Insecure on the same auth servers

The answer for the NS of the insecure sub-zone have neither RRSIG nor
secure DS denial.

6 years agorec: Use ECS when updating the validation state if needed 5484/head
Remi Gacogne [Sat, 1 Jul 2017 22:12:05 +0000 (00:12 +0200)] 
rec: Use ECS when updating the validation state if needed

If `use-incoming-ecs` is set and an actual ECS value was received.

6 years agorec: Add ECS scope handling by the cache in our regression tests 5483/head
Remi Gacogne [Fri, 30 Jun 2017 18:27:50 +0000 (20:27 +0200)] 
rec: Add ECS scope handling by the cache in our regression tests

6 years agoMerge pull request #5477 from rgacogne/rec-ecs-tests
bert hubert [Thu, 29 Jun 2017 18:54:33 +0000 (20:54 +0200)] 
Merge pull request #5477 from rgacogne/rec-ecs-tests

rec: Add ECS regression tests

6 years agoMerge pull request #5476 from rgacogne/rec-ixfr-fix
bert hubert [Thu, 29 Jun 2017 18:54:14 +0000 (20:54 +0200)] 
Merge pull request #5476 from rgacogne/rec-ixfr-fix

rec: Fix IXFR skipping the additions part of the last sequence

6 years agorec: Add ECS regression tests 5477/head
Remi Gacogne [Thu, 29 Jun 2017 17:33:53 +0000 (19:33 +0200)] 
rec: Add ECS regression tests

6 years agorec: Add IXFR unit tests 5476/head
Remi Gacogne [Thu, 29 Jun 2017 13:29:40 +0000 (15:29 +0200)] 
rec: Add IXFR unit tests

6 years agoMerge pull request #5409 from ahupowerdns/ecs-stats
bert hubert [Thu, 29 Jun 2017 14:18:05 +0000 (16:18 +0200)] 
Merge pull request #5409 from ahupowerdns/ecs-stats

Ecs stats: some fun metrics. Documentation has been submitted separately to @pieterlexis

6 years agorec: Fix IXFR skipping the additions part of the last sequence
Remi Gacogne [Wed, 28 Jun 2017 16:26:33 +0000 (18:26 +0200)] 
rec: Fix IXFR skipping the additions part of the last sequence

Under certain conditions, we could have skipped the additions part
of the last `IXFR` sequence, because we stopped processing records
after seeing a `SOA` record with the new serial. However, as stated
in rfc1995's "Response format" section:

"the first RR of the added RRs is the newer SOA RR"

6 years agoadd some ECS metrics (UNDOCUMENTED) 5409/head
bert hubert [Thu, 15 Jun 2017 01:15:40 +0000 (03:15 +0200)] 
add some ECS metrics (UNDOCUMENTED)

6 years agoMerge pull request #5472 from rgacogne/rec-ecs-index-comment
bert hubert [Wed, 28 Jun 2017 13:22:35 +0000 (15:22 +0200)] 
Merge pull request #5472 from rgacogne/rec-ecs-index-comment

rec: Rename the ECS cache index and add a comment on how it works

6 years agorec: Initialize MemRecursorCache::d_state in the ctor 5472/head
Remi Gacogne [Wed, 28 Jun 2017 08:57:49 +0000 (10:57 +0200)] 
rec: Initialize MemRecursorCache::d_state in the ctor

It's always set in `MemRecursorCache::replace()`, which should be the
only place where we insert new values, but the explicit init makes
Coverity happy.

6 years agoMerge pull request #5470 from stasic/patch-4
Pieter Lexis [Wed, 28 Jun 2017 06:57:27 +0000 (08:57 +0200)] 
Merge pull request #5470 from stasic/patch-4

rec: changed IPv6 addr of b.root-servers.net

6 years agorec: Rename the ECS cache index and add a comment on how it works
Remi Gacogne [Tue, 27 Jun 2017 20:32:50 +0000 (22:32 +0200)] 
rec: Rename the ECS cache index and add a comment on how it works

6 years agoMerge pull request #5403 from rgacogne/rec-incoming-ecs-cache
bert hubert [Tue, 27 Jun 2017 15:41:32 +0000 (17:41 +0200)] 
Merge pull request #5403 from rgacogne/rec-incoming-ecs-cache

rec: Use the incoming ECS for cache lookup if `use-incoming-edns-subnet` is set

6 years agoMerge pull request #5461 from rgacogne/rec-cache-index
bert hubert [Tue, 27 Jun 2017 14:18:51 +0000 (16:18 +0200)] 
Merge pull request #5461 from rgacogne/rec-cache-index

rec: Add an ECS index to the cache

6 years agorec: Use the incoming ECS for cache lookup if `use-incoming-edns-subnet` is set 5403/head
Remi Gacogne [Wed, 14 Jun 2017 11:31:18 +0000 (13:31 +0200)] 
rec: Use the incoming ECS for cache lookup if `use-incoming-edns-subnet` is set

Otherwise we insert into the cache based on the incoming ECS but
later do the lookup based on the query's source IP.

6 years agorec: Add unit tests for the cache removal queue (back/front) 5461/head
Remi Gacogne [Tue, 27 Jun 2017 11:08:43 +0000 (13:08 +0200)] 
rec: Add unit tests for the cache removal queue (back/front)

(cherry picked from commit 7e6f71937f0ac7678b81013da7538ca1e65d779a)

6 years agoRemove just enough entries from the cache, not one more than asked
Remi Gacogne [Tue, 20 Jun 2017 15:09:56 +0000 (17:09 +0200)] 
Remove just enough entries from the cache, not one more than asked

(cherry picked from commit f3cb7c78abe3ad639d4583880ae9302b3be99a9e)

6 years agorec: Add a NetmaskTree-based cache index for ECS entries
Remi Gacogne [Mon, 19 Jun 2017 10:51:39 +0000 (12:51 +0200)] 
rec: Add a NetmaskTree-based cache index for ECS entries

The main idea is not to have to go through all the netmask-specific
entries for a given (qname/qtype), but to have to know quickly which
netmask-specific entry is the best match.
To do that we add an index containing a NetmaskTree for each
(qname,qtype), and we then know quickly which entry to get from the
"regular" cache.

Initial benchmarking results:
 - inserting non-netmask-specific entries has the same performance ;
 - inserting netmask-specific entries is 40% slower because of the additional insertion ;
 - looking for a (qname/qtype) that has no netmask-specific entries remains the same ;
 - looking for (qname/qtype) with 65k netmask-specific entries but only matching the non-netmask one is around 2000 times faster ;
 - looking for (qname/qtype) with 65k netmask-specific entries and matching one is also around 2000 times faster ;
 - pruning the cache is a lot slower (from 11 millions/s to 1.8 millions/s)

Remaining issues:
 - ANY queries do not use the index ;
 - we have to do two lookups
 - removal is slower, but might still be good enough
 - NetmaskTree.erase() does not compact the tree.

Ideas that didn't seem to work out:
 - Storing a pointer of some kind in the NetmaskTree to save a lookup:
   caused issues with our generic cache management functions (moving
   entries to the front or to the back requires an iterator)
 - Keeping the NMT index in the empty Netmak entry (the non-netmask
   specific one) save the additional lookup when we have no ECS
   entries, but made cache management very awkward because we needed
   to keep the non-netmask specific entry around as a place holder
   for the ECS index even if it held no data.

6 years agorec: changed IPv6 addr of b.root-servers.net 5470/head
Arsen Stasic [Tue, 27 Jun 2017 11:02:53 +0000 (13:02 +0200)] 
rec: changed IPv6 addr of b.root-servers.net

http://www.internic.net/domain/db.cache
last update:    June 01, 2017
is effective since 2017-06-01

6 years agoMerge pull request #5381 from kevinquinnyo/docs-queries-issue
Pieter Lexis [Tue, 27 Jun 2017 10:07:12 +0000 (12:07 +0200)] 
Merge pull request #5381 from kevinquinnyo/docs-queries-issue

Fix query in howtos.md doc

6 years agoMerge pull request #5454 from rgacogne/dnsdist-tcp-fastopen-not-available
Pieter Lexis [Tue, 27 Jun 2017 10:06:29 +0000 (12:06 +0200)] 
Merge pull request #5454 from rgacogne/dnsdist-tcp-fastopen-not-available

dnsdist: Fix TCP with Fast Open requested but unsupported

6 years agoMerge pull request #5464 from rgacogne/logging-snmp
Pieter Lexis [Tue, 27 Jun 2017 10:05:25 +0000 (12:05 +0200)] 
Merge pull request #5464 from rgacogne/logging-snmp

Mention the recursor's SNMP support in logging.md