]> granicus.if.org Git - pdns/log
pdns
7 years agoMerge pull request #5101 from rgacogne/cppcheck-rec-auth
Peter van Dijk [Tue, 7 Mar 2017 14:29:07 +0000 (15:29 +0100)]
Merge pull request #5101 from rgacogne/cppcheck-rec-auth

Fix minor issues reported by `cppcheck`

7 years agoMerge pull request #5120 from rgacogne/auth-reuseport-setuid
Peter van Dijk [Tue, 7 Mar 2017 14:26:18 +0000 (15:26 +0100)]
Merge pull request #5120 from rgacogne/auth-reuseport-setuid

auth: Create additional `reuseport` sockets before dropping privileges

7 years agoMerge pull request #5105 from rgacogne/auth-tinydns-leak
Peter van Dijk [Tue, 7 Mar 2017 14:09:42 +0000 (15:09 +0100)]
Merge pull request #5105 from rgacogne/auth-tinydns-leak

auth: Don't leak a CDB object in case of bogus data

7 years agoMerge pull request #5116 from ahupowerdns/web-auth-digits
Peter van Dijk [Tue, 7 Mar 2017 11:42:05 +0000 (12:42 +0100)]
Merge pull request #5116 from ahupowerdns/web-auth-digits

Close #1844: we report 1200 qps as 1.2e3 qps in auth webserver.

7 years agoMerge pull request #5117 from ahupowerdns/qthread-error
bert hubert [Tue, 7 Mar 2017 11:02:04 +0000 (12:02 +0100)]
Merge pull request #5117 from ahupowerdns/qthread-error

Turn PDNSException in qthread into an error & exit instead of crash.

7 years agoMerge pull request #5113 from RobinGeuze/addPerPoolPolicy
Remi Gacogne [Tue, 7 Mar 2017 08:28:24 +0000 (09:28 +0100)]
Merge pull request #5113 from RobinGeuze/addPerPoolPolicy

dnsdist: Add support for setting the server selection policy on a per pool basis

7 years agoMerge pull request #5102 from rgacogne/rec-packetcache-perf
bert hubert [Mon, 6 Mar 2017 22:14:49 +0000 (23:14 +0100)]
Merge pull request #5102 from rgacogne/rec-packetcache-perf

rec: Packet cache speedup / cleanup

7 years agoMerge pull request #5106 from rgacogne/rec-resolveat-split
bert hubert [Mon, 6 Mar 2017 22:14:21 +0000 (23:14 +0100)]
Merge pull request #5106 from rgacogne/rec-resolveat-split

rec: Split SyncRes::doResolveAt, add const and static whenever possible

7 years agoauth: Create additional `reuseport` sockets before dropping privileges
Remi Gacogne [Mon, 6 Mar 2017 17:26:27 +0000 (18:26 +0100)]
auth: Create additional `reuseport` sockets before dropping privileges

7 years agowith this change, a crash because of a PDNSException in qthread gets turned into...
bert hubert [Mon, 6 Mar 2017 15:10:42 +0000 (16:10 +0100)]
with this change, a crash because of a PDNSException in qthread gets turned into an error message and an exit. Closes #3830.

7 years agoFix comments from rgacogne
Robin Geuze [Mon, 6 Mar 2017 14:59:39 +0000 (15:59 +0100)]
Fix comments from rgacogne
Use nullptr instead of NULL
Statically initialize policy to nullptr in Pool object
Actually set the global state for the pools after setting a new
server selection policy on a pool.

7 years agoAlso update showPools to display the used server selection policy
Robin Geuze [Mon, 6 Mar 2017 14:36:38 +0000 (15:36 +0100)]
Also update showPools to display the used server selection policy

7 years agoAdd support for setting the server selection policy on a per pool basis
Robin Geuze [Mon, 6 Mar 2017 14:15:42 +0000 (15:15 +0100)]
Add support for setting the server selection policy on a per pool basis

7 years agoClose #1844: we report 1200 qps as 1.1e3 qps in auth webserver.
bert hubert [Mon, 6 Mar 2017 13:44:37 +0000 (14:44 +0100)]
Close #1844: we report 1200 qps as 1.1e3 qps in auth webserver.

7 years agoMerge pull request #4752 from mind04/norec
bert hubert [Mon, 6 Mar 2017 13:12:17 +0000 (14:12 +0100)]
Merge pull request #4752 from mind04/norec

Remove recursion from auth

7 years agoMerge pull request #4958 from paddg/patch-5
Remi Gacogne [Mon, 6 Mar 2017 11:04:24 +0000 (12:04 +0100)]
Merge pull request #4958 from paddg/patch-5

Tuning unit file for medium sized setups

7 years agoMerge pull request #4966 from pari-/master
Pieter Lexis [Mon, 6 Mar 2017 11:02:12 +0000 (12:02 +0100)]
Merge pull request #4966 from pari-/master

rec: enhance documentation

7 years agoMerge pull request #5087 from Habbie/escape
Pieter Lexis [Mon, 6 Mar 2017 11:02:05 +0000 (12:02 +0100)]
Merge pull request #5087 from Habbie/escape

escape markdown formatting chars

7 years agoMerge pull request #5096 from pieterlexis/docs-howto-modernize
Pieter Lexis [Mon, 6 Mar 2017 11:01:55 +0000 (12:01 +0100)]
Merge pull request #5096 from pieterlexis/docs-howto-modernize

Docs: modernize the 'database' howto somewhat

7 years agoMerge pull request #5100 from rgacogne/auth-docs-packet-cache-ttl
Pieter Lexis [Mon, 6 Mar 2017 11:01:41 +0000 (12:01 +0100)]
Merge pull request #5100 from rgacogne/auth-docs-packet-cache-ttl

auth: Document that the cache respect the answer's TTL

7 years agoMerge pull request #5089 from pieterlexis/dnsdist-api-404
Remi Gacogne [Mon, 6 Mar 2017 08:35:01 +0000 (09:35 +0100)]
Merge pull request #5089 from pieterlexis/dnsdist-api-404

dnsdist: Send a 404 on unknown API path

7 years agoMerge pull request #5070 from pieterlexis/dnsdist-addAction-accept-DNSName
Remi Gacogne [Mon, 6 Mar 2017 08:32:21 +0000 (09:32 +0100)]
Merge pull request #5070 from pieterlexis/dnsdist-addAction-accept-DNSName

dnsdist addAction: Also DNSName(s)

7 years agoMerge pull request #5094 from ahupowerdns/rfc2308
bert hubert [Fri, 3 Mar 2017 15:15:11 +0000 (16:15 +0100)]
Merge pull request #5094 from ahupowerdns/rfc2308

make our zone parser adhere to RFC2308 wrt implicit TTLs and add test. Adds note to release notes, plus some documentation to nobackend regression tests.

7 years agoMore sles dnsdist builder things
Pieter Lexis [Fri, 3 Mar 2017 14:30:58 +0000 (15:30 +0100)]
More sles dnsdist builder things

7 years agoauth: Don't leak a CDB object in case of bogus data
Remi Gacogne [Fri, 3 Mar 2017 14:09:10 +0000 (15:09 +0100)]
auth: Don't leak a CDB object in case of bogus data

7 years agoMerge pull request #5104 from pieterlexis/sles-dnsdist-pkg
Pieter Lexis [Fri, 3 Mar 2017 13:36:25 +0000 (14:36 +0100)]
Merge pull request #5104 from pieterlexis/sles-dnsdist-pkg

Add SLES support to dnsdist build-script

7 years agoMerge pull request #5098 from shantikulkarni/patch-1
Peter van Dijk [Fri, 3 Mar 2017 13:30:16 +0000 (14:30 +0100)]
Merge pull request #5098 from shantikulkarni/patch-1

SOA object is required for all reverse zones

7 years agodocument the breaking change in zonefile parsing for the release notes.
bert hubert [Fri, 3 Mar 2017 12:52:08 +0000 (13:52 +0100)]
document the breaking change in zonefile parsing for the release notes.

7 years agomake our zone parser adhere to RFC2308 wrt implicit TTLs and add test
bert hubert [Tue, 28 Feb 2017 16:22:16 +0000 (17:22 +0100)]
make our zone parser adhere to RFC2308 wrt implicit TTLs and add test

7 years agomake rfc2308 test less fragile by using jq
bert hubert [Wed, 1 Mar 2017 11:56:32 +0000 (12:56 +0100)]
make rfc2308 test less fragile by using jq

7 years agoand a README to help the user get up to speed with these tests
bert hubert [Tue, 28 Feb 2017 16:26:11 +0000 (17:26 +0100)]
and a README to help the user get up to speed with these tests

7 years agomake our zone parser adhere to RFC2308 wrt implicit TTLs and add test
bert hubert [Tue, 28 Feb 2017 16:22:16 +0000 (17:22 +0100)]
make our zone parser adhere to RFC2308 wrt implicit TTLs and add test

7 years agorec: Mark pdns_recursor.cc functions/globals as static whenever possible
Remi Gacogne [Fri, 3 Mar 2017 12:48:25 +0000 (13:48 +0100)]
rec: Mark pdns_recursor.cc functions/globals as static whenever possible

This might allow the compiler to do some optimizations, and also
make it easier to see where functions and globals are used when
reading the code.

7 years agorec: Constify SyncRes methods whenever possible
Remi Gacogne [Fri, 3 Mar 2017 11:42:16 +0000 (12:42 +0100)]
rec: Constify SyncRes methods whenever possible

7 years agoAdd SLES support to dnsdist build-script
Pieter Lexis [Fri, 3 Mar 2017 10:16:07 +0000 (11:16 +0100)]
Add SLES support to dnsdist build-script

7 years agorec: Split SyncRes::doResolveAt()
Remi Gacogne [Fri, 3 Mar 2017 11:05:45 +0000 (12:05 +0100)]
rec: Split SyncRes::doResolveAt()

7 years agorec: enhance documentation by adding/correcting 'Available
Patrick Ringl [Thu, 2 Mar 2017 23:50:16 +0000 (00:50 +0100)]
rec: enhance documentation by adding/correcting 'Available
since'-tags for the diversity of available options

7 years agorec: Don't parse the QName in the packet cache if we already have it
Remi Gacogne [Wed, 22 Feb 2017 16:42:02 +0000 (17:42 +0100)]
rec: Don't parse the QName in the packet cache if we already have it

When `gettag()` or protobuf are enabled, we have already parsed the
qname, qtype and qclass so pass them to the Packet Cache instead of
parsing them again.
Don't parse them several times if we have more than one match from
the cache either.

7 years agorec: Clean up time_t / uint32_t mix for the packet cache's TTD
Remi Gacogne [Tue, 21 Feb 2017 15:30:35 +0000 (16:30 +0100)]
rec: Clean up time_t / uint32_t mix for the packet cache's TTD

7 years agoFix minor issues reported by `cppcheck`
Remi Gacogne [Thu, 2 Mar 2017 14:07:56 +0000 (15:07 +0100)]
Fix minor issues reported by `cppcheck`

7 years agoauth: Document that the cache respect the answer's TTL
Remi Gacogne [Thu, 2 Mar 2017 14:36:44 +0000 (15:36 +0100)]
auth: Document that the cache respect the answer's TTL

7 years agodnsdist addAction: Also DNSName(s)
Pieter Lexis [Wed, 22 Feb 2017 17:04:22 +0000 (18:04 +0100)]
dnsdist addAction: Also DNSName(s)

7 years agoescape markdown formatting chars
Peter van Dijk [Mon, 27 Feb 2017 19:29:05 +0000 (20:29 +0100)]
escape markdown formatting chars

7 years agorec: Clean up the signedness of the packet cache's tag
Remi Gacogne [Tue, 21 Feb 2017 15:22:12 +0000 (16:22 +0100)]
rec: Clean up the signedness of the packet cache's tag

7 years agorec: Speed up the packet cache
Remi Gacogne [Tue, 21 Feb 2017 15:14:09 +0000 (16:14 +0100)]
rec: Speed up the packet cache

* Don't parse the response's qname for every call to
`getResponsePacket()`, this leads to a ~15% speed up on pure retrieval
* Only hash once, keep the hash result around, leading to a ~40%
speed up on insertion

7 years agoSOA object is required for all reverse zones
shantikulkarni [Thu, 2 Mar 2017 03:16:09 +0000 (21:16 -0600)]
SOA object is required for all reverse zones

As of 4.0.3, an reverse lookups in LDAP strict mode will not work without there being an object with an SOA entry for the reverse lookup zone.  This requirement is a change from 3.3.3. (Issue #5086)

7 years agoMerge pull request #5097 from baloo/baloo/bugfixes/pysnmp
Remi Gacogne [Wed, 1 Mar 2017 18:51:45 +0000 (19:51 +0100)]
Merge pull request #5097 from baloo/baloo/bugfixes/pysnmp

dnsdist: pysnmp4.3.4 fix compatibility problems with pyasn1

7 years agodnsdist: pysnmp4.3.3 fix compatibility problems with pyasn1
Arthur Gautier [Wed, 1 Mar 2017 17:48:21 +0000 (17:48 +0000)]
dnsdist: pysnmp4.3.3 fix compatibility problems with pyasn1

Signed-off-by: Arthur Gautier <baloo@gandi.net>
7 years agoRevert "Fix pysnmp test error."
Arthur Gautier [Wed, 1 Mar 2017 17:47:59 +0000 (17:47 +0000)]
Revert "Fix pysnmp test error."

This reverts commit 9f512fd73afe7c2bceb8e42d7ff7eba527300408.

7 years agoDocs: modernize the 'database' howto somewhat
Pieter Lexis [Wed, 1 Mar 2017 15:39:24 +0000 (16:39 +0100)]
Docs: modernize the 'database' howto somewhat

7 years agoMerge pull request #5092 from Habbie/unknown-types-jdnssec
bert hubert [Tue, 28 Feb 2017 14:54:24 +0000 (15:54 +0100)]
Merge pull request #5092 from Habbie/unknown-types-jdnssec

map CDS and CDNSKEY to TYPExxx for jdnssec-verifyzone

7 years agodnsdist: Send a 404 on unknown API path
Pieter Lexis [Mon, 27 Feb 2017 20:10:18 +0000 (21:10 +0100)]
dnsdist: Send a 404 on unknown API path

Before, a 401 would be sent for unknown API paths due to the strict
checking.

7 years agomap CDS and CDNSKEY to TYPExxx for jdnssec-verifyzone
Peter van Dijk [Tue, 28 Feb 2017 09:30:04 +0000 (10:30 +0100)]
map CDS and CDNSKEY to TYPExxx for jdnssec-verifyzone

7 years agocorrect RPZ attribution
bert hubert [Tue, 28 Feb 2017 09:23:05 +0000 (10:23 +0100)]
correct RPZ attribution

7 years agoMerge pull request #5090 from baloo/baloo/bugfixes/pysnmp-fix
Remi Gacogne [Tue, 28 Feb 2017 07:57:03 +0000 (08:57 +0100)]
Merge pull request #5090 from baloo/baloo/bugfixes/pysnmp-fix

dnsdist: Fix pysnmp test error.

7 years agoFix pysnmp test error.
Arthur Gautier [Tue, 28 Feb 2017 00:21:14 +0000 (00:21 +0000)]
Fix pysnmp test error.

Should be reverted once https://github.com/etingof/pysnmp/issues/40 is
fixed and released (and pysnmp bumped to the newest version).

Signed-off-by: Arthur Gautier <baloo@gandi.net>
7 years agoMerge pull request #5043 from cmouse/mydns
Pieter Lexis [Mon, 27 Feb 2017 14:29:41 +0000 (15:29 +0100)]
Merge pull request #5043 from cmouse/mydns

mydnsbackend: Add getAllDomains

7 years agoMerge pull request #5063 from ahupowerdns/recwcardcname
Pieter Lexis [Mon, 27 Feb 2017 14:29:29 +0000 (15:29 +0100)]
Merge pull request #5063 from ahupowerdns/recwcardcname

Implement CNAME wildcards in recursor authoritative component

7 years agoMerge pull request #5064 from pieterlexis/issue-554-generated-source
Pieter Lexis [Mon, 27 Feb 2017 14:29:17 +0000 (15:29 +0100)]
Merge pull request #5064 from pieterlexis/issue-554-generated-source

Indicate that dnslabeltext.cc is generated

7 years agoMerge pull request #5078 from pieterlexis/issue-4939-error-on-non-existing-lua-conf
Pieter Lexis [Mon, 27 Feb 2017 14:28:59 +0000 (15:28 +0100)]
Merge pull request #5078 from pieterlexis/issue-4939-error-on-non-existing-lua-conf

Throw an error when lua-conf-file can't be loaded

7 years agoMerge pull request #5085 from rgacogne/calidns-ipv6
bert hubert [Fri, 24 Feb 2017 16:30:59 +0000 (17:30 +0100)]
Merge pull request #5085 from rgacogne/calidns-ipv6

calidns: Use the correct socket family (IPv4 / IPv6)

7 years agoadd actual wildcard cname to test zone
bert hubert [Fri, 24 Feb 2017 16:19:39 +0000 (17:19 +0100)]
add actual wildcard cname to test zone

7 years agocalidns: Use the correct socket family (IPv4 / IPv6)
Remi Gacogne [Fri, 24 Feb 2017 15:42:55 +0000 (16:42 +0100)]
calidns: Use the correct socket family (IPv4 / IPv6)

7 years agoadd a regression test for wildcard cnames recursor auth
bert hubert [Fri, 24 Feb 2017 15:29:00 +0000 (16:29 +0100)]
add a regression test for wildcard cnames recursor auth

7 years agoMerge pull request #4920 from plzz/chopoff
Remi Gacogne [Fri, 24 Feb 2017 14:52:49 +0000 (15:52 +0100)]
Merge pull request #4920 from plzz/chopoff

Register DNSName::chopOff in lua

7 years agoWith this commit, the recursor authoritative server can deal with CNAME wildcards...
bert hubert [Tue, 21 Feb 2017 12:19:08 +0000 (13:19 +0100)]
With this commit, the recursor authoritative server can deal with CNAME wildcards. This closes #2818.

7 years agoDocument return value of chopOff
Jussi Peltola [Fri, 24 Feb 2017 03:22:43 +0000 (05:22 +0200)]
Document return value of chopOff

7 years agoMerge pull request #4549 from zeha/dnsrr
bert hubert [Thu, 23 Feb 2017 19:26:45 +0000 (20:26 +0100)]
Merge pull request #4549 from zeha/dnsrr

Remove d_place from DNSResourceRecord

7 years agoFindNS lookup should actually look at an UeberBackend. This solves mind04's concerns...
bert hubert [Thu, 23 Feb 2017 15:25:40 +0000 (16:25 +0100)]
FindNS lookup should actually look at an UeberBackend. This solves mind04's concerns. It also makes the code compile again.

7 years agoMerge branch 'master' into dnsrr
bert hubert [Thu, 23 Feb 2017 12:30:37 +0000 (13:30 +0100)]
Merge branch 'master' into dnsrr

7 years agoThrow an error when lua-conf-file can't be loaded
Pieter Lexis [Thu, 23 Feb 2017 10:08:16 +0000 (11:08 +0100)]
Throw an error when lua-conf-file can't be loaded

This ensures we cannot start up if the file is unreadable.
Closes #4939

7 years agoMerge pull request #5003 from rgacogne/tsig-tests
Pieter Lexis [Tue, 21 Feb 2017 17:55:43 +0000 (18:55 +0100)]
Merge pull request #5003 from rgacogne/tsig-tests

Refactoring of the TSIG handling

7 years agoIndicate that dnslabeltext.cc is generated
Pieter Lexis [Tue, 21 Feb 2017 17:27:22 +0000 (18:27 +0100)]
Indicate that dnslabeltext.cc is generated

Closes #554

7 years agoMerge pull request #4988 from rgacogne/rec-incoming-ecs
bert hubert [Tue, 21 Feb 2017 14:37:23 +0000 (15:37 +0100)]
Merge pull request #4988 from rgacogne/rec-incoming-ecs

rec: Add `use-incoming-edns-subnet` to process and pass along ECS

7 years agoDocument minimal version for metadata through the API
Pieter Lexis [Tue, 21 Feb 2017 13:06:57 +0000 (14:06 +0100)]
Document minimal version for metadata through the API

7 years agoMerge pull request #4712 from cmouse/patch-1
Pieter Lexis [Tue, 21 Feb 2017 09:00:31 +0000 (10:00 +0100)]
Merge pull request #4712 from cmouse/patch-1

Update version number for Lua updatePolicy

7 years agoMerge pull request #4922 from Habbie/ldap-ptr-fix
Pieter Lexis [Tue, 21 Feb 2017 08:59:30 +0000 (09:59 +0100)]
Merge pull request #4922 from Habbie/ldap-ptr-fix

fix ldap-strict autoptr feature, including a test

7 years agoMerge pull request #4950 from rgacogne/suffix-match-node-merge
Pieter Lexis [Tue, 21 Feb 2017 08:59:13 +0000 (09:59 +0100)]
Merge pull request #4950 from rgacogne/suffix-match-node-merge

Refactor SuffixMatchNode using a SuffixMatchTree

7 years agoMerge pull request #4953 from pieterlexis/issue-349-602-slave-checking-backoff
Pieter Lexis [Tue, 21 Feb 2017 08:58:59 +0000 (09:58 +0100)]
Merge pull request #4953 from pieterlexis/issue-349-602-slave-checking-backoff

Auth: Incremental backoff for failed slave checks

7 years agoMerge pull request #4990 from rgacogne/rec-snmp-clean
Pieter Lexis [Tue, 21 Feb 2017 08:58:24 +0000 (09:58 +0100)]
Merge pull request #4990 from rgacogne/rec-snmp-clean

rec: Add SNMP support

7 years agoMerge pull request #4989 from rgacogne/dnsdist-snmp-clean
Pieter Lexis [Tue, 21 Feb 2017 08:58:06 +0000 (09:58 +0100)]
Merge pull request #4989 from rgacogne/dnsdist-snmp-clean

dnsdist: Add SNMP support

7 years agoMerge pull request #5036 from rgacogne/dnsdist-delay-cache-hit
Pieter Lexis [Tue, 21 Feb 2017 08:57:50 +0000 (09:57 +0100)]
Merge pull request #5036 from rgacogne/dnsdist-delay-cache-hit

dnsdist: Apply delay to cache hits, locally generated responses

7 years agoMerge pull request #5037 from rgacogne/dnsdist-dont-cache-servfail
Pieter Lexis [Tue, 21 Feb 2017 08:57:31 +0000 (09:57 +0100)]
Merge pull request #5037 from rgacogne/dnsdist-dont-cache-servfail

dnsdist: Don't cache ServFail / Refused if the TTL is set to 0

7 years agoMerge pull request #5056 from rgacogne/dnsdist-no-shadow
Pieter Lexis [Tue, 21 Feb 2017 08:57:15 +0000 (09:57 +0100)]
Merge pull request #5056 from rgacogne/dnsdist-no-shadow

dnsdist: Don't shadow variables

7 years agoMerge pull request #5058 from rgacogne/rec-fast-rpz-update
Pieter Lexis [Tue, 21 Feb 2017 08:56:55 +0000 (09:56 +0100)]
Merge pull request #5058 from rgacogne/rec-fast-rpz-update

Rec: Store the RPZ policies in an unordered_map instead of a map

7 years agodnsdist: Set TasksMax to 8192, recent distros default to more than 4k
Remi Gacogne [Tue, 21 Feb 2017 08:46:40 +0000 (09:46 +0100)]
dnsdist: Set TasksMax to 8192, recent distros default to more than 4k

7 years agorec: Add `use-incoming-edns-subnet` to process and pass along ECS
Remi Gacogne [Thu, 9 Feb 2017 14:01:41 +0000 (15:01 +0100)]
rec: Add `use-incoming-edns-subnet` to process and pass along ECS

If set, the recusor will process and pass along a received EDNS
Client Subnet to authoritative servers.
The ECS information will only be sent for netmasks and domains listed
in `edns-subnet-whitelist`, and will be truncated if the received scope
exceeds `ecs-ipv4-bits` for IPv4 or `ecs-ipv6-bits` for IPv6.
An incoming ECS source prefix-length of 0 can also be used to
request that no ECS value be sent to the authoritative servers,
in accordance with RFC7871.

7 years agoCorrectly parse ECS with a source prefix-length value of 0
Remi Gacogne [Thu, 9 Feb 2017 13:50:11 +0000 (14:50 +0100)]
Correctly parse ECS with a source prefix-length value of 0

It means there is no address there, but the family and source
prefix-length values are still relevant. rfc7871 explicitly says
that the family SHOULD be set to the transport over which the query
is sent if source prefix-length is 0.
It also states that a source prefix-length means the client is
asking that no ECS value be sent.

7 years agoMerge pull request #5042 from rgacogne/state-holder-allocate-and-copy-before-lock
bert hubert [Mon, 20 Feb 2017 14:52:10 +0000 (15:52 +0100)]
Merge pull request #5042 from rgacogne/state-holder-allocate-and-copy-before-lock

StateHolder: Allocate (and copy if needed) before taking the lock

7 years agoRec: Store the RPZ policies in an unordered_map instead of a map
Remi Gacogne [Mon, 20 Feb 2017 14:45:22 +0000 (15:45 +0100)]
Rec: Store the RPZ policies in an unordered_map instead of a map

This speeds up the loading of huge zones a bit (~20%) while also nicely
improving the lookup speed.
Also adds a `zoneSizeHint` parameter to `rpzFile()` and `rpzMaster()` to be
able to reserve space before loading the zone, to prevent reallocation
and rehashing when possible.

7 years agoMerge pull request #4982 from rgacogne/rec-gettag-data
Pieter Lexis [Mon, 20 Feb 2017 12:31:04 +0000 (13:31 +0100)]
Merge pull request #4982 from rgacogne/rec-gettag-data

rec: Allow returning the `DNSQuestion`'s `data` table from `gettag()`

7 years agoMerge pull request #4997 from cmouse/fix-remotebackend-params
Pieter Lexis [Mon, 20 Feb 2017 12:30:39 +0000 (13:30 +0100)]
Merge pull request #4997 from cmouse/fix-remotebackend-params

Fix remotebackend params

7 years agoMerge pull request #5006 from peterthomassen/master
Pieter Lexis [Mon, 20 Feb 2017 12:29:56 +0000 (13:29 +0100)]
Merge pull request #5006 from peterthomassen/master

docs: improve documentation of MySQL foreign keys

7 years agoMerge pull request #5038 from pieterlexis/API-allow-X-metadata
Pieter Lexis [Mon, 20 Feb 2017 12:29:46 +0000 (13:29 +0100)]
Merge pull request #5038 from pieterlexis/API-allow-X-metadata

API: Allow setting extra domain metadata

7 years agoMerge pull request #5041 from pieterlexis/boost-m4-update
Pieter Lexis [Mon, 20 Feb 2017 12:29:32 +0000 (13:29 +0100)]
Merge pull request #5041 from pieterlexis/boost-m4-update

Add GCC 6.3 to boost.m4

7 years agoMerge pull request #5049 from rgacogne/ox-coverity-fixes
Pieter Lexis [Mon, 20 Feb 2017 12:29:13 +0000 (13:29 +0100)]
Merge pull request #5049 from rgacogne/ox-coverity-fixes

Minor fixes based on Coverity's report

7 years agoMerge pull request #5051 from Habbie/odbc-query-logging
Pieter Lexis [Mon, 20 Feb 2017 12:28:46 +0000 (13:28 +0100)]
Merge pull request #5051 from Habbie/odbc-query-logging

fix godbc query logging

7 years agodocs: improve documentation of MySQL foreign keys
Peter Thomassen [Mon, 20 Feb 2017 10:26:05 +0000 (11:26 +0100)]
docs: improve documentation of MySQL foreign keys

So far, the docs mentioned the foreign key for the records table only.
However, if foreign keys are used, they also make sense for the
domainmetadata, cryptokeys, and comments tables.

Corresponding SQL is already in an .sql file in the repository. This
commit replaces the incomplete information with these statements.

7 years agodnsdist: Don't shadow variables
Remi Gacogne [Mon, 20 Feb 2017 10:22:34 +0000 (11:22 +0100)]
dnsdist: Don't shadow variables

Fix shadowed variables reported by `-Wshadow`.

7 years agoLuaWrapper: Don't shadow variables
Remi Gacogne [Mon, 20 Feb 2017 10:21:55 +0000 (11:21 +0100)]
LuaWrapper: Don't shadow variables

Fix shadowed variables reported by `-Wshadow`.