]> granicus.if.org Git - pdns/log
pdns
7 years agoauth: use override in backends to prevent future mistakes
Kees Monshouwer [Mon, 5 Jun 2017 19:39:43 +0000 (21:39 +0200)]
auth: use override in backends to prevent future mistakes

7 years agoauth: feedRecord() ordename is now a DNSName
Kees Monshouwer [Mon, 5 Jun 2017 18:38:08 +0000 (20:38 +0200)]
auth: feedRecord() ordename is now a DNSName

8 years agoMerge pull request #4955 from klaus3000/upgradingto40
Pieter Lexis [Thu, 1 Jun 2017 14:24:29 +0000 (16:24 +0200)]
Merge pull request #4955 from klaus3000/upgradingto40

add prepared statements and CAA records to the upgrade info

8 years agoMerge pull request #5233 from mind04/prepared
Pieter Lexis [Thu, 1 Jun 2017 14:15:02 +0000 (16:15 +0200)]
Merge pull request #5233 from mind04/prepared

some sql improvements

8 years agoMerge pull request #5316 from mind04/axfr-filter
Pieter Lexis [Thu, 1 Jun 2017 14:02:00 +0000 (16:02 +0200)]
Merge pull request #5316 from mind04/axfr-filter

auth: add option to set a global lua-axfr-script value

8 years agoMerge pull request #5359 from rgacogne/dnsdist-no-useless-moves
Pieter Lexis [Thu, 1 Jun 2017 14:00:26 +0000 (16:00 +0200)]
Merge pull request #5359 from rgacogne/dnsdist-no-useless-moves

dnsdist: Get rid of std::move() calls preventing copy elision

8 years agoChangelog: fix render issue
Pieter Lexis [Thu, 1 Jun 2017 13:09:13 +0000 (15:09 +0200)]
Changelog: fix render issue

8 years agoMerge pull request #5360 from pieterlexis/rec-405-rc2-changelog
Pieter Lexis [Thu, 1 Jun 2017 12:57:25 +0000 (14:57 +0200)]
Merge pull request #5360 from pieterlexis/rec-405-rc2-changelog

Add the Recursor 4.0.5 rc 2 changelog

8 years agoAdd the Recursor 4.0.5 rc 2 changelog
Pieter Lexis [Thu, 1 Jun 2017 11:54:48 +0000 (13:54 +0200)]
Add the Recursor 4.0.5 rc 2 changelog

Also, order the items somewhat and add additional information

8 years agoMerge pull request #5358 from rgacogne/dnsdist-nmg-addmasks-typo
Remi Gacogne [Thu, 1 Jun 2017 09:53:52 +0000 (10:53 +0100)]
Merge pull request #5358 from rgacogne/dnsdist-nmg-addmasks-typo

dnsdist: Fix a typo in the documentation of NetmaskGroup:addMasks()

8 years agodnsdist: Get rid of std::move() calls preventing copy elision
Remi Gacogne [Thu, 1 Jun 2017 09:11:40 +0000 (11:11 +0200)]
dnsdist: Get rid of std::move() calls preventing copy elision

8 years agodnsdist: Fix a typo in the documentation of NetmaskGroup:addMasks()
Remi Gacogne [Thu, 1 Jun 2017 08:53:25 +0000 (10:53 +0200)]
dnsdist: Fix a typo in the documentation of NetmaskGroup:addMasks()

8 years agoMerge pull request #5349 from ahupowerdns/luajit-namespace
bert hubert [Mon, 29 May 2017 17:06:38 +0000 (19:06 +0200)]
Merge pull request #5349 from ahupowerdns/luajit-namespace

LuaJIT 2.1: Lua fallback functionality no longer uses Lua namespace

8 years agoMerge pull request #5344 from rgacogne/dnsdist-bin-itf
bert hubert [Mon, 29 May 2017 15:55:01 +0000 (17:55 +0200)]
Merge pull request #5344 from rgacogne/dnsdist-bin-itf

dnsdist: Add an optional interface parameter to addLocal()/setLocal()

8 years agoMerge pull request #5351 from rgacogne/rec-const-mt
bert hubert [Mon, 29 May 2017 15:51:52 +0000 (17:51 +0200)]
Merge pull request #5351 from rgacogne/rec-const-mt

rec: Mark MT methods as const whenever possible

8 years agodnsdist: Move {add,set}Local() additional parameters to a table
Remi Gacogne [Mon, 29 May 2017 12:58:08 +0000 (14:58 +0200)]
dnsdist: Move {add,set}Local() additional parameters to a table

8 years agodnsdist: Add an optional interface parameter to addLocal()/setLocal()
Remi Gacogne [Thu, 25 May 2017 20:43:23 +0000 (21:43 +0100)]
dnsdist: Add an optional interface parameter to addLocal()/setLocal()

8 years agorec: Mark MT methods as const whenever possible
Remi Gacogne [Mon, 29 May 2017 08:17:58 +0000 (10:17 +0200)]
rec: Mark MT methods as const whenever possible

8 years agoMerge pull request #5350 from ahupowerdns/xenial-gcc-bug
Remi Gacogne [Mon, 29 May 2017 08:08:49 +0000 (09:08 +0100)]
Merge pull request #5350 from ahupowerdns/xenial-gcc-bug

work around a g++ bug in Ubuntu Xenial, closing #5347.

8 years agowork around a g++ bug in Ubuntu Xenial, closing #5347.
bert hubert [Sun, 28 May 2017 20:16:48 +0000 (22:16 +0200)]
work around a g++ bug in Ubuntu Xenial, closing #5347.

8 years agotypo in the fix, sorry!
bert hubert [Sun, 28 May 2017 08:47:34 +0000 (10:47 +0200)]
typo in the fix, sorry!

8 years agowe guess which versions of Lua need help with luaL_setfuncs, and then supply our...
bert hubert [Sun, 28 May 2017 08:33:57 +0000 (10:33 +0200)]
we guess which versions of Lua need help with luaL_setfuncs, and then supply our own. If we guess wrong however, we trample on the Lua namespace.
With this commit, we don't do the trampling, which should close #5348. We can improve on the fix by using the native luaL_setfuncs for LuaJIT 2.1 beta too.

8 years agoMerge pull request #5236 from rgacogne/rec-doresolveat-refactor
Pieter Lexis [Thu, 25 May 2017 16:51:29 +0000 (18:51 +0200)]
Merge pull request #5236 from rgacogne/rec-doresolveat-refactor

rec: Move to thread_local, refactor `SyncRes::doResolveAt()` and auth zones

8 years agoMerge pull request #5332 from rgacogne/edns-truncate-tests
Pieter Lexis [Thu, 25 May 2017 16:46:39 +0000 (18:46 +0200)]
Merge pull request #5332 from rgacogne/edns-truncate-tests

rec: Add unit tests for EDNS Client Subnet truncation

8 years agoMerge pull request #5335 from shinsterneck/bugfix-syntaxerror-configureac
Pieter Lexis [Thu, 25 May 2017 16:45:31 +0000 (18:45 +0200)]
Merge pull request #5335 from shinsterneck/bugfix-syntaxerror-configureac

configure.ac: corrects syntax error in test statement on existance of libcrypto_ecdsa

8 years agoMerge pull request #5337 from rgacogne/dnsdist-action-per-dynblock
Pieter Lexis [Thu, 25 May 2017 16:45:10 +0000 (18:45 +0200)]
Merge pull request #5337 from rgacogne/dnsdist-action-per-dynblock

dnsdist: Add an optional action to `addDynBlocks()`

8 years agoMerge pull request #5342 from rgacogne/dnsdist-action-types
Pieter Lexis [Thu, 25 May 2017 16:44:39 +0000 (18:44 +0200)]
Merge pull request #5342 from rgacogne/dnsdist-action-types

dnsdist: Print useful messages when query and response actions are mixed

8 years agoMerge pull request #5340 from shantikulkarni/master
Pieter Lexis [Thu, 25 May 2017 16:43:53 +0000 (18:43 +0200)]
Merge pull request #5340 from shantikulkarni/master

Fix typo in ldapbackend.cc from issue #5091

8 years agodnsdist: Print useful messages when query and response actions are mixed
Remi Gacogne [Wed, 24 May 2017 08:10:45 +0000 (09:10 +0100)]
dnsdist: Print useful messages when query and response actions are mixed

8 years agoUpdate ldapbackend.cc
shantikulkarni [Wed, 24 May 2017 02:25:48 +0000 (21:25 -0500)]
Update ldapbackend.cc

8 years agodnsdist: Add an optional action to `addDynBlocks()`
Remi Gacogne [Tue, 23 May 2017 12:57:02 +0000 (13:57 +0100)]
dnsdist: Add an optional action to `addDynBlocks()`

This allows using different actions for different blocks, refusing
some and dropping others.

8 years agonit
Peter van Dijk [Tue, 23 May 2017 09:04:50 +0000 (11:04 +0200)]
nit

8 years agocorrects syntax error in test statement on existance of libcrypto_ecdsa
Shin Sterneck [Tue, 23 May 2017 00:12:26 +0000 (09:12 +0900)]
corrects syntax error in test statement on existance of libcrypto_ecdsa

8 years agoMerge pull request #5334 from pieterlexis/rec-405-changelog
Pieter Lexis [Fri, 19 May 2017 16:33:03 +0000 (18:33 +0200)]
Merge pull request #5334 from pieterlexis/rec-405-changelog

Recursor 4.0.5-RC1 changelog

8 years agoAdd secpoll entry for Recursor 4.0.5 rc 1
Pieter Lexis [Tue, 9 May 2017 12:09:25 +0000 (14:09 +0200)]
Add secpoll entry for Recursor 4.0.5 rc 1

8 years agoAdd a Recursor 4.0.5 changelog
Pieter Lexis [Tue, 9 May 2017 12:08:15 +0000 (14:08 +0200)]
Add a Recursor 4.0.5 changelog

8 years agorec: Add unit tests for EDNS Client Subnet truncation
Remi Gacogne [Fri, 19 May 2017 10:00:21 +0000 (12:00 +0200)]
rec: Add unit tests for EDNS Client Subnet truncation

8 years agoMerge pull request #5161 from baloo/baloo/test/5083
Peter van Dijk [Thu, 18 May 2017 19:04:30 +0000 (21:04 +0200)]
Merge pull request #5161 from baloo/baloo/test/5083

fix a regression in axfr-rectify + test

8 years agoMerge pull request #5331 from pieterlexis/gen-version-unannotated-tags
Pieter Lexis [Thu, 18 May 2017 15:19:37 +0000 (17:19 +0200)]
Merge pull request #5331 from pieterlexis/gen-version-unannotated-tags

Use un-annotated tags for determining version

8 years agoUse un-annotated tags for determining version
Pieter Lexis [Thu, 18 May 2017 09:27:02 +0000 (11:27 +0200)]
Use un-annotated tags for determining version

8 years agoMerge pull request #5323 from rgacogne/yahttp-backports
Pieter Lexis [Wed, 17 May 2017 08:04:28 +0000 (10:04 +0200)]
Merge pull request #5323 from rgacogne/yahttp-backports

YaHTTP: Sync with upstream changes

8 years agoMerge pull request #5319 from rgacogne/rec-cache-edns-specific
Pieter Lexis [Wed, 17 May 2017 07:24:00 +0000 (09:24 +0200)]
Merge pull request #5319 from rgacogne/rec-cache-edns-specific

rec: Only check the netmask for subnet specific cache entries

8 years agorec: Add unit tests for the `MemRecursorCache` class
Remi Gacogne [Mon, 15 May 2017 15:59:12 +0000 (17:59 +0200)]
rec: Add unit tests for the `MemRecursorCache` class

8 years agoYaHTTP: Sync with upstream changes
Remi Gacogne [Mon, 15 May 2017 11:27:23 +0000 (13:27 +0200)]
YaHTTP: Sync with upstream changes

Backport changes from upstream up to c5b83288a4c2f8ec07cb8cb7bd150f2210db67b6
"Add missing `YaHTTP::isdigit()`, fix locale-enabled versions"

8 years agoMerge pull request #5321 from mind04/dnsupdate
Pieter Lexis [Mon, 15 May 2017 09:46:23 +0000 (11:46 +0200)]
Merge pull request #5321 from mind04/dnsupdate

Revert "notify slaves after dnsupdate was processed"

8 years agorec: Cleanup the auth and forward zones a bit
Remi Gacogne [Tue, 11 Apr 2017 12:36:39 +0000 (14:36 +0200)]
rec: Cleanup the auth and forward zones a bit

8 years agorec: Get rid of `SyncRes::d_nocache`, prevent root refresh loop
Remi Gacogne [Tue, 11 Apr 2017 09:18:59 +0000 (11:18 +0200)]
rec: Get rid of `SyncRes::d_nocache`, prevent root refresh loop

`SyncRes::d_nocache` did not really prevent looking at the cache
or the local zones, and was only used when we refresh the root NS.

8 years agorec: Refactoring of SyncRes::doResolveAt()
Remi Gacogne [Wed, 5 Apr 2017 17:57:56 +0000 (19:57 +0200)]
rec: Refactoring of SyncRes::doResolveAt()

8 years agorec: Cleanup the StaticStorage object, renamed to ThreadLocalStorage
Remi Gacogne [Tue, 4 Apr 2017 17:02:25 +0000 (19:02 +0200)]
rec: Cleanup the StaticStorage object, renamed to ThreadLocalStorage

8 years agoUse clang 3.6 instead of 3.5 in Travis builds
Remi Gacogne [Tue, 4 Apr 2017 10:08:47 +0000 (12:08 +0200)]
Use clang 3.6 instead of 3.5 in Travis builds

8 years agorec: Use C++11's thread_local instead of __thread
Remi Gacogne [Mon, 3 Apr 2017 16:09:47 +0000 (18:09 +0200)]
rec: Use C++11's thread_local instead of __thread

Since `thread_local` supports non-trivial types, this move allows
us to get rid of many existing naked pointers in the rec.
Requires gcc 4.8+ or clang 3.3+.

8 years agorec: Cleanup global variables usage in `SyncRes`
Remi Gacogne [Mon, 3 Apr 2017 15:10:08 +0000 (17:10 +0200)]
rec: Cleanup global variables usage in `SyncRes`

8 years agoMerge pull request #5320 from ahupowerdns/edns-truncate
Remi Gacogne [Sat, 13 May 2017 16:52:14 +0000 (18:52 +0200)]
Merge pull request #5320 from ahupowerdns/edns-truncate

 PowerDNS sdig does not truncate trailing bits of EDNS Client Subnet mask

8 years agoRevert "notify slaves after dnsupdate was processed"
Kees Monshouwer [Sat, 13 May 2017 10:44:31 +0000 (12:44 +0200)]
Revert "notify slaves after dnsupdate was processed"

This reverts commit 89033f988aa6f4ffbac08c9447a2a7f062f3a34f.

8 years agoMerge pull request #5308 from rgacogne/unixconnector-no-copy
Pieter Lexis [Sat, 13 May 2017 09:37:27 +0000 (11:37 +0200)]
Merge pull request #5308 from rgacogne/unixconnector-no-copy

auth: Don't copy data around when sending and receiving in the Unix Connector

8 years agoMerge pull request #5263 from fobser/notify-after-dnsupdate
Pieter Lexis [Sat, 13 May 2017 09:35:38 +0000 (11:35 +0200)]
Merge pull request #5263 from fobser/notify-after-dnsupdate

notify slaves after dnsupdate was processed

8 years agoMerge pull request #5264 from mind04/notify-dnsupdate
Pieter Lexis [Sat, 13 May 2017 09:34:56 +0000 (11:34 +0200)]
Merge pull request #5264 from mind04/notify-dnsupdate

Send a notification to all slave servers after every dnsupdate.

8 years agoMerge pull request #5265 from rgacogne/rec-rpz-wildcard-target
Pieter Lexis [Sat, 13 May 2017 09:34:28 +0000 (11:34 +0200)]
Merge pull request #5265 from rgacogne/rec-rpz-wildcard-target

rec: Add support for RPZ wildcarded target names

8 years agoMerge pull request #5271 from phonedph1/stats
Pieter Lexis [Sat, 13 May 2017 09:34:18 +0000 (11:34 +0200)]
Merge pull request #5271 from phonedph1/stats

Adjustable statistics interval

8 years agoMerge pull request #5293 from rgacogne/rec-lua-getstat
Pieter Lexis [Sat, 13 May 2017 09:33:35 +0000 (11:33 +0200)]
Merge pull request #5293 from rgacogne/rec-lua-getstat

rec: Allow retrieving stats from Lua via the `getStat("name")` call

8 years agoMerge pull request #5309 from baloo/baloo/cleandig
Pieter Lexis [Sat, 13 May 2017 09:32:37 +0000 (11:32 +0200)]
Merge pull request #5309 from baloo/baloo/cleandig

tests: Ensure all required tools are available

8 years agoMerge pull request #5318 from ahupowerdns/root-renew
Pieter Lexis [Sat, 13 May 2017 09:31:38 +0000 (11:31 +0200)]
Merge pull request #5318 from ahupowerdns/root-renew

explicitly remove old root when repriming

8 years agoTogether with Mukund Sivaraman we found out PowerDNS sdig does not truncate
bert hubert [Fri, 12 May 2017 19:25:16 +0000 (21:25 +0200)]
Together with Mukund Sivaraman we found out PowerDNS sdig does not truncate
trailing bits of EDNS Client Subnet mask.  So if you'd truncate something as
a /9, we'd have to use 2 bytes anyhow, but we would not zero the last 7 bits.

We do now. Thanks Mukund & ISC!

8 years agorec: Only check the netmask for subnet specific cache entries
Remi Gacogne [Fri, 12 May 2017 12:12:10 +0000 (14:12 +0200)]
rec: Only check the netmask for subnet specific cache entries

We used to check the netmask for all entries for a qname
if at least one of them was a subnet specific one. Since an empty
`Netmask` doesn't match anything, we would effectively ignore every
non subnet specific entries if we had at least one subnet specific
one.
This caused a very hard to reproduce issue with for example
f.root-servers.net that includes an EDNS Client Subnet option in its
answer for `NS .` if the query has an EDNS Client Subnet option.
This caused the recursor to cache a subnet specific entry for `NS .`.
When that entry expired, we retrieved and cached a non subnet specific
one, but that new one was ignored as long as the subnet specific
was not expunged from the cache.
Under certain circumstances that could cause a root refresh loop
using a lot of stack memory.

8 years agowhen (re)priming the root, we do so with auth=0. We'll only set auth=1 after we have...
bert hubert [Fri, 12 May 2017 10:34:44 +0000 (12:34 +0200)]
when (re)priming the root, we do so with auth=0. We'll only set auth=1 after we have an answer from the roots. This however opens up a small race condition in which the root is expired (ttl=0), but still auth=1 in the cache. Our attempt to replace it with auth=0 dta fails at that point. This is probably due to some fencepost error somewhere. To not be subtle about this, explicitly nuke the root when we reprime.

8 years agoImplement test for #5083
Arthur Gautier [Mon, 10 Apr 2017 20:34:18 +0000 (20:34 +0000)]
Implement test for #5083

Signed-off-by: Arthur Gautier <baloo@gandi.net>
8 years agominor cleanup in the afxr-rectify code
Kees Monshouwer [Thu, 23 Feb 2017 23:37:05 +0000 (00:37 +0100)]
minor cleanup in the afxr-rectify code

8 years agofix a regression in axfr-rectify introduced by commit d86e1bf7
Kees Monshouwer [Thu, 23 Feb 2017 23:36:15 +0000 (00:36 +0100)]
fix a regression in axfr-rectify introduced by commit d86e1bf7

8 years agoMerge pull request #5313 from ahupowerdns/no-root-age
bert hubert [Thu, 11 May 2017 16:35:23 +0000 (18:35 +0200)]
Merge pull request #5313 from ahupowerdns/no-root-age

don't age the root - this was a mistranslation from 3.x to 4.x

8 years agoMerge pull request #5312 from ahupowerdns/proto-empty-log
bert hubert [Thu, 11 May 2017 16:28:06 +0000 (18:28 +0200)]
Merge pull request #5312 from ahupowerdns/proto-empty-log

we would attempt to protobuf log DNS questions without a set question…

8 years agodon't age the root - this was a mistranslation from 3.x to 4.x
bert hubert [Thu, 11 May 2017 15:18:04 +0000 (17:18 +0200)]
don't age the root - this was a mistranslation from 3.x to 4.x

8 years agowe would attempt to protobuf log DNS questions without a set question and get excepti...
bert hubert [Thu, 11 May 2017 15:16:20 +0000 (17:16 +0200)]
we would attempt to protobuf log DNS questions without a set question and get exceptions over that

8 years agorec: Document that `getStats()` is only available for 4.1.0+
Remi Gacogne [Wed, 10 May 2017 07:57:06 +0000 (09:57 +0200)]
rec: Document that `getStats()` is only available for 4.1.0+

8 years agoMerge pull request #5307 from rgacogne/rec-rpz-clear-nsip-bis
Remi Gacogne [Wed, 10 May 2017 07:53:11 +0000 (09:53 +0200)]
Merge pull request #5307 from rgacogne/rec-rpz-clear-nsip-bis

rec: Clear the RPZ NS IP table when clearing the policy (bis)

8 years agotests: Ensure all required tools are available
Arthur Gautier [Fri, 5 May 2017 19:25:06 +0000 (19:25 +0000)]
tests: Ensure all required tools are available

If one of those tools misses, the test will silently PASS.
We should ensure it is present

Signed-off-by: Arthur Gautier <baloo@gandi.net>
8 years agorec: Clear the RPZ NS IP table when clearing the policy (bis)
Remi Gacogne [Tue, 9 May 2017 21:23:08 +0000 (23:23 +0200)]
rec: Clear the RPZ NS IP table when clearing the policy (bis)

8 years agoauth: Don't copy data around when sending and receiving
Remi Gacogne [Tue, 9 May 2017 20:47:05 +0000 (22:47 +0200)]
auth: Don't copy data around when sending and receiving

8 years agoMerge pull request #4569 from rgacogne/rec-protobuf-requestor-id
Pieter Lexis [Tue, 9 May 2017 14:30:15 +0000 (16:30 +0200)]
Merge pull request #4569 from rgacogne/rec-protobuf-requestor-id

rec: Pass `tcp` to `gettag()`, allow setting the requestor ID from hooks

8 years agoMerge pull request #5252 from rgacogne/rec-soa-root-nx-trust
Pieter Lexis [Tue, 9 May 2017 14:26:26 +0000 (16:26 +0200)]
Merge pull request #5252 from rgacogne/rec-soa-root-nx-trust

rec: Only apply root-nx-trust if the received SOA is "."

8 years agoMerge pull request #5270 from cmouse/geoip-test
Pieter Lexis [Tue, 9 May 2017 14:25:53 +0000 (16:25 +0200)]
Merge pull request #5270 from cmouse/geoip-test

geoipbackend: Add test for city database

8 years agoMerge pull request #5275 from rgacogne/rec-rpz-fast-updates
Pieter Lexis [Tue, 9 May 2017 14:25:22 +0000 (16:25 +0200)]
Merge pull request #5275 from rgacogne/rec-rpz-fast-updates

rec: RPZ updates are done zone by zone, zones are now shared pointers

8 years agoMerge pull request #5278 from rgacogne/dnscryptokeyengine-sharedptr
Pieter Lexis [Tue, 9 May 2017 14:25:05 +0000 (16:25 +0200)]
Merge pull request #5278 from rgacogne/dnscryptokeyengine-sharedptr

Always wrap DNSCryptoKeyEngine objects in a shared pointer

8 years agoMerge pull request #5283 from rgacogne/dnssec-cache-auth-issue
Pieter Lexis [Tue, 9 May 2017 14:24:49 +0000 (16:24 +0200)]
Merge pull request #5283 from rgacogne/dnssec-cache-auth-issue

rec: Skip DNSSEC validation for cache hits from authoritative zones

8 years agoMerge pull request #5290 from mind04/master-nsec
Pieter Lexis [Tue, 9 May 2017 14:24:33 +0000 (16:24 +0200)]
Merge pull request #5290 from mind04/master-nsec

auth: add test to make sure NSEC(3) generation is case insensitive

8 years agoMerge pull request #5296 from mind04/boost
Pieter Lexis [Tue, 9 May 2017 14:24:13 +0000 (16:24 +0200)]
Merge pull request #5296 from mind04/boost

detect gcc/g++ 5.4, 7.0 and 7.1 in boost.m4

8 years agoMerge pull request #5303 from Habbie/packetlimit
Pieter Lexis [Tue, 9 May 2017 14:23:52 +0000 (16:23 +0200)]
Merge pull request #5303 from Habbie/packetlimit

fix off-by-one in dnsreplay --packet-limit

8 years agoauth: add option to set a global lua-axfr-script value
Kees Monshouwer [Tue, 9 May 2017 12:04:08 +0000 (14:04 +0200)]
auth: add option to set a global lua-axfr-script value

8 years agofix off-by-one in dnsreplay --packet-limit
Peter van Dijk [Mon, 8 May 2017 17:31:43 +0000 (19:31 +0200)]
fix off-by-one in dnsreplay --packet-limit

8 years agodetect gcc/g++ 5.4, 7.0 and 7.1 in boost.m4
Kees Monshouwer [Thu, 4 May 2017 21:33:18 +0000 (23:33 +0200)]
detect gcc/g++ 5.4, 7.0 and 7.1 in boost.m4

8 years agorec: Allow setting the protobuf `requestorId` from Lua hooks
Remi Gacogne [Fri, 5 May 2017 10:29:43 +0000 (12:29 +0200)]
rec: Allow setting the protobuf `requestorId` from Lua hooks

8 years agorec: Add a `tcp` parameter to `gettag()` since it's now called for TCP
Remi Gacogne [Wed, 12 Oct 2016 15:57:52 +0000 (17:57 +0200)]
rec: Add a `tcp` parameter to `gettag()` since it's now called for TCP

8 years agorec: Allow retrieving stats from Lua via the `getStat("name")` call
Remi Gacogne [Thu, 4 May 2017 14:50:56 +0000 (16:50 +0200)]
rec: Allow retrieving stats from Lua via the `getStat("name")` call

8 years agoauth: add test to make sure NSEC(3) generation is case insensitive
Kees Monshouwer [Wed, 3 May 2017 19:26:30 +0000 (21:26 +0200)]
auth: add test to make sure NSEC(3) generation is case insensitive

test result before fix (auth-4.0.3):

--- ./tests/nsecx-upcase/expected_result        2017-05-03 21:17:26.000000000 +0200
+++ ./tests/nsecx-upcase/real_result    2017-05-03 21:29:10.231994921 +0200
@@ -2,8 +2,10 @@
 0      Z1234567890.wtest.com.  IN      RRSIG   3600    CNAME 13 2 3600 [expiry] [inception] [keytag] wtest.com. ...
 0      server1.wtest.com.      IN      A       3600    1.2.3.4
 0      server1.wtest.com.      IN      RRSIG   3600    A 13 3 3600 [expiry] [inception] [keytag] wtest.com. ...
-1      a.something.wtest.com.  IN      NSEC    86400   wtest.com. A RRSIG NSEC
-1      a.something.wtest.com.  IN      RRSIG   86400   NSEC 13 4 86400 [expiry] [inception] [keytag] wtest.com. ...
+1      *.wtest.com.    IN      NSEC    86400   e.wtest.com. CNAME RRSIG NSEC
+1      *.wtest.com.    IN      RRSIG   86400   NSEC 13 2 86400 [expiry] [inception] [keytag] wtest.com. ...
 2      .       IN      OPT     32768
 Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
 Reply to question for qname='Z1234567890.wtest.com.', qtype=A
./tests/nsecx-upcase/unbound-host.out:Z1234567890.wtest.com is an alias for server1.wtest.com. (BOGUS (security failure))
./tests/nsecx-upcase/unbound-host.out:server1.wtest.com has address 1.2.3.4 (BOGUS (security failure))

8 years agoMerge pull request #5273 from cmouse/geoip-random
Remi Gacogne [Tue, 2 May 2017 07:55:25 +0000 (09:55 +0200)]
Merge pull request #5273 from cmouse/geoip-random

geoipbackend: Use dns_random

8 years agoMerge pull request #5277 from rgacogne/sdig-edns-usage
Remi Gacogne [Tue, 2 May 2017 07:35:00 +0000 (09:35 +0200)]
Merge pull request #5277 from rgacogne/sdig-edns-usage

sdig: Clarify that the `ednssubnet` option takes "subnet/mask"

8 years agoMerge pull request #5281 from pieterlexis/zone2json-in-tests
Remi Gacogne [Tue, 2 May 2017 07:34:00 +0000 (09:34 +0200)]
Merge pull request #5281 from pieterlexis/zone2json-in-tests

Tell the tests where to find zone2json

8 years agorec: Add a unit test for the OOB flag on a auth zone cache hit
Remi Gacogne [Mon, 1 May 2017 08:35:24 +0000 (10:35 +0200)]
rec: Add a unit test for the OOB flag on a auth zone cache hit

8 years agorec: Skip DNSSEC validation for cache hits from authoritative zones
Remi Gacogne [Fri, 28 Apr 2017 16:48:21 +0000 (18:48 +0200)]
rec: Skip DNSSEC validation for cache hits from authoritative zones

8 years agoTell the tests where to find zone2json
Pieter Lexis [Fri, 28 Apr 2017 12:42:54 +0000 (14:42 +0200)]
Tell the tests where to find zone2json

8 years agoMerge pull request #5280 from rgacogne/dnsdist-poolrule-from-mask
Remi Gacogne [Fri, 28 Apr 2017 09:13:59 +0000 (11:13 +0200)]
Merge pull request #5280 from rgacogne/dnsdist-poolrule-from-mask

dnsdist: Clarify that addPoolRule() applies to source addresses