]> granicus.if.org Git - pdns/log
pdns
8 years agoMove DNSSEC regression tests to 127.0.0.X
Pieter Lexis [Mon, 29 Aug 2016 12:30:04 +0000 (14:30 +0200)]
Move DNSSEC regression tests to 127.0.0.X

8 years agoDNSSEC: Document interaction with forward-zones
Pieter Lexis [Mon, 29 Aug 2016 12:13:37 +0000 (14:13 +0200)]
DNSSEC: Document interaction with forward-zones

8 years agoMake the negcache forwarded zones aware
Pieter Lexis [Mon, 29 Aug 2016 09:05:17 +0000 (11:05 +0200)]
Make the negcache forwarded zones aware

Because of DNSSEC (without NTAs configured), we 'leak' the forwarded
name to the cache when looking for the DNSKEY. This resulted in NXDOMAIN
answers for actual NXDOMAINs, but with the root SOA record. Leading to
inconsistent answers to the client.

8 years agoAdd tests for #4483
Pieter Lexis [Fri, 30 Sep 2016 11:21:01 +0000 (13:21 +0200)]
Add tests for #4483

8 years agorec tests: create controlsocket dirs idempotently
Pieter Lexis [Fri, 30 Sep 2016 11:20:15 +0000 (13:20 +0200)]
rec tests: create controlsocket dirs idempotently

8 years agoFix the fields in two debug lines
Pieter Lexis [Fri, 30 Sep 2016 11:19:18 +0000 (13:19 +0200)]
Fix the fields in two debug lines

8 years agoCache records for zones that were delegated to from a forwarded zone
Pieter Lexis [Fri, 30 Sep 2016 11:18:43 +0000 (13:18 +0200)]
Cache records for zones that were delegated to from a forwarded zone

Fixes #4483

8 years agoMerge pull request #4512 from rgacogne/backport-4440
Pieter Lexis [Wed, 28 Sep 2016 11:39:47 +0000 (13:39 +0200)]
Merge pull request #4512 from rgacogne/backport-4440

Backport #4440: Fix Lua-enabled compilation on OS X and FreeBSD

8 years agorec: Fix Lua-enabled compilation on OS X and FreeBSD
Remi Gacogne [Thu, 8 Sep 2016 08:34:45 +0000 (10:34 +0200)]
rec: Fix Lua-enabled compilation on OS X and FreeBSD

(cherry picked from commit 546d1fbf9efe8a4ba81c92d43bc43be457e60713)

8 years agoMerge pull request #4511 from rgacogne/backport-4499
Peter van Dijk [Tue, 27 Sep 2016 11:52:58 +0000 (13:52 +0200)]
Merge pull request #4511 from rgacogne/backport-4499

Backport #4499: Add support for boost::context >= 1.61

8 years agorec: Always test if BOOST_VERSION is < 1.61, not >, for readability
Remi Gacogne [Fri, 23 Sep 2016 14:58:05 +0000 (16:58 +0200)]
rec: Always test if BOOST_VERSION is < 1.61, not >, for readability

(cherry picked from commit 64413f6afd9b3dfeb1bef158f48bb3be496a4e04)

8 years agorec: Add support for boost::context >= 1.61
Remi Gacogne [Fri, 23 Sep 2016 14:08:15 +0000 (16:08 +0200)]
rec: Add support for boost::context >= 1.61

(cherry picked from commit f53de853d71bd1c058b507549d35312f9fa4847f)

8 years agoMerge pull request #4462 from pieterlexis/backport-4461
Pieter Lexis [Tue, 13 Sep 2016 10:49:17 +0000 (12:49 +0200)]
Merge pull request #4462 from pieterlexis/backport-4461

Backport #4461: Fall back to SystemV ucontexts on boost >= 1.61

8 years agoRec: Disable boost-fcontext on boost 1.61 and up
Pieter Lexis [Mon, 12 Sep 2016 11:51:27 +0000 (13:51 +0200)]
Rec: Disable boost-fcontext on boost 1.61 and up

Fall back to the slower system v ucontext.

(cherry picked from commit cb51346bbd4ea54bc86966e80aa68c990c03dbce)

8 years agoRevert "Rec: support boost's fcontext in boost 1.61+"
Pieter Lexis [Mon, 12 Sep 2016 11:48:47 +0000 (13:48 +0200)]
Revert "Rec: support boost's fcontext in boost 1.61+"

This reverts commit a30361f9f07cb3c4f9ad32dc83555bc593aa3311.

(cherry picked from commit f103e371bd83381feb11dba742843484bf8e95f2)

8 years agoMerge pull request #4426 from pieterlexis/backport-4425 rec-4.0.3
Pieter Lexis [Tue, 6 Sep 2016 11:57:54 +0000 (13:57 +0200)]
Merge pull request #4426 from pieterlexis/backport-4425

Backport #4425: Fix a protobuf regression (requestor/responder mix-up) caused by a94673e

8 years agoFix a protobuf regression (requestor/responder mix-up) caused by a94673e
Remi Gacogne [Mon, 5 Sep 2016 15:49:15 +0000 (17:49 +0200)]
Fix a protobuf regression (requestor/responder mix-up) caused by a94673e

(cherry picked from commit b3261c205742fcb0494735d20294d10a615cd10f)

8 years agoMerge pull request #4422 from pieterlexis/rec-backport-4403
Pieter Lexis [Mon, 5 Sep 2016 13:48:22 +0000 (15:48 +0200)]
Merge pull request #4422 from pieterlexis/rec-backport-4403

Backport #4403: (rec) Fix build with OpenSSL 1.1.0 final

8 years agoMerge pull request #4420 from pieterlexis/backport-4396
Pieter Lexis [Mon, 5 Sep 2016 13:48:16 +0000 (15:48 +0200)]
Merge pull request #4420 from pieterlexis/backport-4396

Backport #4396: add boost context ldflags so freebsd builds can find the libs

8 years agoMerge pull request #4419 from pieterlexis/backport-4381
Pieter Lexis [Mon, 5 Sep 2016 13:48:10 +0000 (15:48 +0200)]
Merge pull request #4419 from pieterlexis/backport-4381

Backport #4381: Parse query-local-address before lua-config-file

8 years agoMerge pull request #4418 from pieterlexis/backport-4383
Pieter Lexis [Mon, 5 Sep 2016 13:48:05 +0000 (15:48 +0200)]
Merge pull request #4418 from pieterlexis/backport-4383

Backport #4383: Fix accessing an empty policyCustom, policyName from Lua

8 years agoMerge pull request #4417 from pieterlexis/backport-4385
Pieter Lexis [Mon, 5 Sep 2016 13:47:59 +0000 (15:47 +0200)]
Merge pull request #4417 from pieterlexis/backport-4385

Backport #4385: Add Lua binding for DNSRecord::d_place

8 years agoMerge pull request #4416 from pieterlexis/backport-4402
Pieter Lexis [Mon, 5 Sep 2016 13:47:52 +0000 (15:47 +0200)]
Merge pull request #4416 from pieterlexis/backport-4402

Backport #4402: Ignore NS records in a RPZ zone received over IXFR

8 years agoMerge pull request #4415 from pieterlexis/backport-4404
Pieter Lexis [Mon, 5 Sep 2016 13:47:46 +0000 (15:47 +0200)]
Merge pull request #4415 from pieterlexis/backport-4404

Backport #4404: Don't validate when a Lua hook took the query

8 years agoMerge pull request #4414 from pieterlexis/backport-4394
Pieter Lexis [Mon, 5 Sep 2016 13:47:39 +0000 (15:47 +0200)]
Merge pull request #4414 from pieterlexis/backport-4394

Backport #4394: Support Boost 1.61+ fcontext

8 years agoMerge pull request #4413 from pieterlexis/backport-4391
Pieter Lexis [Mon, 5 Sep 2016 13:47:32 +0000 (15:47 +0200)]
Merge pull request #4413 from pieterlexis/backport-4391

Backport #4391: DNSSEC: Actually follow RFC 7646 §2.1

8 years agoMerge pull request #4412 from pieterlexis/backport-4388
Pieter Lexis [Mon, 5 Sep 2016 13:47:23 +0000 (15:47 +0200)]
Merge pull request #4412 from pieterlexis/backport-4388

Backport #4388: Fix RPZ default policy not being applied over IXFR

8 years agoBump version requirement for CRYPTO_ctr128_encrypt
Christian Hofstaedtler [Fri, 2 Sep 2016 19:55:52 +0000 (21:55 +0200)]
Bump version requirement for CRYPTO_ctr128_encrypt

While CRYPTO_ctr128_encrypt should be available in 1.0.1,
apparently in some library builds (Ubuntu) one can not link
against it.

(cherry picked from commit 3e4b01664660f1a8d9564508843a7e51b8f7549e)

8 years agoFix build with OpenSSL 1.1.0 final
Christian Hofstaedtler [Fri, 2 Sep 2016 12:06:35 +0000 (12:06 +0000)]
Fix build with OpenSSL 1.1.0 final

Where aes.h apparently no longer includes opensslv.h.

(cherry picked from commit e6fc073faf3b1d9b4da301821da40dff33186057)

8 years agoadd boost context ldflags so freebsd builds can find the libs
Peter van Dijk [Thu, 1 Sep 2016 16:20:06 +0000 (18:20 +0200)]
add boost context ldflags so freebsd builds can find the libs

(cherry picked from commit 01f097e45a286355c93da0acf78756e59ad9c126)

8 years agoParse query-local-address before lua-config-file
Pieter Lexis [Tue, 30 Aug 2016 09:09:38 +0000 (11:09 +0200)]
Parse query-local-address before lua-config-file

@42wim discovered that the query-local-address was not used for the
initial RPZ AXFR. However, it was used in subsequent IXFRs. It appears
that we executed the lua-config-file before checking the
query-local-address(6).

(cherry picked from commit b7ef582884c603ea45e602c3e42f254cf869d2d7)

8 years agorec: Fix accessing an empty policyCustom, policyName from Lua
Remi Gacogne [Tue, 30 Aug 2016 13:27:00 +0000 (15:27 +0200)]
rec: Fix accessing an empty policyCustom, policyName from Lua

Reported by @42wim (thanks!).

(cherry picked from commit 98c28a684f92c052bd7fb2e4a0eb0b831ac563de)

8 years agorec: Add Lua binding for DNSRecord::d_place
Remi Gacogne [Wed, 31 Aug 2016 07:54:08 +0000 (09:54 +0200)]
rec: Add Lua binding for DNSRecord::d_place

Also document the members and methods of the DNS Record object.

(cherry picked from commit 57d0c73b877406e63bbe629ce813cccc49b8cd01)

8 years agorec: Fix RPZ default policy not being applied over IXFR
Remi Gacogne [Wed, 31 Aug 2016 15:55:51 +0000 (17:55 +0200)]
rec: Fix RPZ default policy not being applied over IXFR

Reported by @42wim (thanks!).

(cherry picked from commit 9db6ece12afdc5703220539a8d3bde4499a2dbff)

8 years agoAdd test for NTA at level of TA
Pieter Lexis [Thu, 1 Sep 2016 09:23:35 +0000 (11:23 +0200)]
Add test for NTA at level of TA

(cherry picked from commit b91735683ae7d4c5f5fe3a4d84fd99db862be6f5)

8 years agoDNSSEC: Actually follow RFC 7646 §2.1
Pieter Lexis [Thu, 1 Sep 2016 09:04:05 +0000 (11:04 +0200)]
DNSSEC: Actually follow RFC 7646 §2.1

We were off by one when counting labels, so when an NTA was added for a
name where a TA was configured, we would still attempt validation.

Reported by @jpmens

(cherry picked from commit f418a272a9b031ea1eddf031548a16e23a35bd82)

8 years agoRec: show context lib in configure output
Pieter Lexis [Thu, 1 Sep 2016 10:35:31 +0000 (12:35 +0200)]
Rec: show context lib in configure output

(cherry picked from commit 0079fda22e9f8b32e5f6727d023d0b421e5ac1e3)

8 years agoRec: support boost's fcontext in boost 1.61+
Pieter Lexis [Wed, 31 Aug 2016 14:22:57 +0000 (16:22 +0200)]
Rec: support boost's fcontext in boost 1.61+

(cherry picked from commit a30361f9f07cb3c4f9ad32dc83555bc593aa3311)

8 years agoRec: Don't validate when a Lua hook took the query
Pieter Lexis [Fri, 2 Sep 2016 11:49:27 +0000 (13:49 +0200)]
Rec: Don't validate when a Lua hook took the query

This was in place for prequery, but not for nodata and the others.
Thanks to @ZaphodB for the report.

Fixes #4397

(cherry picked from commit 3ca4e7351e75e602644eb5504246f7ba446b6b73)

8 years agorec: Ignore NS records in a RPZ zone received over IXFR
Remi Gacogne [Fri, 2 Sep 2016 07:57:54 +0000 (09:57 +0200)]
rec: Ignore NS records in a RPZ zone received over IXFR

They are already ignored over AXFR, but not over IXFR.
Reported and based on a patch by @42wim (thanks!).

(cherry picked from commit ed8c725224b5192367149897cfaaaf188ab0b910)

8 years agoMerge pull request #4393 from rgacogne/dnsdist-110-beta-changelog
Pieter Lexis [Thu, 1 Sep 2016 12:48:31 +0000 (14:48 +0200)]
Merge pull request #4393 from rgacogne/dnsdist-110-beta-changelog

dnsdist: Update ChangeLog for 1.1.0-beta1

8 years agodnsdist: Update ChangeLog for 1.1.0-beta1
Remi Gacogne [Thu, 1 Sep 2016 12:34:46 +0000 (14:34 +0200)]
dnsdist: Update ChangeLog for 1.1.0-beta1

8 years agoMerge pull request #4346 from mind04/anytotcp dnsdist-1.1.0-beta1
Pieter Lexis [Thu, 1 Sep 2016 09:38:03 +0000 (11:38 +0200)]
Merge pull request #4346 from mind04/anytotcp

change default for any-to-tcp to yes

8 years agoMerge pull request #4305 from rgacogne/dnsdist-lua-anon
bert hubert [Wed, 31 Aug 2016 14:48:04 +0000 (16:48 +0200)]
Merge pull request #4305 from rgacogne/dnsdist-lua-anon

dnsdist: Add an optional Lua callback for altering a Protobuf message

8 years agoMerge pull request #4350 from rgacogne/rec-tcp-gettag
bert hubert [Wed, 31 Aug 2016 14:44:05 +0000 (16:44 +0200)]
Merge pull request #4350 from rgacogne/rec-tcp-gettag

rec: Call `gettag()` for TCP queries

8 years agoMerge pull request #4380 from rgacogne/dnsdist-clang-ebpf
bert hubert [Wed, 31 Aug 2016 14:43:40 +0000 (16:43 +0200)]
Merge pull request #4380 from rgacogne/dnsdist-clang-ebpf

dnsdist: Fix compilation with clang when eBPF support is enabled

8 years agoMerge pull request #4387 from pieterlexis/port-overflow
bert hubert [Wed, 31 Aug 2016 14:42:49 +0000 (16:42 +0200)]
Merge pull request #4387 from pieterlexis/port-overflow

ComboAddress: don't allow invalid ports

8 years agoMerge pull request #4379 from sspans/patch-1
bert hubert [Wed, 31 Aug 2016 14:28:25 +0000 (16:28 +0200)]
Merge pull request #4379 from sspans/patch-1

Update notrack rules

8 years agoComboAddress: don't allow invalid ports
Pieter Lexis [Wed, 31 Aug 2016 13:30:30 +0000 (15:30 +0200)]
ComboAddress: don't allow invalid ports

Add tests for this.

Fixes: #4382
8 years agodnsdist: Fix warnings when compiling with clang
Remi Gacogne [Tue, 30 Aug 2016 08:41:07 +0000 (10:41 +0200)]
dnsdist: Fix warnings when compiling with clang

8 years agoremove hash signs
Sten Spans [Tue, 30 Aug 2016 06:51:04 +0000 (08:51 +0200)]
remove hash signs

As requested by @ahupowerdns, to make copy-pasting easier.

8 years agoUpdate notrack rules
Sten Spans [Tue, 30 Aug 2016 06:42:22 +0000 (08:42 +0200)]
Update notrack rules

* switch from NOTRACK to CT target (deprecated around 2012)
* add output accept for sport 53
* describe firewalld configuration for newer centos/fedora/redhat versions

```
Date: Thu, 20 Dec 2012 12:26:22 +0100
Subject: [PATCH] netfilter: xt_CT: recover NOTRACK target support

Florian Westphal reported that the removal of the NOTRACK target
(9655050 netfilter: remove xt_NOTRACK) is breaking some existing
setups.

That removal was scheduled for removal since long time ago as
described in Documentation/feature-removal-schedule.txt
```

https://patchwork.ozlabs.org/patch/207653/

8 years agodnsdist: Fix compilation with clang when eBPF is enabled
Remi Gacogne [Mon, 29 Aug 2016 15:54:03 +0000 (17:54 +0200)]
dnsdist: Fix compilation with clang when eBPF is enabled

8 years agoMerge pull request #4359 from pieterlexis/doc-fixes
Pieter Lexis [Mon, 29 Aug 2016 15:49:38 +0000 (17:49 +0200)]
Merge pull request #4359 from pieterlexis/doc-fixes

Several documentation fixes

8 years agoMerge pull request #4368 from rgacogne/rec-more-lua-bindings
Pieter Lexis [Mon, 29 Aug 2016 15:49:29 +0000 (17:49 +0200)]
Merge pull request #4368 from rgacogne/rec-more-lua-bindings

rec: Fix doc for ComboAddress/Netmask Lua bindings, add missing ones

8 years agoMerge pull request #4376 from rgacogne/rec-uninit-policy
Pieter Lexis [Mon, 29 Aug 2016 15:49:21 +0000 (17:49 +0200)]
Merge pull request #4376 from rgacogne/rec-uninit-policy

rec: fix the use of an uninitialized filtering policy

8 years agoDocument config-dir in the manpage better
Pieter Lexis [Mon, 29 Aug 2016 13:09:53 +0000 (15:09 +0200)]
Document config-dir in the manpage better

Closes #4372

8 years agorec: document edns-subnet-whitelist
Pieter Lexis [Tue, 23 Aug 2016 15:50:27 +0000 (17:50 +0200)]
rec: document edns-subnet-whitelist

Closes #4275

8 years agoRec: Fully document loglevel
Pieter Lexis [Tue, 23 Aug 2016 15:42:27 +0000 (17:42 +0200)]
Rec: Fully document loglevel

closes #4209

8 years agorec: fix the use of an uninitialized filtering policy
Remi Gacogne [Mon, 29 Aug 2016 09:52:00 +0000 (11:52 +0200)]
rec: fix the use of an uninitialized filtering policy

If `wantsRPZ` is set to false by the `prerpz` hook, `dfepol` might
not be correctly initialized. This leads to `appliedPolicy` not being
either before being passed to `preresolve` and `postresolve`.

Reported by Coverity.

8 years agoMerge pull request #4365 from rgacogne/dnsdist-outstanding-race
Remi Gacogne [Mon, 29 Aug 2016 09:10:54 +0000 (11:10 +0200)]
Merge pull request #4365 from rgacogne/dnsdist-outstanding-race

dnsdist: Reset origFD asap to keep the outstanding count correct

8 years agoMerge pull request #4348 from rgacogne/dnsdist-outstanding-xfr
Remi Gacogne [Mon, 29 Aug 2016 09:10:23 +0000 (11:10 +0200)]
Merge pull request #4348 from rgacogne/dnsdist-outstanding-xfr

dnsdist: Fix invalid outstanding count for {A,I}XFR over TCP

8 years agoMerge pull request #4375 from rgacogne/dnsdist-dynbpf-tuple-rga
Remi Gacogne [Mon, 29 Aug 2016 09:07:02 +0000 (11:07 +0200)]
Merge pull request #4375 from rgacogne/dnsdist-dynbpf-tuple-rga

dnsdist: tuple requires make_tuple to initialize

8 years agodnsdist: tuple requires make_tuple to initialize
Remi Gacogne [Fri, 26 Aug 2016 15:52:48 +0000 (17:52 +0200)]
dnsdist: tuple requires make_tuple to initialize

Fix compilation on Ubuntu Xenial.
Reported by Christof Chen (thanks!).

8 years agoAdd recursor 4.0.2 secpoll
Pieter Lexis [Fri, 26 Aug 2016 13:23:09 +0000 (15:23 +0200)]
Add recursor 4.0.2 secpoll

Thanks @zaphodb for noticing

8 years agoslightly improve 4.0.2 recursor release notes
bert hubert [Fri, 26 Aug 2016 10:30:05 +0000 (12:30 +0200)]
slightly improve 4.0.2 recursor release notes

8 years agoMerge pull request #4364 from pieterlexis/rec-4.0.2-changelog rec-4.0.2
Pieter Lexis [Fri, 26 Aug 2016 10:19:24 +0000 (12:19 +0200)]
Merge pull request #4364 from pieterlexis/rec-4.0.2-changelog

Add Recursor 4.0.2 changelog

8 years agoAdd Recursor 4.0.2 changelog
Pieter Lexis [Thu, 25 Aug 2016 09:54:29 +0000 (11:54 +0200)]
Add Recursor 4.0.2 changelog

8 years agodoc: Clarify `gettag()` use, `dq`'s `addPolicyTag()`, `{get,set}PolicyTags()`
Remi Gacogne [Mon, 22 Aug 2016 16:12:32 +0000 (18:12 +0200)]
doc: Clarify `gettag()` use, `dq`'s `addPolicyTag()`, `{get,set}PolicyTags()`

8 years agorec: Call `gettag()` for TCP queries
Remi Gacogne [Mon, 22 Aug 2016 14:15:12 +0000 (16:15 +0200)]
rec: Call `gettag()` for TCP queries

The `gettag()` hook used to be called to set a tag for the packet cache
and hence it did not make sense to call it for TCP queries, but now it
can also be used to policy tags.

8 years agorec: Fix doc for ComboAddress/Netmask Lua bindings, add missing ones
Remi Gacogne [Fri, 26 Aug 2016 10:06:17 +0000 (12:06 +0200)]
rec: Fix doc for ComboAddress/Netmask Lua bindings, add missing ones

8 years agoMerge pull request #4324 from rgacogne/lua-RPZ-discard-rebased
bert hubert [Fri, 26 Aug 2016 10:06:27 +0000 (12:06 +0200)]
Merge pull request #4324 from rgacogne/lua-RPZ-discard-rebased

Allow Lua access to the result of the Policy Engine decision, skip RPZ

8 years agoMerge pull request #3 from pieterlexis/lua-RPZ-discard-rebased-doc-update
Remi Gacogne [Fri, 26 Aug 2016 08:22:52 +0000 (10:22 +0200)]
Merge pull request #3 from pieterlexis/lua-RPZ-discard-rebased-doc-update

The return value for prerpz is unused

8 years agoThe return value for prerpz is unused
Pieter Lexis [Fri, 26 Aug 2016 08:16:38 +0000 (10:16 +0200)]
The return value for prerpz is unused

8 years agodnsdist: Add an optional Lua callback for altering a Protobuf message
Remi Gacogne [Fri, 26 Aug 2016 07:53:24 +0000 (09:53 +0200)]
dnsdist: Add an optional Lua callback for altering a Protobuf message

For anonymization purposes, for example.

8 years agorec: The prerpz hook didn't return anything when compiled w/o Lua
Remi Gacogne [Fri, 26 Aug 2016 07:50:01 +0000 (09:50 +0200)]
rec: The prerpz hook didn't return anything when compiled w/o Lua

8 years agodnsdist: Reset origFD asap to keep the outstanding count correct
Remi Gacogne [Thu, 25 Aug 2016 15:15:54 +0000 (17:15 +0200)]
dnsdist: Reset origFD asap to keep the outstanding count correct

Previously the health check thread waited until we had finished
with the IDState to set `origFD` to -1, but:
* for the UDP client thread, the only difference it makes is that
`outstanding` will not be incremented if `origFD` is not -1,
which is not what we want since we are going to decrement it
* for the UDP responder thread, it actually increases the
likelihood of decrementing `outstanding` twice, once in the
responder threader and once in the health check thread.

This was especially likely to be an issue because the health check
thread used to call `gettime()` and to acquire a mutex before
setting `origFD` to -1.

8 years agoMerge pull request #4360 from 42wim/systemd
Pieter Lexis [Thu, 25 Aug 2016 13:57:02 +0000 (15:57 +0200)]
Merge pull request #4360 from 42wim/systemd

Make sure mariadb (mysql on centos/rhel) is started before pdns

8 years agoMerge pull request #4356 from rgacogne/auth-nocachelookup-tsig
Pieter Lexis [Thu, 25 Aug 2016 13:56:52 +0000 (15:56 +0200)]
Merge pull request #4356 from rgacogne/auth-nocachelookup-tsig

auth: Don't look up the packet cache for TSIG-enabled queries

8 years agofix subtle bug in findNamedPolicy
Pieter Lexis [Tue, 23 Aug 2016 07:41:18 +0000 (09:41 +0200)]
fix subtle bug in findNamedPolicy

8 years agoRevert "Recursor: Always log EDNS clientsubnet in trace"
Remi Gacogne [Tue, 23 Aug 2016 07:14:36 +0000 (09:14 +0200)]
Revert "Recursor: Always log EDNS clientsubnet in trace"

This reverts commit 601b188c559fb9d58392bc2115ddd583225ee52c.

`dc->d_ednssubnet` is only available when protobuf support is enabled.

8 years agorec: Fix rec_control man page tests
Remi Gacogne [Tue, 16 Aug 2016 15:55:34 +0000 (17:55 +0200)]
rec: Fix rec_control man page tests

8 years agoFix counting of `rec_control help` elements and grep syntax
Remi Gacogne [Tue, 16 Aug 2016 15:35:40 +0000 (17:35 +0200)]
Fix counting of `rec_control help` elements and grep syntax

8 years agoRecursor config for the regression tests is still in configs
Remi Gacogne [Tue, 16 Aug 2016 14:27:18 +0000 (16:27 +0200)]
Recursor config for the regression tests is still in configs

8 years agoFix hardcoded prefix in auth-zone-delegation test
Remi Gacogne [Tue, 16 Aug 2016 10:00:17 +0000 (12:00 +0200)]
Fix hardcoded prefix in auth-zone-delegation test

8 years agoActually fail on failed recursor tests
Remi Gacogne [Mon, 15 Aug 2016 13:28:24 +0000 (15:28 +0200)]
Actually fail on failed recursor tests

8 years agoFix hardcoded prefix in lowercase-outgoing test
Remi Gacogne [Mon, 15 Aug 2016 12:48:34 +0000 (14:48 +0200)]
Fix hardcoded prefix in lowercase-outgoing test

8 years agorecursor regression tests: have the socket live in /tmp
Pieter Lexis [Mon, 15 Aug 2016 09:32:41 +0000 (11:32 +0200)]
recursor regression tests: have the socket live in /tmp

8 years agoRecursor tests: we use bashisms now
Pieter Lexis [Mon, 15 Aug 2016 09:29:11 +0000 (11:29 +0200)]
Recursor tests: we use bashisms now

8 years agoRecursor tests: Fail on failed tests
Pieter Lexis [Mon, 15 Aug 2016 09:28:43 +0000 (11:28 +0200)]
Recursor tests: Fail on failed tests

8 years agoAdd regression tests for prerpz
Remi Gacogne [Mon, 15 Aug 2016 08:51:00 +0000 (10:51 +0200)]
Add regression tests for prerpz

8 years agoAdd documentation for the `prerpz` hook
Remi Gacogne [Mon, 15 Aug 2016 08:15:17 +0000 (10:15 +0200)]
Add documentation for the `prerpz` hook

8 years ago`protobufLogQuery()` never actually gets an applied policy
Remi Gacogne [Mon, 15 Aug 2016 08:01:45 +0000 (10:01 +0200)]
`protobufLogQuery()` never actually gets an applied policy

8 years agoMinor indentation fixes in `loadRecursorLuaConfig()`
Remi Gacogne [Mon, 15 Aug 2016 07:35:10 +0000 (09:35 +0200)]
Minor indentation fixes in `loadRecursorLuaConfig()`

8 years agorec: Add a 'prerpz' hook to be able to discard selected RPZ policies
Remi Gacogne [Fri, 12 Aug 2016 16:35:08 +0000 (18:35 +0200)]
rec: Add a 'prerpz' hook to be able to discard selected RPZ policies

8 years agoRPZ: Tests for wantsRPZ override, NSDNAME and NSIP
Pieter Lexis [Wed, 27 Jul 2016 21:03:20 +0000 (23:03 +0200)]
RPZ: Tests for wantsRPZ override, NSDNAME and NSIP

8 years agoRPZ: Implement NSDNAME and NSIP RPZ capabilities
Pieter Lexis [Wed, 27 Jul 2016 20:34:08 +0000 (22:34 +0200)]
RPZ: Implement NSDNAME and NSIP RPZ capabilities

Closes #2897

This also adds an extra bool 'wantsRPZ' to the Lua engine so RPZ
processing can be disabled for queries (Closes #4226).

Furthermore, IPv6 for RPZ is implemented.

8 years agoRPZ: Add metrics for the Policy Engine
Pieter Lexis [Wed, 27 Jul 2016 13:11:37 +0000 (15:11 +0200)]
RPZ: Add metrics for the Policy Engine

Closes #2895

8 years agoRPZ tests: add test for #4086
Pieter Lexis [Wed, 27 Jul 2016 10:44:09 +0000 (12:44 +0200)]
RPZ tests: add test for #4086

8 years agoAdd RPZ lua tests
Pieter Lexis [Tue, 26 Jul 2016 13:54:38 +0000 (15:54 +0200)]
Add RPZ lua tests