]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
5 years agoUpdate boost.m4 8752/head
Pieter Lexis [Wed, 22 Jan 2020 15:03:59 +0000 (16:03 +0100)] 
Update boost.m4

This detects boost::context on boost version 1.61 through 1.65 correctly

(cherry picked from commit c54133a4abccd7228b6898af5cb7b684c6225e97)

5 years agoMerge pull request #8696 from omoerbeek/backport-7928-to-rec-4.2.x
Otto Moerbeek [Tue, 14 Jan 2020 09:40:54 +0000 (10:40 +0100)] 
Merge pull request #8696 from omoerbeek/backport-7928-to-rec-4.2.x

rec: Backport 7928 to rec 4.2.x: Better detection of Bogus zone cuts for DNSSEC validation

5 years agoMerge pull request #8674 from omoerbeek/backport-8639-to-rec-4.2.x
Pieter Lexis [Tue, 14 Jan 2020 09:11:26 +0000 (10:11 +0100)] 
Merge pull request #8674 from omoerbeek/backport-8639-to-rec-4.2.x

rec: backport 8639 to 4.2.x: debian postinst / do not fail on user creation if it already exists

5 years agoMerge pull request #8686 from omoerbeek/backport-8684-to-rec-4.2.x
Pieter Lexis [Tue, 14 Jan 2020 09:11:02 +0000 (10:11 +0100)] 
Merge pull request #8686 from omoerbeek/backport-8684-to-rec-4.2.x

rec: backport 8684 to 4.2.x: parsing `dont-throttle-names` and `dont-throttle-netmasks` as comma separated lists

5 years agorec: An Opt-Out NSEC3 RR only proves that there is no secure delegation 8696/head
Remi Gacogne [Thu, 2 Jan 2020 10:52:14 +0000 (11:52 +0100)] 
rec: An Opt-Out NSEC3 RR only proves that there is no secure delegation

(cherry picked from commit 18c8faae6c67f734583c5c881d0d083d3253b49e)

5 years agorec: Add comments to clarify the no DS case when detecting zone cuts
Remi Gacogne [Mon, 17 Jun 2019 08:40:57 +0000 (10:40 +0200)] 
rec: Add comments to clarify the no DS case when detecting zone cuts

(cherry picked from commit 46df9251dfbd1d45ee26e410011713f2a550c721)

5 years agorec: Better detection of Bogus zone cuts for DNSSEC validation
Remi Gacogne [Fri, 31 May 2019 16:24:27 +0000 (18:24 +0200)] 
rec: Better detection of Bogus zone cuts for DNSSEC validation

(cherry picked from commit dd359a9fc01c318ef2fc1753d3e8170be5977c05)

5 years agoparsing `dont-throttle-names` and `dont-throttle-netmasks` as comma separated lists 8686/head
Costy Petrisor [Thu, 9 Jan 2020 10:56:16 +0000 (10:56 +0000)] 
parsing `dont-throttle-names` and `dont-throttle-netmasks` as comma separated lists

(cherry picked from commit 5285831402f3f3a209c16cb3bd743eea640cf894)

5 years agorec: debian postinst / do not fail on user creation if it already exists 8674/head
Antoine Joubert [Mon, 16 Dec 2019 16:57:13 +0000 (17:57 +0100)] 
rec: debian postinst / do not fail on user creation if it already exists

(cherry picked from commit fddad2718fb994d4fd016c03e1e05ef6c67aae14)

5 years agoMerge pull request #8552 from omoerbeek/backport-8525-to-rec-4.2.x rec-4.2.1
Otto Moerbeek [Wed, 27 Nov 2019 13:32:19 +0000 (14:32 +0100)] 
Merge pull request #8552 from omoerbeek/backport-8525-to-rec-4.2.x

rec: Backport 8525 to rec 4.2.x: Purge map of failed auths periodically by keeping a last changed timestamp.

5 years agoAvoid looking up an entry twice by using a ref. 8552/head
Otto Moerbeek [Tue, 19 Nov 2019 09:03:17 +0000 (10:03 +0100)] 
Avoid looking up an entry twice by using a ref.

(cherry picked from commit 3eba27418a7102a82777b74bd199943b67a93a6e)

5 years agoednsmap might be cleared while yielding; so reassign pointer.
Otto Moerbeek [Wed, 13 Nov 2019 09:11:58 +0000 (10:11 +0100)] 
ednsmap might be cleared while yielding; so reassign pointer.

Switch away from a ref to a pointer because of above and use modern
init for EDNSStatus.

(cherry picked from commit 90e8ea71abacb8879482fe27a5521d1f4d0ef76d)

5 years agoIf modeSetAt is zero, we never updated the entry and it can go.
Otto Moerbeek [Tue, 12 Nov 2019 16:00:44 +0000 (17:00 +0100)] 
If modeSetAt is zero, we never updated the entry and it can go.

(cherry picked from commit b5788c3649bee0d5c86c6900ee3dd2530a494bd1)

5 years agoAlso purge t_sstorage.ednsstatus and include edns size in the periodic report.
Otto Moerbeek [Tue, 12 Nov 2019 15:42:10 +0000 (16:42 +0100)] 
Also purge t_sstorage.ednsstatus and include edns size in the periodic report.

(cherry picked from commit bbc7101c05672d91f5131fa5baa884a750e139a4)

5 years agoman page bits
Otto Moerbeek [Tue, 12 Nov 2019 13:09:57 +0000 (14:09 +0100)] 
man page bits

(cherry picked from commit c71d64351b4918e92004691ea534cf8bcbcccbdd)

5 years agoPurge map of failed auths periodically by keeping a last changed timestamp.
Otto Moerbeek [Tue, 12 Nov 2019 12:31:28 +0000 (13:31 +0100)] 
Purge map of failed auths periodically by keeping a last changed timestamp.

SyncRes thread local storage includes a map of failed auths which was
only cleaned if a specific IP was contacted again and that contact
succeeded. Persistent failing auths or auths that are never tried
again remained in the map.

While here add code to dump the failed servers map. Might (partially?)
solve #7771.

(cherry picked from commit 60e5208a9a20d4cd2153d33b8cd500e9b241373c)

5 years agoMerge pull request #8528 from omoerbeek/backport-8470-to-rec-4.2.x
Otto Moerbeek [Wed, 13 Nov 2019 15:34:57 +0000 (16:34 +0100)] 
Merge pull request #8528 from omoerbeek/backport-8470-to-rec-4.2.x

rec: Backport 8470 to rec 4.2.x:  prime NS records of root-servers.net parent (.net)

5 years agoAvoid mthread race when using the set of rootNSZones. 8528/head
Otto Moerbeek [Wed, 6 Nov 2019 10:15:30 +0000 (11:15 +0100)] 
Avoid mthread race when using the set of rootNSZones.

5 years agoIt is better to make sure . entries are not added to the set.
Otto Moerbeek [Mon, 28 Oct 2019 15:57:46 +0000 (16:57 +0100)] 
It is better to make sure . entries are not added to the set.

5 years agoDo not wipe . NS; this can happen with custom hint files that are
Otto Moerbeek [Mon, 28 Oct 2019 15:35:43 +0000 (16:35 +0100)] 
Do not wipe . NS; this can happen with custom hint files that are
used by regression tests.

5 years agoWipe entry form cache before getting a new one to make sure we
Otto Moerbeek [Mon, 28 Oct 2019 12:58:01 +0000 (13:58 +0100)] 
Wipe entry form cache before getting a new one to make sure we
actually get fresh records.

(cherry picked from commit ed1bbac786281f515b4ceaf22afdf6c62bf614b4)

5 years agoAdd a comment explaining things.
Otto Moerbeek [Fri, 25 Oct 2019 12:05:22 +0000 (14:05 +0200)] 
Add a comment explaining things.

(cherry picked from commit c16c8fe53cac7473b16c81ca56410c14ad3bf324)

5 years agoAlso call primeRootNSZones() from syncres (after primeHints())
Otto Moerbeek [Wed, 23 Oct 2019 13:18:08 +0000 (15:18 +0200)] 
Also call primeRootNSZones() from syncres (after primeHints())

(cherry picked from commit 159b1242bab07c12620b9c40d3726b752ba0e32e)

5 years agoprime tld of root name server names
Otto Moerbeek [Wed, 23 Oct 2019 12:18:47 +0000 (14:18 +0200)] 
prime tld of root name server names

(cherry picked from commit 1b4e0ae09d2d81b70524746293f3e4f16d722ad4)

5 years agoMerge pull request #8427 from pieterlexis/backport-8400-to-rec-4.2.x
Otto Moerbeek [Fri, 1 Nov 2019 08:43:57 +0000 (09:43 +0100)] 
Merge pull request #8427 from pieterlexis/backport-8400-to-rec-4.2.x

Rec 4.2: Add CentOS 8 as builder target

5 years agoMerge pull request #8493 from omoerbeek/backport-8340-to-rec-4.2.x
Remi Gacogne [Thu, 31 Oct 2019 08:38:11 +0000 (09:38 +0100)] 
Merge pull request #8493 from omoerbeek/backport-8340-to-rec-4.2.x

Rec: backport to 4.2.x: Fix #8338: Issue with "zz" abbreviation for IPv6 RPZ triggers

5 years agoMerge pull request #8495 from omoerbeek/backport-8482-to-rec-4.2.x
Remi Gacogne [Thu, 31 Oct 2019 08:38:00 +0000 (09:38 +0100)] 
Merge pull request #8495 from omoerbeek/backport-8482-to-rec-4.2.x

rec: backport to 4.2.x: Add generated dnstap.pb.{cc,h} to the 'clean' target

5 years agorec: Add generated dnstap.pb.{cc,h} to the 'clean' target 8495/head
Remi Gacogne [Mon, 28 Oct 2019 17:56:54 +0000 (18:56 +0100)] 
rec: Add generated dnstap.pb.{cc,h} to the 'clean' target

(cherry picked from commit 74bdddef039219ef389eaae9731ae0f33b74b142)

5 years agoFix #8338: Issue with "zz" abbreviation for IPv6 RPZ triggers 8493/head
Otto Moerbeek [Mon, 23 Sep 2019 12:59:38 +0000 (14:59 +0200)] 
Fix #8338: Issue with "zz" abbreviation for IPv6 RPZ triggers

While there, add unittest for translating rpz names into netmasks

(cherry picked from commit 301148e6d77e7cf8aed3b1b174bf6dbbeae7dc67)

5 years agoMerge pull request #8452 from omoerbeek/backport-8451-to-rec-4.2.x
Pieter Lexis [Fri, 25 Oct 2019 07:08:27 +0000 (09:08 +0200)] 
Merge pull request #8452 from omoerbeek/backport-8451-to-rec-4.2.x

rec: Backport 8451 to rec 4.2.x: Basic validation of $GENERATE parameters

5 years agoBasic validation of $GENERATE parameters 8452/head
Otto Moerbeek [Wed, 23 Oct 2019 08:50:33 +0000 (10:50 +0200)] 
Basic validation of $GENERATE parameters

(cherry picked from commit 775a673a1798d01e5e259a00cff7a757f5350f40)

5 years agoAdd CentOS 8 as builder target 8427/head
Pieter Lexis [Thu, 10 Oct 2019 12:03:21 +0000 (14:03 +0200)] 
Add CentOS 8 as builder target

(cherry picked from commit 19293f266cf7bb719bd6975b3e06994f49e0e583)

5 years agoMerge pull request #8337 from omoerbeek/backport-8332-to-rec-4.2.x
Otto Moerbeek [Tue, 24 Sep 2019 05:15:01 +0000 (07:15 +0200)] 
Merge pull request #8337 from omoerbeek/backport-8332-to-rec-4.2.x

backport to rec -4.2.x: Remove version number in man page footer

5 years agoRemove version number 8337/head
Otto Moerbeek [Sat, 21 Sep 2019 08:09:38 +0000 (10:09 +0200)] 
Remove version number

(cherry picked from commit 760d679c2a3566dac8001115db95762344cdcbd5)

5 years agoMerge pull request #8124 from pieterlexis/backport-7951-to-rec-4.2.x
Otto Moerbeek [Fri, 30 Aug 2019 10:21:17 +0000 (12:21 +0200)] 
Merge pull request #8124 from pieterlexis/backport-7951-to-rec-4.2.x

Backport #7951 to rec 4.2.x

5 years agoMerge pull request #8244 from PowerDNS/revert-8238-backport-8236-to-rec-4.2.x
Otto Moerbeek [Wed, 28 Aug 2019 11:58:33 +0000 (13:58 +0200)] 
Merge pull request #8244 from PowerDNS/revert-8238-backport-8236-to-rec-4.2.x

Revert "rec: backport 8236: Add missing inc in rpz findClientPolicy loop."

5 years agoRevert "rec: backport 8236: Add missing inc in rpz findClientPolicy loop." 8244/head
Otto Moerbeek [Wed, 28 Aug 2019 11:53:11 +0000 (13:53 +0200)] 
Revert "rec: backport 8236: Add missing inc in rpz findClientPolicy loop."

5 years agoMerge pull request #8238 from omoerbeek/backport-8236-to-rec-4.2.x
Otto Moerbeek [Wed, 28 Aug 2019 11:15:12 +0000 (13:15 +0200)] 
Merge pull request #8238 from omoerbeek/backport-8236-to-rec-4.2.x

rec: backport 8236: Add missing inc in rpz findClientPolicy loop.

5 years agoAdd missing inc in rpz findClientPolicy loop. 8238/head
Otto Moerbeek [Wed, 28 Aug 2019 07:50:31 +0000 (09:50 +0200)] 
Add missing inc in rpz findClientPolicy loop.

(cherry picked from commit ae001b0e368e3a80f59d1c8ba64df15a42be00ef)

5 years agoMove to newer alpine for docker buildbot, needed for proper 8124/head
Otto Moerbeek [Tue, 13 Aug 2019 14:17:54 +0000 (16:17 +0200)] 
Move to newer alpine for docker buildbot, needed for proper
boost context detection

(cherry picked from commit b7c38b3b87c865c30ecca468d7d6dea30e1c15a7)

5 years agoMerge pull request #8230 from omoerbeek/backport-8227-to-rec-4.2.x
Otto Moerbeek [Mon, 26 Aug 2019 12:03:34 +0000 (14:03 +0200)] 
Merge pull request #8230 from omoerbeek/backport-8227-to-rec-4.2.x

rec: backport Fix inverse handler registration logic for SNMP.

5 years agoFix inverse handler registration logic for SNMP. 8230/head
Otto Moerbeek [Fri, 23 Aug 2019 09:12:48 +0000 (11:12 +0200)] 
Fix inverse handler registration logic for SNMP.

(cherry picked from commit 3fc5b5122485c8a1aa34dd27fe0135950a26a90a)

5 years agoMerge pull request #8187 from omoerbeek/backport-8001-to-rec-4.2.x
Otto Moerbeek [Tue, 20 Aug 2019 09:47:11 +0000 (11:47 +0200)] 
Merge pull request #8187 from omoerbeek/backport-8001-to-rec-4.2.x

Backport 8001 to rec 4.2.x

6 years agoversionadded: 4.2.1 8187/head
Otto Moerbeek [Mon, 12 Aug 2019 13:19:14 +0000 (15:19 +0200)] 
versionadded: 4.2.1

6 years agodocs: fix version numbers
Charles-Henri Bruyand [Tue, 2 Jul 2019 15:44:25 +0000 (17:44 +0200)] 
docs: fix version numbers

(cherry picked from commit cee8bfbdfd4fd4f97b436a4660424d0d3c2f111c)

6 years agolua: DNSQuestion, actually export deviceName and deviceId attributes
Charles-Henri Bruyand [Mon, 1 Jul 2019 07:50:46 +0000 (09:50 +0200)] 
lua: DNSQuestion, actually export deviceName and deviceId attributes

(cherry picked from commit e92fb64f5a6032e85800088c4e3c6df8de82f8f4)

6 years agorecursor: add new deviceName field to the dnsmessage protobuf export
Charles-Henri Bruyand [Wed, 19 Jun 2019 09:48:42 +0000 (11:48 +0200)] 
recursor: add new deviceName field to the dnsmessage protobuf export

(cherry picked from commit 0a6a45c8545f86a668003f453b38177308f5aff5)

6 years agoMerge pull request #8121 from zeha/rec-4.2-tests
Otto Moerbeek [Mon, 12 Aug 2019 12:31:31 +0000 (14:31 +0200)] 
Merge pull request #8121 from zeha/rec-4.2-tests

Recursor 4.2: Backport #8008 #8047 test improvements

6 years agoMerge pull request #8086 from omoerbeek/backport-8075-to-rec-4.2.x
Otto Moerbeek [Mon, 12 Aug 2019 12:27:22 +0000 (14:27 +0200)] 
Merge pull request #8086 from omoerbeek/backport-8075-to-rec-4.2.x

backport to rec 4.2.x: builder: add raspbian-buster target

6 years agoBackport #7951
Pieter Lexis [Wed, 24 Jul 2019 12:29:09 +0000 (14:29 +0200)] 
Backport #7951

6 years agoAnother time sensistive test fixed with a fixedNow construct. 8121/head
Otto Moerbeek [Tue, 9 Jul 2019 09:03:57 +0000 (11:03 +0200)] 
Another time sensistive test fixed with a fixedNow construct.
Fix borrowed from #8008.
But this test also does addRRSIG() calls, these need adaptation as well.

6 years agorec: Don't go Bogus if the auth zone delegation test takes too long
Remi Gacogne [Mon, 1 Jul 2019 10:03:55 +0000 (12:03 +0200)] 
rec: Don't go Bogus if the auth zone delegation test takes too long

6 years agobuilder: add raspbian-buster target 8086/head
Peter van Dijk [Fri, 12 Jul 2019 12:52:22 +0000 (14:52 +0200)] 
builder: add raspbian-buster target

(cherry picked from commit cc1a371a2422cac77a90d6a0debbcfe6cadea84a)

6 years agoMerge pull request #8074 from omoerbeek/backport-8067-to-rec-4.2.x rec-4.2.0
Otto Moerbeek [Fri, 12 Jul 2019 14:50:31 +0000 (16:50 +0200)] 
Merge pull request #8074 from omoerbeek/backport-8067-to-rec-4.2.x

Backport 8067 to rec 4.2.x: Make sure we always compile with BOOST_CB_ENABLE_DEBUG set to 0

6 years agoBOOST_CB_ENABLE_DEBUG is overridden before 1.62, set BOOST_CB_DISABLE_DEBUG instead 8074/head
Remi Gacogne [Fri, 12 Jul 2019 08:35:50 +0000 (10:35 +0200)] 
BOOST_CB_ENABLE_DEBUG is overridden before 1.62, set BOOST_CB_DISABLE_DEBUG instead

(cherry picked from commit 7fa225c362a6e009775a1978d54adfe383b29ab8)

6 years agoMake sure we always compile with BOOST_CB_ENABLE_DEBUG set to 0
Remi Gacogne [Thu, 11 Jul 2019 15:09:05 +0000 (17:09 +0200)] 
Make sure we always compile with BOOST_CB_ENABLE_DEBUG set to 0

(cherry picked from commit 9f6a31fffe1f4bd77fd402f997a5f37a58f72fc5)

6 years agoMerge pull request #8052 from omoerbeek/backport-8028-to-rec-4.2.x
Otto Moerbeek [Fri, 12 Jul 2019 07:12:43 +0000 (09:12 +0200)] 
Merge pull request #8052 from omoerbeek/backport-8028-to-rec-4.2.x

Backport 8028 to rec 4.2.x: limit compression pointers to 14 bits

6 years agocentralise constant 8052/head
Peter van Dijk [Tue, 9 Jul 2019 09:27:18 +0000 (11:27 +0200)] 
centralise constant

(cherry picked from commit 43f038d7d1931bf499d8b03435b99feecea4d170)

6 years agoactually honour the startRecord compress parameter
Peter van Dijk [Mon, 8 Jul 2019 15:39:35 +0000 (17:39 +0200)] 
actually honour the startRecord compress parameter

(cherry picked from commit 02e7763f2c7f4d2c9d7bab3a3319df1724065ef2)

6 years agolimit compression pointers to 14 bits
Peter van Dijk [Fri, 5 Jul 2019 09:46:25 +0000 (11:46 +0200)] 
limit compression pointers to 14 bits

(cherry picked from commit d26fa3154031ee9ece21f1d1b47faa5d177e34ef)

6 years agoMerge pull request #8017 from Habbie/rec-4.2.x-ci-onlyrec
Otto Moerbeek [Wed, 3 Jul 2019 12:01:37 +0000 (14:01 +0200)] 
Merge pull request #8017 from Habbie/rec-4.2.x-ci-onlyrec

travis, circleci: only do recursor testing

6 years agotravis, circleci: only do recursor testing 8017/head
Peter van Dijk [Tue, 2 Jul 2019 15:29:41 +0000 (17:29 +0200)] 
travis, circleci: only do recursor testing

6 years agoMerge pull request #8009 from omoerbeek/backport-7997-to-rec-4.2.x
Otto Moerbeek [Tue, 2 Jul 2019 07:32:39 +0000 (09:32 +0200)] 
Merge pull request #8009 from omoerbeek/backport-7997-to-rec-4.2.x

rec backport to 4.2.x: Fix the export of only outgoing queries or incoming responses

6 years agoMerge pull request #8005 from omoerbeek/backport-7996-to-rec-4.2.x
Otto Moerbeek [Tue, 2 Jul 2019 07:31:45 +0000 (09:31 +0200)] 
Merge pull request #8005 from omoerbeek/backport-7996-to-rec-4.2.x

rec backport to 4.2.x: Clear CMSG_SPACE(sizeof(data)) in cmsghdr to appease valgrind.

6 years agorec: Add tests for outgoing queries/ incoming responses export 8009/head
Remi Gacogne [Fri, 28 Jun 2019 09:47:59 +0000 (11:47 +0200)] 
rec: Add tests for outgoing queries/ incoming responses export

(cherry picked from commit 87cab7c0709566a028aa80c86a7d9b409a516b1c)

6 years agorec: Fix the export of only outgoing queries or incoming responses
Remi Gacogne [Fri, 28 Jun 2019 09:47:39 +0000 (11:47 +0200)] 
rec: Fix the export of only outgoing queries or incoming responses

(cherry picked from commit 5d6c7a46ec22bbacc2a0dc5e8c74beaa84cfe224)

6 years agoClear CMSG_SPACE(sizeof(data)) in cmsghdr to appease valgrind. 8005/head
Otto Moerbeek [Fri, 28 Jun 2019 09:25:32 +0000 (11:25 +0200)] 
Clear CMSG_SPACE(sizeof(data)) in cmsghdr to appease valgrind.

(cherry picked from commit 20b22895546a3e7fb7760940599dfb1e29a00777)

6 years agoMerge pull request #7955 from omoerbeek/backport-partial-7864-to-rec-4.2.x rec-4.2.0-rc2
Otto Moerbeek [Wed, 19 Jun 2019 13:04:31 +0000 (15:04 +0200)] 
Merge pull request #7955 from omoerbeek/backport-partial-7864-to-rec-4.2.x

rec: backport to 4.2.x: Handle short reads from our random device

6 years agoMerge pull request #7954 from omoerbeek/backport-7886-to-rec-4.2.x
Otto Moerbeek [Wed, 19 Jun 2019 12:40:23 +0000 (14:40 +0200)] 
Merge pull request #7954 from omoerbeek/backport-7886-to-rec-4.2.x

rec backport  to rec 4.2.x: SuffixMatchRee fixes

6 years agoMerge pull request #7953 from omoerbeek/backport-7861-to-rec-4.2.x
Otto Moerbeek [Wed, 19 Jun 2019 12:40:05 +0000 (14:40 +0200)] 
Merge pull request #7953 from omoerbeek/backport-7861-to-rec-4.2.x

rec backport to 4.2.x: Check if -latomic is needed instead of hardcoding

6 years agoHandle short reads from our random device 7955/head
Remi Gacogne [Wed, 29 May 2019 14:00:35 +0000 (16:00 +0200)] 
Handle short reads from our random device

Reported by Coverity (CID 1401626).

(cherry picked from commit 144c9852279ef0219c72fe549f72a40f3a255edc)

6 years agoSuffixMatchTree: Remove useless code duplication 7954/head
Remi Gacogne [Fri, 14 Jun 2019 12:02:27 +0000 (14:02 +0200)] 
SuffixMatchTree: Remove useless code duplication

(cherry picked from commit 28ed71086538310bf000071b2d86a1a0fddc35fe)

6 years agoSuffixMatchTree: Fix the removal of the root
Remi Gacogne [Fri, 7 Jun 2019 10:23:48 +0000 (12:23 +0200)] 
SuffixMatchTree: Fix the removal of the root

(cherry picked from commit dbeebfee558896219c1a44974a66548190b7d4ee)

6 years agoSuffixMatchTree: Fix partial match of non-leaf nodes
Remi Gacogne [Fri, 7 Jun 2019 10:21:00 +0000 (12:21 +0200)] 
SuffixMatchTree: Fix partial match of non-leaf nodes

If we insert fr and www.domain.fr, domain.fr should not match
www.domain.fr, the leaf node, and it should not match the
intermediary domain.fr node, but it should match the fr
end-node.

(cherry picked from commit 99517c1b39226e50e1eb1a5a6509844fb57e9e68)

6 years agoCheck if -latomic is needed instead of hardcoding 7953/head
Rosen Penev [Tue, 28 May 2019 17:49:21 +0000 (10:49 -0700)] 
Check if -latomic is needed instead of hardcoding

This avoids having a huge list of platforms which can change over time.

(cherry picked from commit 1735eb98cd295c0aec2c2cd4cff436a786dbc70f)

6 years agoMerge pull request #7939 from omoerbeek/backport-7905-to-rec-4.2.x
Otto Moerbeek [Mon, 17 Jun 2019 08:25:51 +0000 (10:25 +0200)] 
Merge pull request #7939 from omoerbeek/backport-7905-to-rec-4.2.x

rec backport to 4.2.x: : Compare the CacheKey type and place first then the name

6 years agoMerge pull request #7931 from omoerbeek/backport-7884-to-rel/rec-4.2.x
Remi Gacogne [Mon, 17 Jun 2019 08:17:44 +0000 (10:17 +0200)] 
Merge pull request #7931 from omoerbeek/backport-7884-to-rel/rec-4.2.x

rec backport to 4.2.x: Don't mix time() and gettimeofday() in our unit tests (again)

6 years agorec: Compare the CacheKey type and place first then the name 7939/head
Remi Gacogne [Tue, 11 Jun 2019 12:47:53 +0000 (14:47 +0200)] 
rec: Compare the CacheKey type and place first then the name

We don't care about the actual ordering, so let's do the cheapest
comparisons first then the quite expensive DNSName comparison only
if we really need to.

(cherry picked from commit 186e99c98d195329af05129cd4d6512657edf4bc)

6 years agorec: Don't mix time() and gettimeofday() in our unit tests (again) 7931/head
Remi Gacogne [Fri, 7 Jun 2019 08:46:58 +0000 (10:46 +0200)] 
rec: Don't mix time() and gettimeofday() in our unit tests (again)

We used to set time returned by `sr->getNow()` via `gettimeofday()`
and later the one used to compute the RRSIG validity via
`time(nullptr)`. It turns out that the second call can return a
value lesser than the first one, without the time going backward,
making our tests fail.
After this commit we base our calculations on the same time value,
so it should not fail randomly anymore.

(cherry picked from commit d0add506df4075aa8a7e2eb7c66f58ea850ff6d4)

6 years agoMerge pull request #7850 from omoerbeek/backport-7841
Otto Moerbeek [Tue, 28 May 2019 14:38:33 +0000 (16:38 +0200)] 
Merge pull request #7850 from omoerbeek/backport-7841

Backport 7841: recursor: log UDP TC bits during trace

6 years agolog UDP TC bit during trace 7850/head
Peter van Dijk [Wed, 22 May 2019 14:11:44 +0000 (16:11 +0200)] 
log UDP TC bit during trace

(cherry picked from commit b1f2295bfd5295daaec847339c51930dd83845a6)

6 years agodo not skip TCP TC logging when not throttling
Peter van Dijk [Wed, 22 May 2019 14:11:33 +0000 (16:11 +0200)] 
do not skip TCP TC logging when not throttling

(cherry picked from commit 4ab4187c7cc5a54a026df37f60015aafec3d3ca0)

6 years agoMerge pull request #7837 from aerique/feature/changelog-and-secpoll-for-rec-4.1.13 rec-4.2.0-rc1
aerique [Tue, 21 May 2019 11:27:03 +0000 (13:27 +0200)] 
Merge pull request #7837 from aerique/feature/changelog-and-secpoll-for-rec-4.1.13

Update secpoll and changelog for rec-4.1.13 release.

6 years agoMerge pull request #7835 from ahupowerdns/mysql-view-warning
Pieter Lexis [Mon, 20 May 2019 13:53:39 +0000 (15:53 +0200)] 
Merge pull request #7835 from ahupowerdns/mysql-view-warning

add warning about MySQL views

6 years agoMerge pull request #7622 from shane-kerr/dnsdist-lua-actions-std-string
Remi Gacogne [Mon, 20 May 2019 12:27:06 +0000 (14:27 +0200)] 
Merge pull request #7622 from shane-kerr/dnsdist-lua-actions-std-string

Change all occurrences of string to std::string

6 years agoMerge pull request #7825 from rgacogne/dnsdist-snirule
Remi Gacogne [Mon, 20 May 2019 12:25:59 +0000 (14:25 +0200)] 
Merge pull request #7825 from rgacogne/dnsdist-snirule

 dnsdist: Implement SNIRule for DoT and DoH

6 years agoadd warning about MySQL views 7835/head
bert hubert [Mon, 20 May 2019 09:49:25 +0000 (11:49 +0200)] 
add warning about MySQL views

6 years agodnsdist: Document that SNIRule will not work with h2o <= 2.3.0-beta 7825/head
Remi Gacogne [Mon, 20 May 2019 08:21:13 +0000 (10:21 +0200)] 
dnsdist: Document that SNIRule will not work with h2o <= 2.3.0-beta

6 years agodnsdist: Extract TLS SNI for DoH if support is present
Remi Gacogne [Wed, 15 May 2019 16:15:22 +0000 (18:15 +0200)] 
dnsdist: Extract TLS SNI for DoH if support is present

6 years agodnsdist: Expose SNI to the Lua DNSQuestion object as well
Remi Gacogne [Wed, 15 May 2019 15:11:44 +0000 (17:11 +0200)] 
dnsdist: Expose SNI to the Lua DNSQuestion object as well

6 years agodnsdist: Implement SNIRule for DoT
Remi Gacogne [Wed, 15 May 2019 15:04:09 +0000 (17:04 +0200)] 
dnsdist: Implement SNIRule for DoT

6 years agoMerge pull request #7830 from rgacogne/dnsdist-missing-completions
Remi Gacogne [Mon, 20 May 2019 09:01:59 +0000 (11:01 +0200)] 
Merge pull request #7830 from rgacogne/dnsdist-missing-completions

dnsdist: Add missing completion options and fix some typos

6 years agoMerge pull request #7833 from Habbie/dnsdist-duplicate-ednsoptioncode-table
Remi Gacogne [Mon, 20 May 2019 08:03:41 +0000 (10:03 +0200)] 
Merge pull request #7833 from Habbie/dnsdist-duplicate-ednsoptioncode-table

remove second, incomplete copy of Lua EDNSOptionCode table

6 years agoremove second, incomplete copy of Lua EDNSOptionCode table 7833/head
Peter van Dijk [Sat, 18 May 2019 23:05:14 +0000 (01:05 +0200)] 
remove second, incomplete copy of Lua EDNSOptionCode table

6 years agoMerge pull request #7823 from rgacogne/dnsdist-coverity
Remi Gacogne [Fri, 17 May 2019 12:19:21 +0000 (14:19 +0200)] 
Merge pull request #7823 from rgacogne/dnsdist-coverity

 dnsdist: Fix minor issues reported by Coverity

6 years agoMerge pull request #7824 from rgacogne/dnsdist-http-rules
Remi Gacogne [Fri, 17 May 2019 12:18:07 +0000 (14:18 +0200)] 
Merge pull request #7824 from rgacogne/dnsdist-http-rules

dnsdist: Add documentation, completion and tests for our DoH HTTP rules

6 years agodnsdist: Add missing completion options and fix some typos 7830/head
Remi Gacogne [Fri, 17 May 2019 10:22:48 +0000 (12:22 +0200)] 
dnsdist: Add missing completion options and fix some typos

6 years agoMerge pull request #7790 from omoerbeek/auth-issue-7579-slave-busy-looping
Otto Moerbeek [Fri, 17 May 2019 05:28:27 +0000 (07:28 +0200)] 
Merge pull request #7790 from omoerbeek/auth-issue-7579-slave-busy-looping

Do not busy loop if we get lots of notifies.

6 years agoMerge pull request #7728 from neilcook/nod_docs
Peter van Dijk [Thu, 16 May 2019 10:32:34 +0000 (12:32 +0200)] 
Merge pull request #7728 from neilcook/nod_docs

Documentation for the NOD and UDR features

6 years agoMerge pull request #7768 from pieterlexis/auth-pytests-allow-templates
Peter van Dijk [Thu, 16 May 2019 10:28:36 +0000 (12:28 +0200)] 
Merge pull request #7768 from pieterlexis/auth-pytests-allow-templates

Refactor auth-py tests so config templates can be used