]>
granicus.if.org Git - pdns/log
Peter van Dijk [Thu, 9 Mar 2017 15:08:45 +0000 (16:08 +0100)]
Merge pull request #5115 from pieterlexis/issue-1284
BIND backend: support "native" zones
Remi Gacogne [Wed, 8 Mar 2017 19:03:16 +0000 (20:03 +0100)]
Merge pull request #5127 from rgacogne/rec-init-qhash-coverity
Fix minor issues reported by coverity
Remi Gacogne [Wed, 8 Mar 2017 09:01:47 +0000 (10:01 +0100)]
auth: Remove leftover `PacketHandler::doRecursion` member
Reported by Coverity.
Remi Gacogne [Tue, 7 Mar 2017 08:33:06 +0000 (09:33 +0100)]
rec: Initialize `qhash` to 0 to make coverity happy
Coverity reports that `qhash` might be used initialized if the packet
cache is disabled. It's indeed used to initialize `dc->d_qhash`, which
will not be used if the packet cache is disabled so there is no real
issue. Still, let's just initialize `qhash` since other tools like Valgrind
are very likely to complain about this too.
Remi Gacogne [Wed, 8 Mar 2017 08:56:21 +0000 (09:56 +0100)]
Merge pull request #5123 from RobinGeuze/fixFreeBSDBuildNetSNMP
dnsdist, rec: Replace net-snmp-includes.h with hand picked headers
bert hubert [Tue, 7 Mar 2017 23:30:37 +0000 (00:30 +0100)]
Merge pull request #5125 from ahupowerdns/create-slave-zone
for create-slave-zone, actually add all slaves, and not only first n times
bert hubert [Tue, 7 Mar 2017 22:44:28 +0000 (23:44 +0100)]
for create-slave-zone, actually look at subsequent arguments, and not keep on adding the first one. Closes #5124.
Robin Geuze [Tue, 7 Mar 2017 19:55:03 +0000 (20:55 +0100)]
Replace net-snmp-includes.h with hand picked headers so it no longer breaks compile on FreeBSD
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`
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
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
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.
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.
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
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
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
Remi Gacogne [Mon, 6 Mar 2017 17:26:27 +0000 (18:26 +0100)]
auth: Create additional `reuseport` sockets before dropping privileges
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.
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.
Pieter Lexis [Mon, 6 Mar 2017 14:43:18 +0000 (15:43 +0100)]
BIND backend: support "native" zones
Allow the use of `type native;` for zones in BIND config files. We also
assume the type is native if no type is specified.
Closes #1284
Robin Geuze [Mon, 6 Mar 2017 14:36:38 +0000 (15:36 +0100)]
Also update showPools to display the used server selection policy
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
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.
bert hubert [Mon, 6 Mar 2017 13:12:17 +0000 (14:12 +0100)]
Merge pull request #4752 from mind04/norec
Remove recursion from auth
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
Pieter Lexis [Mon, 6 Mar 2017 11:02:12 +0000 (12:02 +0100)]
Merge pull request #4966 from pari-/master
rec: enhance documentation
Pieter Lexis [Mon, 6 Mar 2017 11:02:05 +0000 (12:02 +0100)]
Merge pull request #5087 from Habbie/escape
escape markdown formatting chars
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
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
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
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)
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.
Pieter Lexis [Fri, 3 Mar 2017 14:30:58 +0000 (15:30 +0100)]
More sles dnsdist builder things
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
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
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
bert hubert [Fri, 3 Mar 2017 12:52:08 +0000 (13:52 +0100)]
document the breaking change in zonefile parsing for the release notes.
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
bert hubert [Wed, 1 Mar 2017 11:56:32 +0000 (12:56 +0100)]
make rfc2308 test less fragile by using jq
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
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
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.
Remi Gacogne [Fri, 3 Mar 2017 11:42:16 +0000 (12:42 +0100)]
rec: Constify SyncRes methods whenever possible
Pieter Lexis [Fri, 3 Mar 2017 10:16:07 +0000 (11:16 +0100)]
Add SLES support to dnsdist build-script
Remi Gacogne [Fri, 3 Mar 2017 11:05:45 +0000 (12:05 +0100)]
rec: Split SyncRes::doResolveAt()
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
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.
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
Remi Gacogne [Thu, 2 Mar 2017 14:07:56 +0000 (15:07 +0100)]
Fix minor issues reported by `cppcheck`
Remi Gacogne [Thu, 2 Mar 2017 14:36:44 +0000 (15:36 +0100)]
auth: Document that the cache respect the answer's TTL
Pieter Lexis [Wed, 22 Feb 2017 17:04:22 +0000 (18:04 +0100)]
dnsdist addAction: Also DNSName(s)
Peter van Dijk [Mon, 27 Feb 2017 19:29:05 +0000 (20:29 +0100)]
escape markdown formatting chars
Remi Gacogne [Tue, 21 Feb 2017 15:22:12 +0000 (16:22 +0100)]
rec: Clean up the signedness of the packet cache's tag
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
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)
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
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>
Arthur Gautier [Wed, 1 Mar 2017 17:47:59 +0000 (17:47 +0000)]
Revert "Fix pysnmp test error."
This reverts commit
9f512fd73afe7c2bceb8e42d7ff7eba527300408 .
Pieter Lexis [Wed, 1 Mar 2017 15:39:24 +0000 (16:39 +0100)]
Docs: modernize the 'database' howto somewhat
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
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.
Peter van Dijk [Tue, 28 Feb 2017 09:30:04 +0000 (10:30 +0100)]
map CDS and CDNSKEY to TYPExxx for jdnssec-verifyzone
bert hubert [Tue, 28 Feb 2017 09:23:05 +0000 (10:23 +0100)]
correct RPZ attribution
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.
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>
Pieter Lexis [Mon, 27 Feb 2017 14:29:41 +0000 (15:29 +0100)]
Merge pull request #5043 from cmouse/mydns
mydnsbackend: Add getAllDomains
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
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
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
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)
bert hubert [Fri, 24 Feb 2017 16:19:39 +0000 (17:19 +0100)]
add actual wildcard cname to test zone
Remi Gacogne [Fri, 24 Feb 2017 15:42:55 +0000 (16:42 +0100)]
calidns: Use the correct socket family (IPv4 / IPv6)
bert hubert [Fri, 24 Feb 2017 15:29:00 +0000 (16:29 +0100)]
add a regression test for wildcard cnames recursor auth
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
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.
Jussi Peltola [Fri, 24 Feb 2017 03:22:43 +0000 (05:22 +0200)]
Document return value of chopOff
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
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.
bert hubert [Thu, 23 Feb 2017 12:30:37 +0000 (13:30 +0100)]
Merge branch 'master' into dnsrr
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
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
Pieter Lexis [Tue, 21 Feb 2017 17:27:22 +0000 (18:27 +0100)]
Indicate that dnslabeltext.cc is generated
Closes #554
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
Pieter Lexis [Tue, 21 Feb 2017 13:06:57 +0000 (14:06 +0100)]
Document minimal version for metadata through the API
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
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
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
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
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
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
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
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
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
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
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
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.
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.
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
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.
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()`