]> granicus.if.org Git - pdns/log
pdns
6 years agoauth: Always bind the results array after executing a statement
Remi Gacogne [Tue, 2 Jan 2018 16:03:47 +0000 (17:03 +0100)]
auth: Always bind the results array after executing a statement

We will reuse the same array most of the time, but it turns out that
calling mysql_stmt_next_result() followed by mysql_stmt_store_result()
invalidates the existing binding (the first one sets stmt->bind_result_done
to false, causing the second to reset the existing binding).

6 years agoMerge pull request #6126 from gryphius/os-doc-fixes
Peter van Dijk [Sat, 30 Dec 2017 16:25:43 +0000 (17:25 +0100)]
Merge pull request #6126 from gryphius/os-doc-fixes

Os doc fixes

6 years agocompile options reference the Recursor instead of the Authoritative server
Oli Schacher [Sat, 30 Dec 2017 12:24:23 +0000 (13:24 +0100)]
compile options reference the Recursor instead of the Authoritative server

6 years agofix partial Partial
Oli Schacher [Sat, 30 Dec 2017 12:20:55 +0000 (13:20 +0100)]
fix partial Partial

6 years agoMerge pull request #6122 from zeha/ldapbackend-get
Remi Gacogne [Thu, 28 Dec 2017 20:04:05 +0000 (21:04 +0100)]
Merge pull request #6122 from zeha/ldapbackend-get

ldapbackend: fix listing zones incl. AXFR

6 years agoldapbackend: fix listing zones incl. AXFR
Chris Hofstaedtler [Thu, 28 Dec 2017 17:52:02 +0000 (18:52 +0100)]
ldapbackend: fix listing zones incl. AXFR

list() did not initialise m_qtype, but get() looks at it.

7 years agoMerge pull request #6108 from Habbie/remove-fake-ENTs
Pieter Lexis [Fri, 22 Dec 2017 11:30:32 +0000 (12:30 +0100)]
Merge pull request #6108 from Habbie/remove-fake-ENTs

auth: Remove fake NTs from testing zones

7 years agoMerge pull request #6107 from rgacogne/lua-auth-getrrs-uninitialized-index
Remi Gacogne [Thu, 21 Dec 2017 09:41:03 +0000 (10:41 +0100)]
Merge pull request #6107 from rgacogne/lua-auth-getrrs-uninitialized-index

auth: Fix uninitialized index in Lua's DNSPacket::getRRS() binding

7 years agoremove fake ENTs
Peter van Dijk [Mon, 18 Dec 2017 15:49:45 +0000 (16:49 +0100)]
remove fake ENTs

7 years agoadjust tinydns data for #6029
Peter van Dijk [Mon, 18 Dec 2017 20:07:46 +0000 (21:07 +0100)]
adjust tinydns data for #6029

7 years agoauth: Fix uninitialized index in Lua's DNSPacket::getRRS() binding
Remi Gacogne [Tue, 19 Dec 2017 09:01:16 +0000 (10:01 +0100)]
auth: Fix uninitialized index in Lua's DNSPacket::getRRS() binding

7 years agoMerge pull request #6106 from pieterlexis/issue-6105-dnsdist-opcode-docs
Remi Gacogne [Tue, 19 Dec 2017 08:56:26 +0000 (09:56 +0100)]
Merge pull request #6106 from pieterlexis/issue-6105-dnsdist-opcode-docs

dnsdist docs: Fix opcode links and sphinx warnings

7 years agodnsdist docs: Fix several warnings
Pieter Lexis [Tue, 19 Dec 2017 06:22:11 +0000 (07:22 +0100)]
dnsdist docs: Fix several warnings

7 years agodocs: Fix links for constants
Pieter Lexis [Tue, 19 Dec 2017 06:15:57 +0000 (07:15 +0100)]
docs: Fix links for constants

Closes #6105

7 years agoMerge pull request #6103 from Habbie/bounds-6089
bert hubert [Mon, 18 Dec 2017 18:17:16 +0000 (19:17 +0100)]
Merge pull request #6103 from Habbie/bounds-6089

auth: fix out of bounds exception in CAA processing, fixes #6089

7 years agoauth: fix out of bounds exception in CAA processing, fixes #6089
Peter van Dijk [Mon, 18 Dec 2017 13:21:13 +0000 (14:21 +0100)]
auth: fix out of bounds exception in CAA processing, fixes #6089

7 years agoMerge pull request #6096 from alexjfisher/docs_database_slaves
Pieter Lexis [Mon, 18 Dec 2017 12:29:28 +0000 (13:29 +0100)]
Merge pull request #6096 from alexjfisher/docs_database_slaves

Docs: Add note about only needing ro db access

7 years agoMerge pull request #5390 from cmouse/lua
bert hubert [Mon, 18 Dec 2017 11:41:14 +0000 (12:41 +0100)]
Merge pull request #5390 from cmouse/lua

Remove old Lua code

7 years agofix check_stest_source
Aki Tuomi [Fri, 7 Jul 2017 15:47:29 +0000 (18:47 +0300)]
fix check_stest_source

7 years agofix recursor prequery scripts
Aki Tuomi [Fri, 7 Jul 2017 15:46:47 +0000 (18:46 +0300)]
fix recursor prequery scripts

7 years agotestrunner: Add unit test for lua-auth4.cc
Aki Tuomi [Sun, 11 Jun 2017 22:54:18 +0000 (01:54 +0300)]
testrunner: Add unit test for lua-auth4.cc

7 years agolua-auth4: updatePolicy should default to accept when not present
Aki Tuomi [Mon, 26 Jun 2017 11:01:06 +0000 (14:01 +0300)]
lua-auth4: updatePolicy should default to accept when not present

7 years agolua-auth: Remove unused sources
Aki Tuomi [Sun, 11 Jun 2017 21:37:08 +0000 (00:37 +0300)]
lua-auth: Remove unused sources

7 years agolua-auth4: Move prequery to new lua framework
Aki Tuomi [Sun, 11 Jun 2017 16:47:30 +0000 (19:47 +0300)]
lua-auth4: Move prequery to new lua framework

This changes how prequery gets called

7 years agolua-auth4: Add DNSPacket to Lua
Aki Tuomi [Sun, 11 Jun 2017 18:49:03 +0000 (21:49 +0300)]
lua-auth4: Add DNSPacket to Lua

7 years agolua-base4: Refactor to load from non-file sources
Aki Tuomi [Sun, 11 Jun 2017 21:02:32 +0000 (00:02 +0300)]
lua-base4: Refactor to load from non-file sources

7 years agoUse BaseLua4 with both auth and recursor
Aki Tuomi [Sun, 11 Jun 2017 21:08:55 +0000 (00:08 +0300)]
Use BaseLua4 with both auth and recursor

7 years agolua-base4: Add base lua for auth and recursor
Aki Tuomi [Sun, 11 Jun 2017 20:53:12 +0000 (23:53 +0300)]
lua-base4: Add base lua for auth and recursor

Allows code sharing between recursor and auth

7 years agoext/luawrapper: Add toString and eq to LuaContext
Aki Tuomi [Fri, 7 Jul 2017 15:36:26 +0000 (18:36 +0300)]
ext/luawrapper: Add toString and eq to LuaContext

https://github.com/ahupowerdns/luawrapper/pull/35

7 years agoMerge pull request #5947 from rgacogne/dnsdist-split-lua
Remi Gacogne [Mon, 18 Dec 2017 10:11:30 +0000 (11:11 +0100)]
Merge pull request #5947 from rgacogne/dnsdist-split-lua

dnsdist: Split the Lua files, remove deprecated functions

7 years agoMerge pull request #6042 from rgacogne/rec-duplicate-ns-ip
Remi Gacogne [Fri, 15 Dec 2017 20:13:45 +0000 (21:13 +0100)]
Merge pull request #6042 from rgacogne/rec-duplicate-ns-ip

rec: Don't cache merged answers from different sections in a single packet

7 years agoMerge pull request #6092 from rgacogne/rec-fix-nsec3-wildcard-labels
Remi Gacogne [Fri, 15 Dec 2017 16:46:18 +0000 (17:46 +0100)]
Merge pull request #6092 from rgacogne/rec-fix-nsec3-wildcard-labels

rec: Fix the computation of the closest encloser for positive answers

7 years agodnsdist: Split the Lua files, remove deprecated functions
Remi Gacogne [Fri, 10 Nov 2017 15:43:43 +0000 (16:43 +0100)]
dnsdist: Split the Lua files, remove deprecated functions

7 years agorec: Don't cached merged answers from different sections in a single packet
Remi Gacogne [Mon, 4 Dec 2017 09:38:43 +0000 (10:38 +0100)]
rec: Don't cached merged answers from different sections in a single packet

We incorrectly merged answers for the same qname and qtype coming from
a single packet but from different sections when storing them in the
cache. It resulted in duplicates for the IP addresses of some NS, for
example.

7 years agorec: Switch the exception thrown by `getDenial()` to a `PDNSException`
Remi Gacogne [Fri, 15 Dec 2017 13:30:46 +0000 (14:30 +0100)]
rec: Switch the exception thrown by `getDenial()` to a `PDNSException`

7 years agoMerge pull request #6037 from rgacogne/dnsdist-tags
Remi Gacogne [Fri, 15 Dec 2017 13:29:26 +0000 (14:29 +0100)]
Merge pull request #6037 from rgacogne/dnsdist-tags

dnsdist: Implement tag-based routing, add missing LuaAction and LuaResponseAction

7 years agoDocs: Add note about only needing ro db access
Alexander Fisher [Fri, 15 Dec 2017 13:07:42 +0000 (13:07 +0000)]
Docs: Add note about only needing ro db access

7 years agoMerge pull request #5929 from rgacogne/dnsdist-check-class
Remi Gacogne [Fri, 15 Dec 2017 10:48:47 +0000 (11:48 +0100)]
Merge pull request #5929 from rgacogne/dnsdist-check-class

dnsdist: Add a class option to health checks

7 years agoMerge pull request #6094 from rgacogne/dnsdist-outstanding-responder-exception
Remi Gacogne [Fri, 15 Dec 2017 09:39:45 +0000 (10:39 +0100)]
Merge pull request #6094 from rgacogne/dnsdist-outstanding-responder-exception

dnsdist: Fix the oustanding counter when an exception is raised

7 years agodnsdist: Fix a typo in the IDS outstanding counter comment
Remi Gacogne [Thu, 14 Dec 2017 22:13:36 +0000 (23:13 +0100)]
dnsdist: Fix a typo in the IDS outstanding counter comment

7 years agodnsdist: Fix the oustanding counter when an exception is raised
Remi Gacogne [Thu, 14 Dec 2017 11:28:34 +0000 (12:28 +0100)]
dnsdist: Fix the oustanding counter when an exception is raised

If an exception is raised in the responder thread after the outstanding
queries counter has been decremented, but before we could mark the
state as processed, the same state would be processed again and the
counter decremented a second time, either because of a duplicate
answer or more likely by the timeout handler.
This commit simply increase back the outstanding counter when such
an exception occurs.

7 years agorec: Fix the computation of the closest encloser for positive answers
Remi Gacogne [Wed, 13 Dec 2017 14:03:24 +0000 (15:03 +0100)]
rec: Fix the computation of the closest encloser for positive answers

When the positive answer is expanded from a wildcard with NSEC3,
the closest encloser is not always parent of the qname, depending
on the number of labels in the initial wildcard.

7 years agoMerge pull request #6065 from peterthomassen/patch-1
Pieter Lexis [Tue, 12 Dec 2017 15:50:49 +0000 (16:50 +0100)]
Merge pull request #6065 from peterthomassen/patch-1

docs: API: clarify what happens if rrsets is empty

7 years agoMerge pull request #6062 from pieterlexis/rec-centos6-piddir
Pieter Lexis [Tue, 12 Dec 2017 15:50:29 +0000 (16:50 +0100)]
Merge pull request #6062 from pieterlexis/rec-centos6-piddir

Fix PIDDIR detection on CentOS 6

7 years agoMerge pull request #6076 from pieterlexis/api-zone-endpoint-404
Pieter Lexis [Tue, 12 Dec 2017 15:50:12 +0000 (16:50 +0100)]
Merge pull request #6076 from pieterlexis/api-zone-endpoint-404

API: return 404 for non-existing zones

7 years agoMerge pull request #6073 from zeha/one-unused
Remi Gacogne [Tue, 12 Dec 2017 09:07:34 +0000 (10:07 +0100)]
Merge pull request #6073 from zeha/one-unused

Quiet unused variable warning on macOS

7 years agoMerge pull request #6077 from fobser/missing_include
Remi Gacogne [Tue, 12 Dec 2017 09:07:12 +0000 (10:07 +0100)]
Merge pull request #6077 from fobser/missing_include

Include unistd.h for chroot(2) et al.

7 years agoMerge pull request #6085 from rgacogne/rec-skip-non-in
Remi Gacogne [Tue, 12 Dec 2017 09:06:34 +0000 (10:06 +0100)]
Merge pull request #6085 from rgacogne/rec-skip-non-in

rec: Don't process records for another class than IN

7 years agoMerge pull request #6086 from rgacogne/rec-test-time
Remi Gacogne [Tue, 12 Dec 2017 09:05:54 +0000 (10:05 +0100)]
Merge pull request #6086 from rgacogne/rec-test-time

rec: Use the SyncRes time in our unit tests when checking cache validity

7 years agorec: Use the SyncRes time in our unit tests when checking cache validity
Remi Gacogne [Mon, 11 Dec 2017 12:46:13 +0000 (13:46 +0100)]
rec: Use the SyncRes time in our unit tests when checking cache validity

This might not fix our apparently random failures, but it will at least
remove on possible cause.

7 years agoFix date in advisory 2017-08
Pieter Lexis [Mon, 11 Dec 2017 12:12:54 +0000 (13:12 +0100)]
Fix date in advisory 2017-08

7 years agoFix date in advisory 2017-08
Pieter Lexis [Mon, 11 Dec 2017 12:12:08 +0000 (13:12 +0100)]
Fix date in advisory 2017-08

7 years agoMerge pull request #6084 from rgacogne/advisory-2017-08
Pieter Lexis [Mon, 11 Dec 2017 12:09:13 +0000 (13:09 +0100)]
Merge pull request #6084 from rgacogne/advisory-2017-08

Advisory 2017-08

7 years agoAdd advisory 2017-08
Remi Gacogne [Fri, 1 Dec 2017 11:00:45 +0000 (12:00 +0100)]
Add advisory 2017-08

7 years agoMerge pull request #6083 from aerique:feature/update-rec-4.0.x-changelog.
aerique [Mon, 11 Dec 2017 12:01:31 +0000 (13:01 +0100)]
Merge pull request #6083 from aerique:feature/update-rec-4.0.x-changelog.

Update changelog and secpoll for rec-4.0.8.

7 years agoMerge pull request #6072 from Habbie/dnsdist-inclientstartup
Peter van Dijk [Mon, 11 Dec 2017 09:26:37 +0000 (10:26 +0100)]
Merge pull request #6072 from Habbie/dnsdist-inclientstartup

dnsdist: add inClientStartup() function

7 years agorec: Don't process records for another class than IN
Remi Gacogne [Wed, 29 Nov 2017 13:59:26 +0000 (14:59 +0100)]
rec: Don't process records for another class than IN

7 years agoInclude unistd.h for chroot(2) et al.
Florian Obser [Fri, 8 Dec 2017 16:07:49 +0000 (17:07 +0100)]
Include unistd.h for chroot(2) et al.

7 years agoAPI: return 404 for non-existing zones
Pieter Lexis [Fri, 8 Dec 2017 14:33:11 +0000 (15:33 +0100)]
API: return 404 for non-existing zones

This commit ensures that any request for a path inside a non-existing
zone returns an HTTP 404 code.

Closes #6074

7 years agoQuiet unused variable warning on macOS
Chris Hofstaedtler [Fri, 8 Dec 2017 12:28:28 +0000 (13:28 +0100)]
Quiet unused variable warning on macOS

7 years agodo not return true after startup is done
Peter van Dijk [Fri, 8 Dec 2017 09:44:26 +0000 (10:44 +0100)]
do not return true after startup is done

7 years agodnsdist: add inClientStartup() function
Peter van Dijk [Fri, 8 Dec 2017 09:32:56 +0000 (10:32 +0100)]
dnsdist: add inClientStartup() function

7 years agoMerge pull request #6057 from zeha/combo-ipv6
Remi Gacogne [Fri, 8 Dec 2017 09:18:47 +0000 (10:18 +0100)]
Merge pull request #6057 from zeha/combo-ipv6

Handle bracketed IPv6 addresses without ports

7 years agodocs: API: clarify what happens if rrsets is empty
Peter Thomassen [Thu, 7 Dec 2017 09:16:45 +0000 (10:16 +0100)]
docs: API: clarify what happens if rrsets is empty

7 years agoMerge pull request #6061 from rgacogne/docs-regression-tests-typos
Remi Gacogne [Wed, 6 Dec 2017 14:11:10 +0000 (15:11 +0100)]
Merge pull request #6061 from rgacogne/docs-regression-tests-typos

Docs: Fix minor typos in the regression tests README

7 years agoFix PIDDIR detection on CentOS 6
Pieter Lexis [Wed, 6 Dec 2017 14:02:30 +0000 (15:02 +0100)]
Fix PIDDIR detection on CentOS 6

Fixes #6051

7 years agoDrop useless if branch
Chris Hofstaedtler [Wed, 6 Dec 2017 09:44:08 +0000 (10:44 +0100)]
Drop useless if branch

7 years agoMerge pull request #6022 from rgacogne/dnsdist-api-pools-cache-hits
Remi Gacogne [Wed, 6 Dec 2017 09:07:39 +0000 (10:07 +0100)]
Merge pull request #6022 from rgacogne/dnsdist-api-pools-cache-hits

dnsdist: Add Pools, cacheHitResponseRules to the API

7 years agoDocs: Fix minor typos in the regression tests README
Remi Gacogne [Wed, 6 Dec 2017 09:03:11 +0000 (10:03 +0100)]
Docs: Fix minor typos in the regression tests README

7 years agoMerge pull request #6058 from pieterlexis/docs-from-swagger
Pieter Lexis [Wed, 6 Dec 2017 08:54:47 +0000 (09:54 +0100)]
Merge pull request #6058 from pieterlexis/docs-from-swagger

Auth: Generate API documentation based on swagger file

7 years agoMerge pull request #6059 from cyclops1982/docfix
Pieter Lexis [Wed, 6 Dec 2017 08:54:22 +0000 (09:54 +0100)]
Merge pull request #6059 from cyclops1982/docfix

Small changes to docs that can help contributors

7 years agoMerge pull request #6055 from rgacogne/rec-negcache-32
Pieter Lexis [Wed, 6 Dec 2017 08:52:22 +0000 (09:52 +0100)]
Merge pull request #6055 from rgacogne/rec-negcache-32

rec: Work around a RRSIG year-2038 issue in the negcache unit tests

7 years agoMove debian-jessie notes to a less prominent place
Ruben d'Arco [Tue, 5 Dec 2017 18:14:24 +0000 (18:14 +0000)]
Move debian-jessie notes to a less prominent place

7 years agoSmall notes on needed tools for tests
Ruben d'Arco [Tue, 5 Dec 2017 18:11:06 +0000 (18:11 +0000)]
Small notes on needed tools for tests

7 years agoAuth: Generate API documentation based on swagger file
Pieter Lexis [Tue, 21 Nov 2017 17:09:30 +0000 (18:09 +0100)]
Auth: Generate API documentation based on swagger file

7 years agoHandle bracketed IPv6 addresses without ports
Chris Hofstaedtler [Tue, 5 Dec 2017 17:13:25 +0000 (18:13 +0100)]
Handle bracketed IPv6 addresses without ports

dnsdist's newServer source parameter is documented to take values
of those forms (plus some more):
  - v4 address ("192.0.2.1")
  - v6 address ("2001:DB8::1")

For consistency, bracketed addresses should work too, and all of them
should have a test.

7 years agoSome utils that debian-jessie has in docs
Ruben d'Arco [Tue, 5 Dec 2017 16:46:04 +0000 (16:46 +0000)]
Some utils that debian-jessie has in docs

7 years agoFor building docs, virtualenv is needed.
Ruben d'Arco [Tue, 5 Dec 2017 16:39:15 +0000 (16:39 +0000)]
For building docs, virtualenv is needed.

7 years agorec: Work around a RRSIG year-2038 issue in the negcache unit tests
Remi Gacogne [Tue, 5 Dec 2017 13:47:39 +0000 (14:47 +0100)]
rec: Work around a RRSIG year-2038 issue in the negcache unit tests

On 32-bit OS with a signed 32-bit `time_t`, we have a known issue with
dates later than 2038 in `RecordTextWriter::xfrTime()`. For now we will
just use an earlier date than 2038 in these tests since the date has no
relevance there.

7 years agoMerge pull request #6012 from rgacogne/dnsdist-tcp-ka
Remi Gacogne [Tue, 5 Dec 2017 13:39:20 +0000 (14:39 +0100)]
Merge pull request #6012 from rgacogne/dnsdist-tcp-ka

dnsdist: Keep the TCP connection open on cache hit, generated answers

7 years agoMerge pull request #6043 from rgacogne/dnsdist-fix-servers-order
Remi Gacogne [Tue, 5 Dec 2017 13:38:39 +0000 (14:38 +0100)]
Merge pull request #6043 from rgacogne/dnsdist-fix-servers-order

dnsdist: Sort the servers based on their 'order' after it has been set

7 years agoMerge pull request #5862 from ffledgling/5854-swagger-api
Pieter Lexis [Tue, 5 Dec 2017 12:55:11 +0000 (13:55 +0100)]
Merge pull request #5862 from ffledgling/5854-swagger-api

Add Draft of swagger spec for Authoritative Server HTTP API

7 years agoSwagger: bump version
Pieter Lexis [Tue, 5 Dec 2017 11:24:23 +0000 (12:24 +0100)]
Swagger: bump version

7 years agoSwagger: update description
Pieter Lexis [Tue, 5 Dec 2017 11:24:02 +0000 (12:24 +0100)]
Swagger: update description

7 years agoMerge pull request #6046 from pieterlexis/rec-40-EOL
bert hubert [Tue, 5 Dec 2017 11:21:58 +0000 (12:21 +0100)]
Merge pull request #6046 from pieterlexis/rec-40-EOL

Recursor: update EOL statements

7 years agoRename listCryptokey to getCryptokey
Pieter Lexis [Tue, 5 Dec 2017 11:21:34 +0000 (12:21 +0100)]
Rename listCryptokey to getCryptokey

7 years agoMerge pull request #6047 from RvdE/patch-2
Pieter Lexis [Mon, 4 Dec 2017 18:56:13 +0000 (19:56 +0100)]
Merge pull request #6047 from RvdE/patch-2

Update recursion.rst

7 years agoMerge pull request #6033 from pieterlexis/doc-updates
Pieter Lexis [Mon, 4 Dec 2017 18:55:59 +0000 (19:55 +0100)]
Merge pull request #6033 from pieterlexis/doc-updates

A collection of documentation updates

7 years agoMerge pull request #5994 from zeha/macosnotes
Pieter Lexis [Mon, 4 Dec 2017 18:55:45 +0000 (19:55 +0100)]
Merge pull request #5994 from zeha/macosnotes

Update/add macOS compilation notes

7 years agoRecursor: Fix some manpage issues
Pieter Lexis [Fri, 1 Dec 2017 10:48:53 +0000 (11:48 +0100)]
Recursor: Fix some manpage issues

7 years agoUpdate recursion.rst
RvdE [Mon, 4 Dec 2017 15:23:05 +0000 (16:23 +0100)]
Update recursion.rst

Fix newServer statements in the dnsdist config and fix duplicate sesion 4.

7 years agoRecursor: update EOL statements
Pieter Lexis [Mon, 4 Dec 2017 15:14:06 +0000 (16:14 +0100)]
Recursor: update EOL statements

7 years agodnsdist: fix some manpage issues
Pieter Lexis [Fri, 1 Dec 2017 10:45:40 +0000 (11:45 +0100)]
dnsdist: fix some manpage issues

7 years agodocs: Fix the Authoritative Server manpages' intro
Pieter Lexis [Fri, 1 Dec 2017 10:35:46 +0000 (11:35 +0100)]
docs: Fix the Authoritative Server manpages' intro

Also set the name to PowerDNS Authoritative Server.

7 years agodocs: Document `newRemoteLogger` in dnsdist
Pieter Lexis [Fri, 1 Dec 2017 10:08:21 +0000 (11:08 +0100)]
docs: Document `newRemoteLogger` in dnsdist

7 years agoMerge pull request #6017 from aerique:feature/update-rec-4.1.0-changelog.
aerique [Mon, 4 Dec 2017 13:47:41 +0000 (14:47 +0100)]
Merge pull request #6017 from aerique:feature/update-rec-4.1.0-changelog.

Update changelog and secpoll for 4.1.0.

7 years agoMerge pull request #6041 from rgacogne/mplexer-time rec-4.1.0
Peter van Dijk [Mon, 4 Dec 2017 11:34:00 +0000 (12:34 +0100)]
Merge pull request #6041 from rgacogne/mplexer-time

Add the missing <sys/time.h> include to mplexer.hh for struct timeval

7 years agodnsdist: Sort the servers based on their 'order' after it has been set
Remi Gacogne [Mon, 4 Dec 2017 11:22:19 +0000 (12:22 +0100)]
dnsdist: Sort the servers based on their 'order' after it has been set

We keep the servers ordered inside their pools because it's easier
for the policies that way, so we sort them whenever a new one is
added. However we were doing the sorting _before_ the order of the
new server had been set, resulting in the last added server to be
sorted based on an order of 0, regardless of its actual order.
Reported by Frank Even (thanks!).

7 years agoAdd the missing <sys/time.h> include to mplexer.hh for struct timeval
Remi Gacogne [Mon, 4 Dec 2017 08:41:49 +0000 (09:41 +0100)]
Add the missing <sys/time.h> include to mplexer.hh for struct timeval

7 years agodnsdist: Fix DNSResponse:dh Lua binding
Remi Gacogne [Fri, 1 Dec 2017 18:23:56 +0000 (19:23 +0100)]
dnsdist: Fix DNSResponse:dh Lua binding