]>
granicus.if.org Git - pdns/log
Remi Gacogne [Thu, 5 Jan 2017 08:48:26 +0000 (09:48 +0100)]
dnsdist: Update the website's frontage for 1.1.0
bert hubert [Wed, 4 Jan 2017 21:39:06 +0000 (22:39 +0100)]
improve comment on getaddrinfo
Remi Gacogne [Thu, 29 Dec 2016 14:55:18 +0000 (15:55 +0100)]
Merge pull request #4823 from rgacogne/dnsdist-110-changelog
dnsdist: Update ChangeLog for 1.1.0
Remi Gacogne [Thu, 29 Dec 2016 12:21:46 +0000 (13:21 +0100)]
Merge pull request #4812 from rgacogne/dnsdist-qdcount-zero-responses
dnsdist: Handle header-only responses, handle Refused as Servfail in the cache
Remi Gacogne [Thu, 29 Dec 2016 11:21:40 +0000 (12:21 +0100)]
dnsdist: Update ChangeLog for 1.1.0
Remi Gacogne [Thu, 29 Dec 2016 10:46:36 +0000 (11:46 +0100)]
dnsdist: Check that cached responses are >= sizeof(dnsheader)
The check is done before inserting the response into the cache, but
it feels safer to check it again before passing it to `memcpy()`.
We check that the cached response is larger than
`sizeof(dnsheader) + qname` afterwards, but the previous commit
moved the header copy before that check.
Remi Gacogne [Thu, 29 Dec 2016 09:49:34 +0000 (10:49 +0100)]
Merge pull request #4762 from rgacogne/suffixmatchnode-existing-node
SuffixMatchNode: Fix an insertion issue for an existing node
Pieter Lexis [Tue, 27 Dec 2016 06:29:25 +0000 (07:29 +0100)]
Merge pull request #4719 from tuxis-ie/pdnsutil.list-zone
Print $ORIGIN . on list-zone, so the output can be used in load-zone
Pieter Lexis [Tue, 27 Dec 2016 06:28:53 +0000 (07:28 +0100)]
Merge pull request #4624 from rgacogne/auth-tcp-rfc7766-section10
auth: Add TCP management options described in section 10 of rfc7766
Pieter Lexis [Tue, 27 Dec 2016 06:28:21 +0000 (07:28 +0100)]
Merge pull request #4606 from mind04/nsec-dnsname
Use dnsname for nsec generation
Remi Gacogne [Fri, 23 Dec 2016 09:25:45 +0000 (10:25 +0100)]
dnsdist: Handle Refused as ServFail in the packet cache
Remi Gacogne [Thu, 22 Dec 2016 12:46:09 +0000 (13:46 +0100)]
dnsdist: Handle responses with qdcount == 0
@rygl reported that unbound at least sends `Refused` responses
containing only the DNS header.
bert hubert [Wed, 21 Dec 2016 08:51:38 +0000 (09:51 +0100)]
make it less wrong
bert hubert [Wed, 21 Dec 2016 08:48:27 +0000 (09:48 +0100)]
talks about 3.0
Pieter Lexis [Wed, 21 Dec 2016 08:19:20 +0000 (09:19 +0100)]
Merge pull request #4789 from rgacogne/rec-prepend-label-get-zone-cut
rec: Don't choke on escaped content in getZoneCuts()
Pieter Lexis [Wed, 21 Dec 2016 08:18:53 +0000 (09:18 +0100)]
Merge pull request #4790 from pieterlexis/manpage-fixes
Revamp the manpage building
Pieter Lexis [Wed, 21 Dec 2016 08:18:40 +0000 (09:18 +0100)]
Merge pull request #4791 from rgacogne/rawlabels-cleanup
Auth: Cleanup `DNSName::getRawLabels()` usage
Pieter Lexis [Wed, 21 Dec 2016 08:18:25 +0000 (09:18 +0100)]
Merge pull request #4793 from pieterlexis/openbsd-hostname
Don't call `hostname -f` on openbsd
Remi Gacogne [Tue, 20 Dec 2016 13:33:59 +0000 (14:33 +0100)]
dnsdist: Add `DNSAction.Refused` to the documentation
Reported by @rygl (thanks!).
Pieter Lexis [Tue, 20 Dec 2016 12:36:48 +0000 (13:36 +0100)]
Merge pull request #4781 from zeha/api-comment-zero-ttl
API: correctly take TTL from first record even if we are at the last comment
Pieter Lexis [Tue, 20 Dec 2016 12:36:34 +0000 (13:36 +0100)]
Merge pull request #4777 from pieterlexis/issue-4771
Only delegate if NS's are below apex in auth-zones
Pieter Lexis [Tue, 20 Dec 2016 12:36:11 +0000 (13:36 +0100)]
Merge pull request #4774 from pieterlexis/document-systemd-unit-edit
Document disable-syslog intereaction with systemd
bert hubert [Tue, 20 Dec 2016 10:40:33 +0000 (11:40 +0100)]
fix SOA record in HOWTO
Remi Gacogne [Tue, 20 Dec 2016 08:50:32 +0000 (09:50 +0100)]
Merge pull request #4623 from rgacogne/rec-tcp-rfc7766-section10
rec: Add TCP management options described in section 10 of rfc7766
Remi Gacogne [Mon, 19 Sep 2016 15:09:35 +0000 (17:09 +0200)]
auth: Add TCP management options described in section 10 of rfc7766
* max-tcp-connection-duration
* max-tcp-connections-per-client
* max-tcp-transactions-per-conn
* tcp-idle-timeout
Remi Gacogne [Tue, 20 Dec 2016 08:45:23 +0000 (09:45 +0100)]
Merge pull request #4758 from rgacogne/rec-dq-on-stack
rec: Allocate the DNSQuestion `dq` object on the stack
Remi Gacogne [Tue, 20 Dec 2016 08:40:00 +0000 (09:40 +0100)]
Merge pull request #4784 from rgacogne/dnsdist-doc-first-available
dnsdist: Fix the `firstAvailable` policy description
Remi Gacogne [Tue, 20 Dec 2016 08:27:09 +0000 (09:27 +0100)]
Merge pull request #4783 from rgacogne/atomic-powerpc
Add -latomic on powerpc
Pieter Lexis [Mon, 19 Dec 2016 17:02:24 +0000 (18:02 +0100)]
Don't call `hostname -f` on openbsd
Closes #2579
Remi Gacogne [Mon, 19 Dec 2016 16:43:18 +0000 (17:43 +0100)]
Auth: Cleanup `DNSName::getRawLabels()` usage
No real issue I'm aware of, but it's cleaner that way.
Pieter Lexis [Mon, 19 Dec 2016 15:55:12 +0000 (16:55 +0100)]
Revamp the manpage building
* Always dist the relevant manpages
* Don't build tools manpages is configured with `--disable-tools`
(Closes #4643)
* Don't remove manpages if they cannot be rebuilt (Closes #3306)
Remi Gacogne [Mon, 19 Dec 2016 15:27:14 +0000 (16:27 +0100)]
rec: Don't choke on escaped content in getZoneCuts()
`getZoneCuts()` was constructing a `DNSName` by passing a raw label returned
from `DNSName::getRawLabels()` as a string. The constructor then tried to handle
escaped characters from the string, resulting in a different `DNSName` than the
expected one. This caused the `qname != begin` condition to be false even after
every label in `labelsToAdd` had been added, causing an UB by calling
`std::vector::back()` on an empty vector.
Using `DNSName::prependRawLabel()` instead prevents this issue since the string is
not escaped.
Remi Gacogne [Mon, 19 Dec 2016 13:29:34 +0000 (14:29 +0100)]
Merge pull request #3869 from rgacogne/rec-outgoing-protobuf
rec: Log outgoing queries / incoming responses via protobuf
Remi Gacogne [Mon, 19 Dec 2016 08:58:53 +0000 (09:58 +0100)]
dnsdist: Fix the `firstAvailable` policy description
It doesn't use the server's `order`, except when falling back to
`leastOutstanding`.
Remi Gacogne [Sun, 18 Dec 2016 15:03:47 +0000 (16:03 +0100)]
Add -latomic on powerpc
Christian Hofstaedtler [Sat, 17 Dec 2016 16:43:46 +0000 (17:43 +0100)]
API: correctly take TTL from first record even if we are at the last comment
Fixes #4766.
Christian Hofstaedtler [Sat, 17 Dec 2016 16:17:20 +0000 (17:17 +0100)]
API: Add test demonstrating issue #4766
Pieter Lexis [Fri, 16 Dec 2016 17:43:28 +0000 (18:43 +0100)]
Merge pull request #4539 from pieterlexis/remove-unused-var
Remove 'kind' param in DNSBackend::getDomainKeys
Pieter Lexis [Fri, 16 Dec 2016 14:24:13 +0000 (15:24 +0100)]
rec: only delegate if NS's are below apex in auth-zones
As:
1. we **are** authoritative for the zone named at the apex
2. We would servfail because we could get an upward referral
Closes #4771
Pieter Lexis [Fri, 16 Dec 2016 13:24:39 +0000 (14:24 +0100)]
Document disable-syslog intereaction with systemd
See #4713 for context
Pieter Lexis [Fri, 16 Dec 2016 11:39:17 +0000 (12:39 +0100)]
Merge pull request #4744 from rgacogne/handle-closesocket-excp
Handle exceptions raised by `closesocket()`
Remi Gacogne [Fri, 16 Dec 2016 09:40:55 +0000 (10:40 +0100)]
rec: Wait until after daemonizing to start the outgoing protobuf thread
Remi Gacogne [Fri, 4 Nov 2016 16:28:22 +0000 (17:28 +0100)]
rec: Log outgoing queries / incoming responses via protobuf
Pieter Lexis [Fri, 16 Dec 2016 08:50:56 +0000 (09:50 +0100)]
Merge pull request #4584 from tuxis-ie/pdnsutil-account
Allow setting the account of a zone via pdnsutil
Pieter Lexis [Fri, 16 Dec 2016 08:39:22 +0000 (09:39 +0100)]
Merge pull request #4627 from tuxis-ie/clearify-soa-edit-api-doc
Add link to options of SOA-EDIT-API
Pieter Lexis [Fri, 16 Dec 2016 08:38:16 +0000 (09:38 +0100)]
Merge pull request #4767 from Habbie/rpz-hidettl
hide ttl in RPZ tests to avoid random failures
Pieter Lexis [Fri, 16 Dec 2016 08:38:02 +0000 (09:38 +0100)]
Merge pull request #4772 from pieterlexis/dnsdist-contrib-init
Fix dnsdist initscript config check
Pieter Lexis [Thu, 15 Dec 2016 12:53:35 +0000 (13:53 +0100)]
Fix dnsdist initscript config check
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 [Thu, 15 Dec 2016 09:23:04 +0000 (10:23 +0100)]
rec: Clean up a weird construct left over from the shared_ptr -> stack move
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 13:35:07 +0000 (14:35 +0100)]
hide ttl in RPZ tests to avoid random failures
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 16:16:11 +0000 (17:16 +0100)]
SuffixMatchNode: Fix insertion issue for an existing node
If the node we are about to insert already existed as an intermediary
one, we need to mark it as an end node.
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 09:04:13 +0000 (10:04 +0100)]
rec: Allocate the DNSQuestion `dq` object on the stack
We don't need to allocate a `shared_ptr` for each query.
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 [Wed, 5 Oct 2016 14:48:00 +0000 (16:48 +0200)]
Remove 'kind' param in DNSBackend::getDomainKeys
It was unused anyway. Closes #4493
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
Mark Schouten [Thu, 8 Dec 2016 14:05:24 +0000 (15:05 +0100)]
Add documentation in the manpage
Mark Schouten [Tue, 18 Oct 2016 14:12:19 +0000 (16:12 +0200)]
Remove useless 'meta'
Mark Schouten [Tue, 18 Oct 2016 13:51:36 +0000 (15:51 +0200)]
Allow setting the account of a zone via pdnsutil
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