]> granicus.if.org Git - pdns/log
pdns
7 years agoMerge pull request #4686 from rgacogne/calidns-not-enough-queries-crash
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

7 years agoMerge pull request #4715 from rgacogne/dnsmessage-proto-set-version-2
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

7 years agoMerge pull request #4724 from rgacogne/rec-lua-thread-id
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

7 years agoMerge pull request #4564 from rgacogne/rec-public-dnsquestion
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

7 years agoMerge pull request #4749 from Habbie/test-counters-latency
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

7 years agoMerge pull request #4746 from rgacogne/auth-pdnsutil-coverity-1366826
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`

7 years agoMerge pull request #4535 from rgacogne/dnsdist-lua-do
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()`

7 years agoMerge pull request #4702 from rgacogne/dnsdist-udp-timeout
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)`

7 years agoMerge pull request #4726 from rgacogne/dnsdist-servfail-no-server
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

7 years agoMerge pull request #4743 from rgacogne/dnsdist-client-bpf
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

7 years agoremove unreliable `latency` variable from counters test
Peter van Dijk [Tue, 6 Dec 2016 15:56:55 +0000 (16:56 +0100)]
remove unreliable `latency` variable from counters test

7 years agoMerge pull request #4745 from Habbie/showrule-plural
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

7 years agoadd missing letter, plus format
Peter van Dijk [Tue, 6 Dec 2016 09:53:35 +0000 (10:53 +0100)]
add missing letter, plus format

7 years agoMerge pull request #4742 from rgacogne/dnsdist-tcp-queued-counter
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

7 years agoauth: Fix coverity warning in `pdnsutil show-zone`
Remi Gacogne [Tue, 6 Dec 2016 09:08:55 +0000 (10:08 +0100)]
auth: Fix coverity warning in `pdnsutil show-zone`

7 years agodnsdist: Decrement the queued TCP conn count if writing to the pipe fails
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.

7 years agodnsdist: Add an option to return ServFail when no server is available
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

7 years agodnsdist: Ignore newBPFFilter() and newDynBPFFilter() in client mode
Remi Gacogne [Mon, 5 Dec 2016 16:23:40 +0000 (17:23 +0100)]
dnsdist: Ignore newBPFFilter() and newDynBPFFilter() in client mode

7 years agoMerge pull request #4740 from Habbie/fix-show-zone-ds
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

7 years agoavoid 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

7 years agoMerge pull request #4696 from ju5t/doc-rectify-secure-all-zones
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

7 years agoMake export-zone-ds output similar to export-zone-dnskey
Pieter Lexis [Mon, 5 Dec 2016 13:53:06 +0000 (13:53 +0000)]
Make export-zone-ds output similar to export-zone-dnskey

7 years agoMerge branch 'horazont-feature/pdnsutil-export-zone-ds-showZone'
Pieter Lexis [Mon, 5 Dec 2016 11:44:32 +0000 (11:44 +0000)]
Merge branch 'horazont-feature/pdnsutil-export-zone-ds-showZone'

7 years agoMerge branch 'feature/pdnsutil-export-zone-ds-showZone' of https://github.com/horazon...
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

7 years agoMerge pull request #4734 from rgacogne/dnsdist-tcp-ssocket-exception
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.

7 years agorec: Add `getRecursorThreadId()` to Lua, identifying the current thread
Remi Gacogne [Thu, 1 Dec 2016 14:58:01 +0000 (15:58 +0100)]
rec: Add `getRecursorThreadId()` to Lua, identifying the current thread

7 years agodnsdist: Add the TCP socket to the map only if the connection succeeds
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.

7 years agoMerge pull request #4722 from rgacogne/dnsname-4718
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

7 years agoMerge pull request #4725 from Habbie/travis-update
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

7 years agoMySQL 5.6 is now installed by default in travis images
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

7 years agostop auto-started pdns with 0.0.0.0 bind, to allow individual binds
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

7 years agoMerge pull request #4721 from rgacogne/dnsdist-exceptions-responder-thread
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

7 years agoFix incorrect length check in `DNSName` when extracting qtype or qclass
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!).

7 years agodnsdist: Handle exceptions in the UDP responder thread
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.

7 years agoMerge pull request #4720 from Habbie/stalettl
Peter van Dijk [Thu, 1 Dec 2016 10:13:34 +0000 (11:13 +0100)]
Merge pull request #4720 from Habbie/stalettl

doc nit

7 years agonit
Peter van Dijk [Thu, 1 Dec 2016 10:10:54 +0000 (11:10 +0100)]
nit

7 years agoMerge pull request #4622 from tuxis-ie/no.more.dots.ever
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

7 years agodnsdist: Add `DNSQuestion:getDO()`
Remi Gacogne [Wed, 5 Oct 2016 10:52:07 +0000 (12:52 +0200)]
dnsdist: Add `DNSQuestion:getDO()`

7 years agoMerge pull request #4716 from rgacogne/remove-debug-dq-setrecords
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()`

7 years agorec: 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()`

7 years agoSpecify that dnsmessage.proto uses protobuf version 2
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.

7 years agodnsdist: Add `setUDPTimeout(n)`
Remi Gacogne [Wed, 23 Nov 2016 08:43:40 +0000 (09:43 +0100)]
dnsdist: Add `setUDPTimeout(n)`

8 years agodnsdist: Fix a typo in the dynamic blocks regression tests
Remi Gacogne [Fri, 18 Nov 2016 13:50:19 +0000 (14:50 +0100)]
dnsdist: Fix a typo in the dynamic blocks regression tests

8 years agoAdd rectify- and secure-all-zones documentation
ju5t [Fri, 18 Nov 2016 13:01:28 +0000 (14:01 +0100)]
Add rectify- and secure-all-zones documentation

8 years agoMerge pull request #4578 from rgacogne/dnsdist-protobuf-fix-dest-addr
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

8 years agoMerge pull request #4693 from rgacogne/dnsdist-flexible-dynblocks-tests
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

8 years agoMerge pull request #4658 from rgacogne/dnsdist-set-acl
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

8 years agodnsdist: 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

8 years agoMerge pull request #4694 from rgacogne/dnsdist-no-const-iterator-erase
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

8 years agoMerge pull request #4691 from rgacogne/rec-lua-conf-daemon
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

8 years agodnsdist: Don't use a const_iterator for erasing
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

8 years agodnsdist: Be more flexible in the DynBlocks regression tests
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.

8 years agorec: Wait until after daemonizing to start the RPZ and protobuf threads
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.

8 years agocalidns: Don't crash if we don't have enough 'unknown' queries remaining
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

8 years agoMerge pull request #4679 from Habbie/odbcfixes
Peter van Dijk [Mon, 14 Nov 2016 14:18:17 +0000 (15:18 +0100)]
Merge pull request #4679 from Habbie/odbcfixes

unbreak godbc

8 years agobuild and test godbc backend in travis
Peter van Dijk [Fri, 11 Nov 2016 19:29:16 +0000 (20:29 +0100)]
build and test godbc backend in travis

8 years agoactually prepare statements
Peter van Dijk [Fri, 11 Nov 2016 18:21:17 +0000 (19:21 +0100)]
actually prepare statements

8 years agothrow actual exceptions instead of strings so that they get caught and reported properly
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

8 years agoupdate odbc-sqlite3 queries in regression tests
Peter van Dijk [Fri, 11 Nov 2016 17:03:22 +0000 (18:03 +0100)]
update odbc-sqlite3 queries in regression tests

8 years agoMerge pull request #4650 from zeha/api-multibackend-serial0
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

8 years agoMerge pull request #4585 from tuxis-ie/pdnsutil-show-owner
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

8 years agoMerge pull request #4625 from rgacogne/auth-utility-random
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()`

8 years agoMerge pull request #4635 from rgacogne/rec-stats-ringbuffer-4633
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

8 years agoMerge pull request #4657 from rgacogne/dnsdist-include-dir
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)`

8 years agoMerge pull request #4664 from rgacogne/switch-to-https-whenever-possible
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

8 years agoMerge pull request #4665 from Watnuss/patch-1
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

8 years agoMerge pull request #4676 from rwfeldmann/master
Peter van Dijk [Fri, 11 Nov 2016 17:56:17 +0000 (18:56 +0100)]
Merge pull request #4676 from rwfeldmann/master

Update dnsupdate.md

8 years agoMerge pull request #4674 from pieterlexis/centos-6-recursor-protobuf
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

8 years agoUpdate dnsupdate.md
rwfeldmann [Fri, 11 Nov 2016 16:49:14 +0000 (09:49 -0700)]
Update dnsupdate.md

Added the SQL statements for adding the ALLOW-DNSUPDATE-FROM for the reverse zone. This was needed to make dnsupdate work completely on my personal PowerDNS server when updated remotely from my Sophos UTM. Without it, no records were added to the reverse lookup zone when dhcpd pushed updates.

8 years agoMerge pull request #4672 from pieterlexis/prime-root
Pieter Lexis [Fri, 11 Nov 2016 14:14:45 +0000 (15:14 +0100)]
Merge pull request #4672 from pieterlexis/prime-root

On (re-)priming, fetch the root NS records

8 years agoUpdate boost requirement for DNSName
Pieter Lexis [Fri, 11 Nov 2016 13:24:02 +0000 (14:24 +0100)]
Update boost requirement for DNSName

This version is known to work (CentOS 7)

8 years agoAdd protobuf support to EL6 packages
Pieter Lexis [Fri, 11 Nov 2016 12:41:28 +0000 (13:41 +0100)]
Add protobuf support to EL6 packages

8 years agoOn (re-)priming, fetch the root NS records
Pieter Lexis [Thu, 10 Nov 2016 12:56:58 +0000 (13:56 +0100)]
On (re-)priming, fetch the root NS records

8 years agoMerge pull request #4646 from Habbie/lua-except-unnest
Peter van Dijk [Wed, 9 Nov 2016 10:23:24 +0000 (11:23 +0100)]
Merge pull request #4646 from Habbie/lua-except-unnest

extract nested exception from Luawrapper

8 years agoMerge pull request #4632 from ahupowerdns/newserver-bloody-error
Remi Gacogne [Wed, 9 Nov 2016 09:10:28 +0000 (10:10 +0100)]
Merge pull request #4632 from ahupowerdns/newserver-bloody-error

improve dnsdist error message on a common typo/config mistake

8 years agoMerge pull request #4640 from pieterlexis/dnsdist-no-shutdown-on-maintenance-error
Remi Gacogne [Wed, 9 Nov 2016 09:08:22 +0000 (10:08 +0100)]
Merge pull request #4640 from pieterlexis/dnsdist-no-shutdown-on-maintenance-error

Don't exit dnsdist on an exception in maintenance

8 years agoMerge pull request #4659 from Habbie/docnit
Remi Gacogne [Wed, 9 Nov 2016 09:01:20 +0000 (10:01 +0100)]
Merge pull request #4659 from Habbie/docnit

nit

8 years agoMerge pull request #4668 from ton31337/Fix/return_instead_of_thrown_an_error
Peter van Dijk [Tue, 8 Nov 2016 09:58:15 +0000 (10:58 +0100)]
Merge pull request #4668 from ton31337/Fix/return_instead_of_thrown_an_error

Do not thrown an error for get() if zone was not found (master)

8 years agodnsdist: Document that `MacAddrAction()` is only supported on Linux
Remi Gacogne [Tue, 8 Nov 2016 09:52:30 +0000 (10:52 +0100)]
dnsdist: Document that `MacAddrAction()` is only supported on Linux

8 years agoDo not thrown an error for get() if zone was not found
Donatas Abraitis [Tue, 8 Nov 2016 08:52:12 +0000 (10:52 +0200)]
Do not thrown an error for get() if zone was not found

8 years agoClarification and Pointer to the Master/Slave setup
Watnuss [Mon, 7 Nov 2016 15:34:06 +0000 (16:34 +0100)]
Clarification and Pointer to the Master/Slave setup

Head some troubles getting all the pointers in the documentation for a working master/slave setup. I think there should be a place where all requirements are at least listed. Maybe another location or form of presentation is better, but this page and presentation is something that would have helped me.

8 years agoupdate dnsdist manpage to remove mention of 'no cache' and 'no thinking'. Thanks J!
bert hubert [Mon, 7 Nov 2016 13:06:36 +0000 (14:06 +0100)]
update dnsdist manpage to remove mention of 'no cache' and 'no thinking'. Thanks J!

8 years agoSwitch from HTTP to HTTPS whenever possible
Remi Gacogne [Mon, 7 Nov 2016 10:06:39 +0000 (11:06 +0100)]
Switch from HTTP to HTTPS whenever possible

Let's be good citizens. Reported by e3amn2l.

8 years agonit
Peter van Dijk [Thu, 3 Nov 2016 13:45:08 +0000 (14:45 +0100)]
nit

8 years agodnsdist: Add `includeDirectory(dir)`
Remi Gacogne [Thu, 3 Nov 2016 11:40:25 +0000 (12:40 +0100)]
dnsdist: Add `includeDirectory(dir)`

8 years agodnsdist: Fix destination address reporting
Remi Gacogne [Wed, 2 Nov 2016 10:44:14 +0000 (11:44 +0100)]
dnsdist: Fix destination address reporting

Over TCP the destination address was "0.0.0.0" when bound to an "any"
address. Over UDP, the destination address what always unset when
processing the response, except when bound to an "any" address.

8 years agoMerge pull request #4518 from rgacogne/dnsdist-dynblock-action
Remi Gacogne [Wed, 2 Nov 2016 08:56:00 +0000 (09:56 +0100)]
Merge pull request #4518 from rgacogne/dnsdist-dynblock-action

dnsdist: Fix dynblocks over TCP, allow refusing dyn blocked queries

8 years agoMerge pull request #4653 from rgacogne/dnsdist-stats-from-lua
Remi Gacogne [Wed, 2 Nov 2016 08:52:18 +0000 (09:52 +0100)]
Merge pull request #4653 from rgacogne/dnsdist-stats-from-lua

dnsdist: Add `getStatisticsCounters()` to access counters from Lua

8 years agoDon't exit dnsdist on an exception in maintenance
Pieter Lexis [Wed, 26 Oct 2016 17:32:23 +0000 (19:32 +0200)]
Don't exit dnsdist on an exception in maintenance

This change logs every minute if the maintenance function throws an
exception.

8 years agodnsdist: Add `getStatisticsCounters()` to access counters from Lua
Remi Gacogne [Mon, 31 Oct 2016 10:49:47 +0000 (11:49 +0100)]
dnsdist: Add `getStatisticsCounters()` to access counters from Lua

8 years agoMerge pull request #4573 from rgacogne/openssl-no-ecdsa-fix
Remi Gacogne [Mon, 31 Oct 2016 08:54:24 +0000 (09:54 +0100)]
Merge pull request #4573 from rgacogne/openssl-no-ecdsa-fix

Fix building with ECDSA support disabled in libcrypto

8 years agobindbackend: do not corrupt data supplied by other backends in getAllDomains
Christian Hofstaedtler [Sat, 29 Oct 2016 14:01:32 +0000 (16:01 +0200)]
bindbackend: do not corrupt data supplied by other backends in getAllDomains

8 years agoAdd test demonstrating issue #4328
Christian Hofstaedtler [Sat, 29 Oct 2016 13:36:38 +0000 (15:36 +0200)]
Add test demonstrating issue #4328

Where, when bindbackend is loaded, serials show up as zero in domain listing.

8 years agoDocument dq.data (from @Habbie) (#4648)
Elad Efrat [Fri, 28 Oct 2016 17:04:46 +0000 (20:04 +0300)]
Document dq.data (from @Habbie) (#4648)

Document dq.data (from @Habbie)

8 years agoMerge pull request #4629 from pieterlexis/issue-4466
Peter van Dijk [Fri, 28 Oct 2016 13:42:44 +0000 (15:42 +0200)]
Merge pull request #4629 from pieterlexis/issue-4466

Handle CNAMEs at the apex of secure zones to other secure zones

8 years agoextract nested exception from Luawrapper
Peter van Dijk [Fri, 28 Oct 2016 13:31:53 +0000 (15:31 +0200)]
extract nested exception from Luawrapper

Before:
Oct 28 15:30:34 STL error (www.foobar.com/A from 127.0.0.1): Exception thrown by a callback function called by Lua

After:
Oct 28 15:30:34 STL error (www.foobar.com/A from 127.0.0.1): Exception thrown by a callback function called by Lua. Extra info: Found . in wrong position in DNSName www.foobar.com..internal

reported by @elad, thanks!

8 years agodnsdist: The configuration file is dnsdist.conf, not dnsdistconf.lua
Remi Gacogne [Wed, 26 Oct 2016 10:56:22 +0000 (12:56 +0200)]
dnsdist: The configuration file is dnsdist.conf, not dnsdistconf.lua

8 years agoMerge pull request #4577 from rgacogne/rec-protobuf-tcp-query-source-dest
Remi Gacogne [Wed, 26 Oct 2016 09:48:00 +0000 (11:48 +0200)]
Merge pull request #4577 from rgacogne/rec-protobuf-tcp-query-source-dest

rec: Fix src/dest inversion in the protobuf message for TCP queries

8 years agoMerge pull request #4596 from rgacogne/dnsdist-default-ma-tcp-queued-conns
Remi Gacogne [Wed, 26 Oct 2016 09:46:17 +0000 (11:46 +0200)]
Merge pull request #4596 from rgacogne/dnsdist-default-ma-tcp-queued-conns

dnsdist: Change the default max number of queued TCP conns to 1000

8 years agorec: Don't crash on an empty query ring
Remi Gacogne [Wed, 26 Oct 2016 08:00:39 +0000 (10:00 +0200)]
rec: Don't crash on an empty query ring

It obviously happens if stats-ringbuffer-entries is set to 0.