]>
granicus.if.org Git - pdns/log
Remi Gacogne [Thu, 15 Dec 2016 09:29:56 +0000 (10:29 +0100)]
Merge pull request #4769 from rgacogne/rec-init-rcode-before-preresolve
rec: Set the result to NoError before calling `preresolve`
Remi Gacogne [Wed, 14 Dec 2016 11:41:55 +0000 (12:41 +0100)]
Merge pull request #4759 from rgacogne/dnsdist-110-beta2-changelog
dnsdist: Update ChangeLog for 1.1.0-beta2
Remi Gacogne [Wed, 14 Dec 2016 11:02:12 +0000 (12:02 +0100)]
dnsdist: Add #4748 to the ChangeLog
Remi Gacogne [Wed, 14 Dec 2016 11:00:33 +0000 (12:00 +0100)]
Merge pull request #4748 from rgacogne/dnsdist-cache-cleaning-percentage
dnsdist: Add `setCacheCleaningPercentage()`
Remi Gacogne [Wed, 14 Dec 2016 09:58:36 +0000 (10:58 +0100)]
dnsdist: Add #4764 and #4765 to the beta2 ChangeLog
Remi Gacogne [Wed, 14 Dec 2016 09:53:25 +0000 (10:53 +0100)]
Merge pull request #4764 from rgacogne/dnsdist-tcp-workers-vect-race
dnsdist: Prevent race while creating new TCP worker threads
Remi Gacogne [Wed, 14 Dec 2016 09:52:33 +0000 (10:52 +0100)]
Merge pull request #4765 from pieterlexis/dnsdist-improvements
DNSDist: some service improvements
Remi Gacogne [Tue, 13 Dec 2016 15:21:17 +0000 (16:21 +0100)]
rec: Set the result to NoError before calling `preresolve`
Otherwise `rq.rcode` needs to be set explicitly when handling the
query from `preresolve`, which is not documented and wasn't the case
before.
Peter van Dijk [Tue, 13 Dec 2016 12:37:21 +0000 (13:37 +0100)]
Merge pull request #4751 from zeha/api-decline-mixed-ns
API: prevent sending nameservers list and zone-level NS in rrsets
Peter van Dijk [Tue, 13 Dec 2016 11:24:16 +0000 (12:24 +0100)]
Merge pull request #4763 from desec-io/master
Extended pdns_control man page: pdns_control notify *
Pieter Lexis [Tue, 13 Dec 2016 10:11:25 +0000 (11:11 +0100)]
dnsdist: check config before starting
Pieter Lexis [Tue, 13 Dec 2016 10:07:25 +0000 (11:07 +0100)]
dnsdist: Ignore file created by autoreconf
Nils Wisiol [Mon, 12 Dec 2016 20:08:22 +0000 (21:08 +0100)]
Extended pdns_control man page
Remi Gacogne [Tue, 13 Dec 2016 09:35:10 +0000 (10:35 +0100)]
dnsdist: Check the vector capacity before creating the TCP worker thread
Pieter Lexis [Tue, 13 Dec 2016 08:49:29 +0000 (09:49 +0100)]
dnsdist: document --check-config in --help
Remi Gacogne [Tue, 13 Dec 2016 08:41:08 +0000 (09:41 +0100)]
Merge pull request #4760 from rgacogne/remote-logger-set-invalid-on-close
Set `RemoteLogger::d_socket` to -1 after closing it
Remi Gacogne [Mon, 12 Dec 2016 16:28:55 +0000 (17:28 +0100)]
dnsdist: Add #4541 to the ChangeLog
Remi Gacogne [Mon, 12 Dec 2016 16:22:00 +0000 (17:22 +0100)]
Merge pull request #4541 from rgacogne/fix-suffix-match-tree
dnsdist: Fix insertion issues in SuffixMatchTree, move it to dnsname.hh
Remi Gacogne [Mon, 12 Dec 2016 15:28:17 +0000 (16:28 +0100)]
dnsdist: Prevent race while creating new TCP worker threads
We try very hard to avoid using locks, but we need to prevent two
threads inserting into the TCP workers vector concurrently. While
this can't happen at runtime since the healthcheck thread is the
only one calling `g_tcpclientthreads->addTCPClientThread()`, this
might happen at startup time because we start the TCP acceptor
threads one after another and they all call it once.
This might result, for example, in one vector entry being overwritten
and another one remaining value-initialized to zero.
Remi Gacogne [Mon, 12 Dec 2016 11:20:32 +0000 (12:20 +0100)]
Set `RemoteLogger::d_socket` to -1 after closing it
Otherwise, in the unlikely case `SSocket()` throws an exception
we might end up with a stale file descriptor in `RemoteLogger::reconnect()`.
Remi Gacogne [Mon, 12 Dec 2016 10:00:56 +0000 (11:00 +0100)]
dnsdist: Update ChangeLog for 1.1.0-beta2
Remi Gacogne [Mon, 12 Dec 2016 08:18:02 +0000 (09:18 +0100)]
Merge pull request #4753 from rgacogne/dnsdist-tcp-fixes
dnsdist: Fix FD leak on TCP connection failure, handle TCP worker creation failure
Remi Gacogne [Fri, 9 Dec 2016 16:09:25 +0000 (17:09 +0100)]
dnsdist: Don't leak a FD if the TCP connection to the backend fails
Remi Gacogne [Fri, 9 Dec 2016 16:08:04 +0000 (17:08 +0100)]
dnsdist: Better handling of failures during TCP worker thread creation
Pieter Lexis [Fri, 9 Dec 2016 13:53:54 +0000 (14:53 +0100)]
Merge pull request #4566 from pieterlexis/dnsheader-in-dnsquestion
DNS Header and EDNS Flag access for Lua
Pieter Lexis [Thu, 13 Oct 2016 16:05:01 +0000 (18:05 +0200)]
Fix indenting in recursor scripting docs
Pieter Lexis [Thu, 13 Oct 2016 16:04:25 +0000 (18:04 +0200)]
Expose EDNS Flags to Lua
Closes #4531
Pieter Lexis [Thu, 13 Oct 2016 16:03:37 +0000 (18:03 +0200)]
Lua: Give access to the dnsheader
Pieter Lexis [Fri, 9 Dec 2016 08:59:23 +0000 (09:59 +0100)]
Merge pull request #4638 from rgacogne/auth-bindbackend-zoneid-lookup
auth: In `Bind2Backend::lookup()`, use the `zoneId` when we have it
Pieter Lexis [Fri, 9 Dec 2016 08:58:37 +0000 (09:58 +0100)]
Merge pull request #4684 from hlindqvist/clarify-activate-tsig
Clarify pdnsutil activate-tsig-key description
Pieter Lexis [Fri, 9 Dec 2016 08:58:09 +0000 (09:58 +0100)]
Merge pull request #4686 from rgacogne/calidns-not-enough-queries-crash
calidns: Don't crash if we don't have enough 'unknown' queries remaining
Pieter Lexis [Fri, 9 Dec 2016 08:57:09 +0000 (09:57 +0100)]
Merge pull request #4715 from rgacogne/dnsmessage-proto-set-version-2
Specify that dnsmessage.proto uses protobuf version 2
Pieter Lexis [Fri, 9 Dec 2016 08:56:49 +0000 (09:56 +0100)]
Merge pull request #4724 from rgacogne/rec-lua-thread-id
rec: Add `getRecursorThreadId()` to Lua, identifying the current thread
Christian Hofstaedtler [Fri, 15 Jul 2016 14:08:21 +0000 (16:08 +0200)]
API: prevent sending nameservers list and zone-level NS in rrsets
Peter van Dijk [Thu, 8 Dec 2016 14:09:47 +0000 (15:09 +0100)]
Merge pull request #4564 from rgacogne/rec-public-dnsquestion
rec: Pass a `DNSQuestion` object to Lua hooks
Peter van Dijk [Thu, 8 Dec 2016 12:05:40 +0000 (13:05 +0100)]
Merge pull request #4749 from Habbie/test-counters-latency
remove unreliable `latency` variable from counters test
Peter van Dijk [Thu, 8 Dec 2016 12:05:30 +0000 (13:05 +0100)]
Merge pull request #4746 from rgacogne/auth-pdnsutil-coverity-
1366826
auth: Fix coverity warning in `pdnsutil show-zone`
Remi Gacogne [Thu, 8 Dec 2016 11:15:13 +0000 (12:15 +0100)]
Merge pull request #4535 from rgacogne/dnsdist-lua-do
dnsdist: Add `DNSQuestion:getDO()`
Remi Gacogne [Thu, 8 Dec 2016 09:09:28 +0000 (10:09 +0100)]
Merge pull request #4702 from rgacogne/dnsdist-udp-timeout
dnsdist: Add `setUDPTimeout(n)`
Remi Gacogne [Thu, 8 Dec 2016 09:09:04 +0000 (10:09 +0100)]
Merge pull request #4726 from rgacogne/dnsdist-servfail-no-server
dnsdist: Add an option to return ServFail when no server is available
Remi Gacogne [Thu, 8 Dec 2016 09:07:10 +0000 (10:07 +0100)]
Merge pull request #4743 from rgacogne/dnsdist-client-bpf
dnsdist: Ignore newBPFFilter() and newDynBPFFilter() in client mode
Peter van Dijk [Tue, 6 Dec 2016 15:56:55 +0000 (16:56 +0100)]
remove unreliable `latency` variable from counters test
Peter van Dijk [Tue, 6 Dec 2016 15:45:59 +0000 (16:45 +0100)]
Merge pull request #4745 from Habbie/showrule-plural
add missing letter, plus format
Peter van Dijk [Tue, 6 Dec 2016 09:53:35 +0000 (10:53 +0100)]
add missing letter, plus format
Remi Gacogne [Tue, 6 Dec 2016 09:14:53 +0000 (10:14 +0100)]
Merge pull request #4742 from rgacogne/dnsdist-tcp-queued-counter
dnsdist: Decrement the queued TCP conn count if writing to the pipe fails
Remi Gacogne [Tue, 6 Dec 2016 09:08:55 +0000 (10:08 +0100)]
auth: Fix coverity warning in `pdnsutil show-zone`
Remi Gacogne [Mon, 5 Dec 2016 17:01:55 +0000 (18:01 +0100)]
dnsdist: Decrement the queued TCP conn count if writing to the pipe fails
Otherwise we might end up refusing every new TCP connection until
we are restarted.
Remi Gacogne [Fri, 2 Dec 2016 14:05:36 +0000 (15:05 +0100)]
dnsdist: Add an option to return ServFail when no server is available
Remi Gacogne [Mon, 5 Dec 2016 16:23:40 +0000 (17:23 +0100)]
dnsdist: Ignore newBPFFilter() and newDynBPFFilter() in client mode
Peter van Dijk [Mon, 5 Dec 2016 16:23:25 +0000 (17:23 +0100)]
Merge pull request #4740 from Habbie/fix-show-zone-ds
avoid undefined behaviour in clang vs. gcc
Peter van Dijk [Mon, 5 Dec 2016 15:29:49 +0000 (16:29 +0100)]
avoid undefined behaviour in clang vs. gcc
Peter van Dijk [Mon, 5 Dec 2016 14:06:40 +0000 (15:06 +0100)]
Merge pull request #4696 from ju5t/doc-rectify-secure-all-zones
Add rectify- and secure-all-zones documentation
Pieter Lexis [Mon, 5 Dec 2016 13:53:06 +0000 (13:53 +0000)]
Make export-zone-ds output similar to export-zone-dnskey
Pieter Lexis [Mon, 5 Dec 2016 11:44:32 +0000 (11:44 +0000)]
Merge branch 'horazont-feature/pdnsutil-export-zone-ds-showZone'
Pieter Lexis [Mon, 5 Dec 2016 11:40:04 +0000 (11:40 +0000)]
Merge branch 'feature/pdnsutil-export-zone-ds-showZone' of https://github.com/horazont/pdns into horazont-feature/pdnsutil-export-zone-ds-showZone
bert hubert [Sun, 4 Dec 2016 22:36:54 +0000 (23:36 +0100)]
Merge pull request #4734 from rgacogne/dnsdist-tcp-ssocket-exception
dnsdist: Add the TCP socket to the map only if the connection succeeds. Closes #4733.
Remi Gacogne [Thu, 1 Dec 2016 14:58:01 +0000 (15:58 +0100)]
rec: Add `getRecursorThreadId()` to Lua, identifying the current thread
Remi Gacogne [Sun, 4 Dec 2016 20:09:37 +0000 (21:09 +0100)]
dnsdist: Add the TCP socket to the map only if the connection succeeds
Otherwise we create a value-initialized (to 0) entry in the map and
try to use it later.
bert hubert [Sat, 3 Dec 2016 19:51:14 +0000 (19:51 +0000)]
Merge pull request #4722 from rgacogne/dnsname-4718
Fix incorrect length check in `DNSName` when extracting qtype or qclass
Peter van Dijk [Fri, 2 Dec 2016 19:05:33 +0000 (20:05 +0100)]
Merge pull request #4725 from Habbie/travis-update
conform to updated travis image
Remi Gacogne [Fri, 2 Dec 2016 16:05:42 +0000 (17:05 +0100)]
MySQL 5.6 is now installed by default in travis images
See https://github.com/travis-ci/travis-ci/issues/6961
Peter van Dijk [Fri, 2 Dec 2016 13:01:57 +0000 (14:01 +0100)]
stop auto-started pdns with 0.0.0.0 bind, to allow individual binds
Remi Gacogne [Thu, 1 Dec 2016 12:10:55 +0000 (13:10 +0100)]
Merge pull request #4721 from rgacogne/dnsdist-exceptions-responder-thread
dnsdist: Handle exceptions in the UDP responder thread
Remi Gacogne [Thu, 1 Dec 2016 12:00:13 +0000 (13:00 +0100)]
Fix incorrect length check in `DNSName` when extracting qtype or qclass
In `DNSName::packetParser()`, the length check might have been incorrect
when the caller asked for the `qtype` and/or the `qclass` to be extracted.
The `pos + labellen + 2 > end` check was wrong because `pos` might have already
been incremented by `labellen`. There are 3 ways to exit the main loop:
* `labellen` is 0, the most common case, and in that case the check is valid
* `pos >= end`, meaning that `pos + labellen + 2 > end` will be true regardless
of the value of `labellen` since it cannot be negative
* if `uncompress` is set and a compressed label is found, the main loop is
broken out of, and `labellen` still holds a now irrelevant, possibly non-zero value
corresponding to the first byte of the compressed label length & ~0xc0.
In that last case, if the compressed label points to a position > 255 the check
is wrong and might have rejected a valid packet.
A quick look throught the code didn't show any place where we request decompression
and ask for `qtype` and/or `qclass` in a response, but I might have missed one.
Reported by Houssam El Hajoui (thanks!).
Remi Gacogne [Thu, 1 Dec 2016 10:39:40 +0000 (11:39 +0100)]
dnsdist: Handle exceptions in the UDP responder thread
Since we now have response rules, it makes sense to gracefully handle
exceptions in the UDP responder thread as well.
Peter van Dijk [Thu, 1 Dec 2016 10:13:34 +0000 (11:13 +0100)]
Merge pull request #4720 from Habbie/stalettl
doc nit
Peter van Dijk [Thu, 1 Dec 2016 10:10:54 +0000 (11:10 +0100)]
nit
Peter van Dijk [Wed, 30 Nov 2016 18:38:36 +0000 (19:38 +0100)]
Merge pull request #4622 from tuxis-ie/no.more.dots.ever
According to IRC, this should fix #4621
Remi Gacogne [Wed, 5 Oct 2016 10:52:07 +0000 (12:52 +0200)]
dnsdist: Add `DNSQuestion:getDO()`
Remi Gacogne [Wed, 30 Nov 2016 13:19:07 +0000 (14:19 +0100)]
Merge pull request #4716 from rgacogne/remove-debug-dq-setrecords
rec: Remove leftover debug msg in `RecursorLua4::DNSQuestion::setRecords()`
Remi Gacogne [Tue, 29 Nov 2016 08:51:13 +0000 (09:51 +0100)]
rec: Remove leftover debug msg in `RecursorLua4::DNSQuestion::setRecords()`
Remi Gacogne [Tue, 29 Nov 2016 08:48:36 +0000 (09:48 +0100)]
Specify that dnsmessage.proto uses protobuf version 2
Recent proto-c versions are complaining loudly otherwise.
Remi Gacogne [Wed, 23 Nov 2016 08:43:40 +0000 (09:43 +0100)]
dnsdist: Add `setUDPTimeout(n)`
Remi Gacogne [Fri, 18 Nov 2016 13:50:19 +0000 (14:50 +0100)]
dnsdist: Fix a typo in the dynamic blocks regression tests
ju5t [Fri, 18 Nov 2016 13:01:28 +0000 (14:01 +0100)]
Add rectify- and secure-all-zones documentation
Remi Gacogne [Fri, 18 Nov 2016 10:36:58 +0000 (11:36 +0100)]
Merge pull request #4578 from rgacogne/dnsdist-protobuf-fix-dest-addr
dnsdist: Fix destination address reporting
Remi Gacogne [Fri, 18 Nov 2016 10:34:32 +0000 (11:34 +0100)]
Merge pull request #4693 from rgacogne/dnsdist-flexible-dynblocks-tests
dnsdist: Be more flexible in the DynBlocks regression tests
Remi Gacogne [Fri, 18 Nov 2016 10:33:52 +0000 (11:33 +0100)]
Merge pull request #4658 from rgacogne/dnsdist-set-acl
dnsdist: Allow editing the ACL via the API
Remi Gacogne [Fri, 18 Nov 2016 09:36:43 +0000 (10:36 +0100)]
dnsdist: Allow editing the ACL via the API
Remi Gacogne [Thu, 17 Nov 2016 14:19:49 +0000 (15:19 +0100)]
Merge pull request #4694 from rgacogne/dnsdist-no-const-iterator-erase
dnsdist: Don't use a const_iterator for erasing
Pieter Lexis [Thu, 17 Nov 2016 13:42:57 +0000 (14:42 +0100)]
Merge pull request #4691 from rgacogne/rec-lua-conf-daemon
rec: Wait until after daemonizing to start the RPZ and protobuf threads
Remi Gacogne [Thu, 17 Nov 2016 13:35:30 +0000 (14:35 +0100)]
dnsdist: Don't use a const_iterator for erasing
Some versions of gcc don't support that, even though it's required by
C++11. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57158
Remi Gacogne [Thu, 17 Nov 2016 10:44:55 +0000 (11:44 +0100)]
dnsdist: Be more flexible in the DynBlocks regression tests
We might get blocked earlier than I initially expected if the
maintenance function runs while we are sending our queries.
Remi Gacogne [Wed, 16 Nov 2016 14:37:04 +0000 (15:37 +0100)]
rec: Wait until after daemonizing to start the RPZ and protobuf threads
Otherwise they are killed when we call `fork()`.
We still want to actually parse the configuration to check for syntax
errors before daemonizing to be able to report any error, so when
`daemon` is set to `yes`, we parse the Lua configuration early
without starting any threads, and then again, starting the threads
that time, after daemonizing.
Remi Gacogne [Tue, 15 Nov 2016 15:37:53 +0000 (16:37 +0100)]
calidns: Don't crash if we don't have enough 'unknown' queries remaining
Håkan Lindqvist [Mon, 14 Nov 2016 12:24:13 +0000 (13:24 +0100)]
Clarify pdnsutil activate-tsig-key description
This clarifies the description of pdnsutil {de,}activate-tsig-key.
The command enables TSIG authenticated AXFR for a given zone + key,
which was not clear from the previous description.
Peter van Dijk [Mon, 14 Nov 2016 14:18:17 +0000 (15:18 +0100)]
Merge pull request #4679 from Habbie/odbcfixes
unbreak godbc
Peter van Dijk [Fri, 11 Nov 2016 19:29:16 +0000 (20:29 +0100)]
build and test godbc backend in travis
Peter van Dijk [Fri, 11 Nov 2016 18:21:17 +0000 (19:21 +0100)]
actually prepare statements
Peter van Dijk [Fri, 11 Nov 2016 17:58:32 +0000 (18:58 +0100)]
throw actual exceptions instead of strings so that they get caught and reported properly
Peter van Dijk [Fri, 11 Nov 2016 17:03:22 +0000 (18:03 +0100)]
update odbc-sqlite3 queries in regression tests
Peter van Dijk [Fri, 11 Nov 2016 19:41:51 +0000 (20:41 +0100)]
Merge pull request #4650 from zeha/api-multibackend-serial0
bindbackend: do not corrupt data supplied by other backends in getAllDomains
Peter van Dijk [Fri, 11 Nov 2016 19:37:29 +0000 (20:37 +0100)]
Merge pull request #4585 from tuxis-ie/pdnsutil-show-owner
Show the owner of a zone, if it has one
Peter van Dijk [Fri, 11 Nov 2016 19:36:39 +0000 (20:36 +0100)]
Merge pull request #4625 from rgacogne/auth-utility-random
auth: Unify usage of randomness source by using `dns_random()`
Peter van Dijk [Fri, 11 Nov 2016 19:34:38 +0000 (20:34 +0100)]
Merge pull request #4635 from rgacogne/rec-stats-ringbuffer-4633
rec: Don't crash on an empty query ring
Peter van Dijk [Fri, 11 Nov 2016 19:33:52 +0000 (20:33 +0100)]
Merge pull request #4657 from rgacogne/dnsdist-include-dir
dnsdist: Add `includeDirectory(dir)`
Peter van Dijk [Fri, 11 Nov 2016 19:32:29 +0000 (20:32 +0100)]
Merge pull request #4664 from rgacogne/switch-to-https-whenever-possible
Switch from HTTP to HTTPS whenever possible
Peter van Dijk [Fri, 11 Nov 2016 19:32:04 +0000 (20:32 +0100)]
Merge pull request #4665 from Watnuss/patch-1
Clarification and Pointer to the Master/Slave setup
Peter van Dijk [Fri, 11 Nov 2016 17:56:17 +0000 (18:56 +0100)]
Merge pull request #4676 from rwfeldmann/master
Update dnsupdate.md
Pieter Lexis [Fri, 11 Nov 2016 17:08:12 +0000 (18:08 +0100)]
Merge pull request #4674 from pieterlexis/centos-6-recursor-protobuf
Enable Protobuf in CentOS 6 packages