]>
git.ipfire.org Git - thirdparty/pdns.git/log
Remi Gacogne [Thu, 7 Mar 2019 09:49:24 +0000 (10:49 +0100)]
Merge pull request #7219 from Annih/auth-issue-7051
auth: geoip - Fix static lookup when using weighted records on multiple record types
Frank Louwers [Wed, 6 Mar 2019 16:09:24 +0000 (17:09 +0100)]
Document the removal of api-readonly for the pdns-auth as well
Otto Moerbeek [Wed, 6 Mar 2019 10:50:56 +0000 (11:50 +0100)]
aaaa-additional-processing does not exist anymore
Peter van Dijk [Tue, 5 Mar 2019 18:37:12 +0000 (19:37 +0100)]
move MIB from Lua docs to metrics docs
Otto Moerbeek [Tue, 5 Mar 2019 15:30:22 +0000 (16:30 +0100)]
Set IP(V6)_RECVERR socket option to get notified of more than just
port unreachable errors on Linux.
See https://sourceware.org/bugzilla/show_bug.cgi?id=24047
Remi Gacogne [Wed, 20 Feb 2019 15:45:02 +0000 (16:45 +0100)]
rec: Make blacklisted statistics configurable per component
This commit adds configuration parameters so it's possible to enable
or disable specific statistic metrics depending on the way they are
retrieved (API, Carbon, rec-control or SNMP).
Remi Gacogne [Wed, 20 Feb 2019 10:59:37 +0000 (11:59 +0100)]
rec: Add statistics about ECS response sizes
Remi Gacogne [Tue, 19 Feb 2019 14:31:49 +0000 (15:31 +0100)]
rec: Disable the polling of expensive metrics via SNMP by default
Remi Gacogne [Tue, 19 Feb 2019 13:43:49 +0000 (14:43 +0100)]
API: Add an endpoint to request only a specific statistic
Remi Gacogne [Fri, 15 Feb 2019 14:52:24 +0000 (15:52 +0100)]
rec: Remove unused functions in rec_channel_rec, mark some as static
Remi Gacogne [Tue, 5 Mar 2019 08:27:34 +0000 (09:27 +0100)]
Merge pull request #7516 from Habbie/fromiscfile-errors
report checkKey errors upwards in makeFromISCFile exception
Remi Gacogne [Tue, 5 Mar 2019 08:21:28 +0000 (09:21 +0100)]
Merge pull request #7537 from andreydomas/dnsnameset
DNSNameSet and QNameSetRule
Andrey Domas [Mon, 4 Mar 2019 14:56:56 +0000 (17:56 +0300)]
Merge branch 'dnsnameset' of github.com:andreydomas/pdns into dnsnameset
Remi Gacogne [Mon, 4 Mar 2019 14:47:57 +0000 (17:47 +0300)]
DNSNameSet and QNameSetRule, minor changes in docs
Co-Authored-By: andreydomas <andreydomas@users.noreply.github.com>
Andrey Domas [Mon, 4 Mar 2019 14:46:50 +0000 (17:46 +0300)]
DNSNameSet and QNameSetRule, minor changes in docs
Andrey Domas [Mon, 4 Mar 2019 11:23:02 +0000 (14:23 +0300)]
DNSNameSet and QNameSetRule, minor fixes
Andrey Domas [Fri, 1 Mar 2019 14:47:05 +0000 (17:47 +0300)]
DNSNameSet and QNameSetRule
Otto Moerbeek [Fri, 1 Mar 2019 14:12:36 +0000 (15:12 +0100)]
Merge pull request #7527 from omoerbeek/rec-protobuf-doc-fixes
If a type is complex, you need to specify a separate type: clause.
Peter van Dijk [Thu, 21 Feb 2019 20:38:01 +0000 (20:38 +0000)]
plug mysql_thread_init memory leak, fixes #6231
Otto Moerbeek [Wed, 27 Feb 2019 16:22:19 +0000 (17:22 +0100)]
If a type is complex, you need to specify a separate type: clause.
Peter van Dijk [Fri, 1 Mar 2019 09:05:39 +0000 (10:05 +0100)]
cast usec, avoids a build failure on macOS/Darwin
Remi Gacogne [Fri, 1 Mar 2019 08:59:20 +0000 (09:59 +0100)]
auth: Clear caches (query, packet) on domain deletion via the API
Otto Moerbeek [Fri, 1 Mar 2019 08:53:29 +0000 (09:53 +0100)]
Merge pull request #7520 from omoerbeek/dnsdist-nsec
Don't convert nsec to usec if we need nsec
aerique [Thu, 28 Feb 2019 15:35:28 +0000 (16:35 +0100)]
Merge pull request #7531 from aerique/feature/changelog-and-secpoll-for-auth-4.2.0-beta1
Add changelog and secpoll for auth-4.2.0-beta1.
Peter van Dijk [Sun, 24 Feb 2019 10:32:12 +0000 (11:32 +0100)]
report checkKey errors upwards in makeFromISCFile exception
Otto Moerbeek [Wed, 27 Feb 2019 16:03:45 +0000 (16:03 +0000)]
Fix dns_random() in pdns_notify, it needs ::args setup properly.
aerique [Wed, 27 Feb 2019 09:52:52 +0000 (10:52 +0100)]
Merge pull request #7496 from rgacogne/auth-catch-invalid-slave-soa
auth: Catch exception when parsing a zone's SOA in getUnfreshSlaveInfos()
aerique [Tue, 26 Feb 2019 15:43:10 +0000 (16:43 +0100)]
Merge pull request #6872 from pieterlexis/ixfrdist-limit-size
ixfrdist: Add option to limit AXFR record count
Otto Moerbeek [Tue, 26 Feb 2019 15:33:36 +0000 (16:33 +0100)]
Don't convert nsec to usec if we need nsec
aerique [Tue, 26 Feb 2019 14:14:52 +0000 (15:14 +0100)]
Merge pull request #7326 from jonathaneen/add_type_filter_to_api_search
Add type filter to search-data api. Closes #5430
Otto Moerbeek [Mon, 25 Feb 2019 12:20:02 +0000 (13:20 +0100)]
Merge pull request #7502 from omoerbeek/memusage-statm
Change the way getRealMemUsage() works on Linux (using statm)
Remi Gacogne [Fri, 22 Feb 2019 14:07:23 +0000 (15:07 +0100)]
Merge pull request #7431 from alenichev/empty_response
pass empty response
aerique [Fri, 22 Feb 2019 13:33:42 +0000 (14:33 +0100)]
Merge pull request #7359 from tduboys/rcode_stats
Add Rcode response statistics on API
aerique [Fri, 22 Feb 2019 11:55:58 +0000 (12:55 +0100)]
Merge pull request #7490 from pieterlexis/LUA-record-useragent
LUA records: Add "useragent" option to `ifurlup` and set a default
aerique [Fri, 22 Feb 2019 09:45:58 +0000 (10:45 +0100)]
Merge pull request #7448 from cmouse/remote-getupdatedmasters
remotebackend: Implement getUpdatedMasters
Remi Gacogne [Fri, 22 Feb 2019 08:28:09 +0000 (09:28 +0100)]
Merge pull request #7511 from paddg/patch-10
Minor capitalization cleanup
Winfried Angele [Fri, 22 Feb 2019 06:55:41 +0000 (07:55 +0100)]
Minor capitalization cleanup
Remi Gacogne [Thu, 21 Feb 2019 16:33:08 +0000 (17:33 +0100)]
Merge branch 'master' into empty_response
Remi Gacogne [Thu, 21 Feb 2019 16:28:17 +0000 (17:28 +0100)]
Merge branch 'master' into empty_response
Remi Gacogne [Thu, 21 Feb 2019 15:14:44 +0000 (16:14 +0100)]
Merge pull request #7406 from alenichev/master
Add EDNS unknown version handling
Remi Gacogne [Thu, 21 Feb 2019 13:53:58 +0000 (14:53 +0100)]
dnsdist: Add regression tests for setAllowEmptyResponse()
Remi Gacogne [Thu, 21 Feb 2019 13:43:09 +0000 (14:43 +0100)]
dnsdist: Document setAllowEmptyResponse()
Remi Gacogne [Thu, 21 Feb 2019 13:42:34 +0000 (14:42 +0100)]
dnsdist: Add setAllowEmptyResponse to console completion
Remi Gacogne [Thu, 21 Feb 2019 12:40:46 +0000 (13:40 +0100)]
Merge pull request #7494 from rgacogne/ixfr-empty-axfr
Correctly interpret an empty AXFR response to an IXFR query
Remi Gacogne [Thu, 21 Feb 2019 12:00:44 +0000 (13:00 +0100)]
Merge branch 'master' into master
Remi Gacogne [Thu, 21 Feb 2019 11:26:50 +0000 (12:26 +0100)]
dnsdist: Add regression tests for EDNSVersionRule and ERCodeAction
Pieter Lexis [Thu, 21 Feb 2019 11:17:22 +0000 (12:17 +0100)]
Revert "REVERT ME: remove test that fails compilation"
This reverts commit
6eb4daca9c71804e4acdf31ac31ea6ad2541a01e .
Pieter Lexis [Thu, 21 Feb 2019 11:17:17 +0000 (12:17 +0100)]
Merge remote-tracking branch 'origin/master' into auth-ringbugs
Pieter Lexis [Thu, 21 Feb 2019 11:16:47 +0000 (12:16 +0100)]
Merge pull request #7505 from rgacogne/fix-speedtest-gcc8
auth: Fix compilation of speedtest with GCC 8.0+
Pieter Lexis [Thu, 21 Feb 2019 11:06:56 +0000 (12:06 +0100)]
Fix fuzz target linking
Remi Gacogne [Thu, 21 Feb 2019 10:52:51 +0000 (11:52 +0100)]
dnsdist: Document EDNSVersionRule and ERCodeAction
Remi Gacogne [Thu, 21 Feb 2019 10:52:05 +0000 (11:52 +0100)]
dnsdist: Add ERCodeAction and RCodeAction to console completion
Remi Gacogne [Thu, 21 Feb 2019 09:14:43 +0000 (10:14 +0100)]
Merge pull request #7478 from rgacogne/rec-max-cache-bogus-ttl
rec: Add a new 'max-cache-bogus-ttl' option
Pieter Lexis [Wed, 20 Feb 2019 16:37:53 +0000 (17:37 +0100)]
speedtest: rename the second statring
Remi Gacogne [Wed, 20 Feb 2019 16:02:13 +0000 (17:02 +0100)]
auth: Fix compilation of speedtest with GCC 8.0+
Pieter Lexis [Wed, 20 Feb 2019 15:59:28 +0000 (16:59 +0100)]
Hook up DNSName, QType ringbuffers to the auth
Pieter Lexis [Wed, 20 Feb 2019 12:29:19 +0000 (13:29 +0100)]
Add speedtest for DNSName, QType rings
'StatRing test with DNSName and QType to string' 0.11 seconds:
3437241 .4 runs/s, 0.29 usec/run
'StatRing test with DNSName and QType' 0.11 seconds:
12516308 .0 runs/s, 0.08 usec/run
Pieter Lexis [Wed, 20 Feb 2019 12:25:51 +0000 (13:25 +0100)]
Add StatRings for DNSName, QType tuples
Remi Gacogne [Wed, 20 Feb 2019 15:48:40 +0000 (16:48 +0100)]
rec: Fix a typo in the comment of one of the SyncRes unit tests
Peter van Dijk [Wed, 20 Feb 2019 13:28:17 +0000 (14:28 +0100)]
Merge pull request #7492 from pieterlexis/lua-expose-pdnsrandom
Lua: expose `dns_random` as `pdnsrandom`
Pieter Lexis [Wed, 20 Feb 2019 09:55:31 +0000 (10:55 +0100)]
Add speedtest for statring
Pieter Lexis [Wed, 20 Feb 2019 09:55:15 +0000 (10:55 +0100)]
REVERT ME: remove test that fails compilation
Otto Moerbeek [Wed, 20 Feb 2019 09:40:11 +0000 (10:40 +0100)]
Add new objects to OBJECT-GROUP; use "self" instead of getpid()
Remi Gacogne [Mon, 18 Feb 2019 12:07:14 +0000 (13:07 +0100)]
Correctly interpret an empty AXFR response to an IXFR query
Otto Moerbeek [Wed, 20 Feb 2019 08:44:04 +0000 (09:44 +0100)]
Init required args before calling dns_random()
No clue why this only happens only on Ubuntu trusty...
Remi Gacogne [Wed, 20 Feb 2019 09:20:46 +0000 (10:20 +0100)]
Merge pull request #7476 from rgacogne/rpz-default-pol-custom-option
rec: Add an option to not override custom RPZ types with the default policy
Remi Gacogne [Wed, 20 Feb 2019 08:44:16 +0000 (09:44 +0100)]
Merge pull request #7479 from phonedph1/addrecords
rec: Document addRecord
Otto Moerbeek [Tue, 19 Feb 2019 14:34:52 +0000 (15:34 +0100)]
Change the way getRealMemUsage() works on Linux (using statm)
If you want the old (expensive) way, use getSpecialMemUsage()
getSpecialMemUsage() is not included in getAllStatsMap()
Also, implement a getrusage() based getRealMemUsage() for non-Linux systems.
bert hubert [Tue, 19 Feb 2019 22:37:30 +0000 (23:37 +0100)]
our ringbuffers got fed packetcached delegation responses as 'queries for domains we were not auth for'. Fixed.
bert hubert [Tue, 19 Feb 2019 22:36:50 +0000 (23:36 +0100)]
Our ringbuffers in auth were case sensitive, leading to pages FuLl of 0x20 ModUlaTed domains
phonedph1 [Tue, 19 Feb 2019 17:24:25 +0000 (17:24 +0000)]
Add default ttl values
Pieter Lexis [Tue, 19 Feb 2019 11:18:01 +0000 (12:18 +0100)]
Don't expose version number in User-Agent header
Pieter Lexis [Tue, 19 Feb 2019 11:06:22 +0000 (12:06 +0100)]
Merge pull request #7483 from rgacogne/dnsdist-logs
dnsdist: Preserve configuration and log files in regression tests
Charles-Henri Bruyand [Tue, 19 Feb 2019 10:07:55 +0000 (11:07 +0100)]
Fix missing word in pdns/recursordist/docs/lua-config/rpz.rst
Co-Authored-By: rgacogne <rgacogne@users.noreply.github.com>
Remi Gacogne [Tue, 19 Feb 2019 09:38:17 +0000 (10:38 +0100)]
Merge pull request #7485 from rgacogne/clang-static-analyzer-fixes
Fix some warning reported by Clang's static analyzer
Peter van Dijk [Tue, 19 Feb 2019 09:16:11 +0000 (10:16 +0100)]
Update docs/lua-records/reference/misc.rst
Co-Authored-By: pieterlexis <pieterlexis@users.noreply.github.com>
Remi Gacogne [Tue, 19 Feb 2019 08:44:24 +0000 (09:44 +0100)]
Merge pull request #7491 from klaus3000/restapi-comma-separated-masters
store masters with comma separated and without trailing space
Remi Gacogne [Mon, 18 Feb 2019 15:16:04 +0000 (16:16 +0100)]
auth: Catch exception when parsing a zone's SOA in getUnfreshSlaveInfos()
Pieter Lexis [Mon, 18 Feb 2019 12:29:52 +0000 (13:29 +0100)]
Lua: expose `dns_random` as `pdnsrandom`
Fixes the usecase in #6853
Klaus Darilion [Mon, 18 Feb 2019 10:42:16 +0000 (10:42 +0000)]
store masters with comma separated and without trailing space
Pieter Lexis [Mon, 18 Feb 2019 10:20:02 +0000 (11:20 +0100)]
LUA records: set User-Agent string
Closes #7393
Otto Moerbeek [Mon, 18 Feb 2019 10:11:34 +0000 (11:11 +0100)]
Replace almost all occurences of random() by dns_random().
Exceptions are the ones in misc.cc, because they introduce a
dependency to libsodium and/or librypto, which is not wanted in
dnsdist.
The calls in misc,.cc are not security-sensitive so it is not a big
deal to use a deterministic PRNG there. Also, improve Utility::srandom()
a bit and call it in the recursor.
Pieter Lexis [Mon, 18 Feb 2019 09:54:30 +0000 (10:54 +0100)]
minicurl: add parameter to set useragent
Remi Gacogne [Mon, 18 Feb 2019 08:51:16 +0000 (09:51 +0100)]
Merge pull request #7488 from zeha/6114-stoi
API: improve handling of out of range modified_at value
Chris Hofstaedtler [Fri, 15 Feb 2019 20:46:59 +0000 (21:46 +0100)]
API: improve handling of out of range modified_at value
Fixes #6114.
Peter van Dijk [Fri, 15 Feb 2019 16:30:32 +0000 (17:30 +0100)]
Merge pull request #7487 from pieterlexis/dnsdist-DoT-autoconf
dnsdist: don't test or show unneeded TLS libs
Pieter Lexis [Fri, 15 Feb 2019 14:18:45 +0000 (15:18 +0100)]
dnsdist: don't test or show unneeded TLS libs
Remi Gacogne [Fri, 15 Feb 2019 12:18:59 +0000 (13:18 +0100)]
rec: Wrap FILE* in smart pointers
Remi Gacogne [Fri, 15 Feb 2019 12:17:55 +0000 (13:17 +0100)]
rec: Set haveEDNS only once
Remi Gacogne [Fri, 15 Feb 2019 12:16:51 +0000 (13:16 +0100)]
dnsdist: Fix use-after-free on DoT initialization failure
Remi Gacogne [Fri, 15 Feb 2019 11:05:22 +0000 (14:05 +0300)]
Update pdns/dnsdist.cc
match on any rcode with option set
Co-Authored-By: alenichev <mitya@rockers.su>
Otto Moerbeek [Thu, 14 Feb 2019 15:50:29 +0000 (16:50 +0100)]
Add back call to srandom() in common startup. srandom() is still used
and needs seeding (even if the seeding itself is predicable)
Otto Moerbeek [Thu, 14 Feb 2019 15:15:03 +0000 (16:15 +0100)]
Move from random() to dns_random()
An alternative would be to make sure srandom() is always called.
But since dns_random() has the nice uniform upperbound API, I have
chosen to use that one.
Otto Moerbeek [Thu, 14 Feb 2019 15:10:00 +0000 (16:10 +0100)]
Use dns_random() for generating the id of the notify message.
This does introduce a (conditional) dependency on libsodium.
Dmitry Alenichev [Thu, 14 Feb 2019 15:02:49 +0000 (18:02 +0300)]
make passing empty response optional
Remi Gacogne [Thu, 14 Feb 2019 13:28:37 +0000 (14:28 +0100)]
Merge pull request #7482 from hnsk/fix-pdnsutil-add-record-output-order
pdnsutil: Fix output order of pdnsutil add-record
Remi Gacogne [Thu, 14 Feb 2019 13:28:01 +0000 (14:28 +0100)]
Merge pull request #7352 from Habbie/packet-too-big
respect packet size limits, even with ECS and TSIG
Remi Gacogne [Thu, 14 Feb 2019 10:55:47 +0000 (11:55 +0100)]
dnsdist: Preserve configuration and log files in regression tests
Remi Gacogne [Wed, 13 Feb 2019 15:04:57 +0000 (16:04 +0100)]
rec: Add a small regression test for 'max-cache-bogus-ttl'
Hannu Ylitalo [Wed, 13 Feb 2019 11:47:55 +0000 (13:47 +0200)]
pdnsutil: Fix output order of pdnsutil add-record
There was also unnecessary whitespace at the end of the line which was
removed. Since it only affected the same line it's included in this single
commit.