]> granicus.if.org Git - pdns/log
pdns
8 years agoMerge pull request #2942 from ahupowerdns/deserial
bert hubert [Fri, 27 Nov 2015 19:16:56 +0000 (20:16 +0100)]
Merge pull request #2942 from ahupowerdns/deserial

Deserial: remove boost serialization from configure.ac and includes, speeding up builds

8 years agoMerge pull request #2944 from rgacogne/sanitizers
bert hubert [Fri, 27 Nov 2015 19:12:18 +0000 (20:12 +0100)]
Merge pull request #2944 from rgacogne/sanitizers

Add configure options to build dnsdist with various sanitizers

8 years agoMerge pull request #2947 from rgacogne/dnsdist-tcp-check-len
bert hubert [Fri, 27 Nov 2015 19:12:05 +0000 (20:12 +0100)]
Merge pull request #2947 from rgacogne/dnsdist-tcp-check-len

Check the length of TCP queries in dnsdist

8 years agoMerge pull request #2948 from rgacogne/dnsname-check-offset-len
bert hubert [Fri, 27 Nov 2015 19:11:33 +0000 (20:11 +0100)]
Merge pull request #2948 from rgacogne/dnsname-check-offset-len

Check that offset < len in DNSName constructor

8 years agoMerge pull request #2950 from pieterlexis/dnsdist-http-contenttype
bert hubert [Fri, 27 Nov 2015 19:11:02 +0000 (20:11 +0100)]
Merge pull request #2950 from pieterlexis/dnsdist-http-contenttype

dnsdist: Add the correct Content-Header for files

8 years agoMerge pull request #2952 from pieterlexis/dnsdist-version-in-html
bert hubert [Fri, 27 Nov 2015 19:10:25 +0000 (20:10 +0100)]
Merge pull request #2952 from pieterlexis/dnsdist-version-in-html

Show the dnsdist version in the html

8 years agoignore the dnsdist history file
Pieter Lexis [Fri, 27 Nov 2015 17:01:17 +0000 (18:01 +0100)]
ignore the dnsdist history file

8 years agoUse symlink for gen-version script
Pieter Lexis [Fri, 27 Nov 2015 17:00:06 +0000 (18:00 +0100)]
Use symlink for gen-version script

8 years agodnsdist: show correct version in the webpage
Pieter Lexis [Fri, 27 Nov 2015 16:58:57 +0000 (17:58 +0100)]
dnsdist: show correct version in the webpage

8 years agodnsdist: Add the correct Content-Header for files
Pieter Lexis [Fri, 27 Nov 2015 15:56:23 +0000 (16:56 +0100)]
dnsdist: Add the correct Content-Header for files

8 years agoMerge pull request #2949 from ahupowerdns/dprotect
bert hubert [Fri, 27 Nov 2015 15:40:04 +0000 (16:40 +0100)]
Merge pull request #2949 from ahupowerdns/dprotect

Dprotect: dnssec validation of answers

8 years agoCheck that offset < len in DNSName constructor
Remi Gacogne [Fri, 27 Nov 2015 14:06:32 +0000 (15:06 +0100)]
Check that offset < len in DNSName constructor

Otherwise, we might call memchr() with garbage, as len and offset
are signed but memchr()'s n is unsigned (size_t).

8 years agohook up the validator code with the recursor, keep toysdig independent so it can...
bert hubert [Fri, 27 Nov 2015 14:04:44 +0000 (15:04 +0100)]
hook up the validator code with the recursor, keep toysdig independent so it can source records over TCP/IP

8 years agoCheck the length of TCP queries
Remi Gacogne [Fri, 27 Nov 2015 14:00:36 +0000 (15:00 +0100)]
Check the length of TCP queries

There is no point in trying to parse queries whose length
is < sizeof(dnsheader).

8 years agomake sure we have enough space to receive those huge dnssec laden packets!
bert hubert [Fri, 27 Nov 2015 13:22:16 +0000 (14:22 +0100)]
make sure we have enough space to receive those huge dnssec laden packets!

8 years agosplit out validation bits from toysdig, move to an 'Oracle' that provides answers...
bert hubert [Fri, 27 Nov 2015 10:32:02 +0000 (11:32 +0100)]
split out validation bits from toysdig, move to an 'Oracle' that provides answers. Next step: make SyncRes that Oracle in the recursor

8 years agoAdd configure options to build dnsdist with various sanitizers.
Remi Gacogne [Fri, 27 Nov 2015 10:13:06 +0000 (11:13 +0100)]
Add configure options to build dnsdist with various sanitizers.

It makes it really easy to enable ASAN, LSAN, MSAN, TSAN, or
USBSAN on a custom build, to track issues.

8 years agomove everything to getMDP(), first step in abstracting to be able to talk to SyncRes too
bert hubert [Fri, 27 Nov 2015 09:34:11 +0000 (10:34 +0100)]
move everything to getMDP(), first step in abstracting to be able to talk to SyncRes too

8 years agoMerge branch 'master' into dprotect
bert hubert [Fri, 27 Nov 2015 08:52:37 +0000 (09:52 +0100)]
Merge branch 'master' into dprotect

8 years agothere was a BOOST_REVERSE_FOREACH!
bert hubert [Fri, 27 Nov 2015 07:12:05 +0000 (08:12 +0100)]
there was a BOOST_REVERSE_FOREACH!

8 years agoremove boost serialization which actually shaves seconds off ./configure and probably...
bert hubert [Thu, 26 Nov 2015 17:41:00 +0000 (18:41 +0100)]
remove boost serialization which actually shaves seconds off ./configure and probably more off our build times

8 years agoMerge pull request #2939 from rgacogne/dnsdist-truncated
bert hubert [Thu, 26 Nov 2015 17:22:46 +0000 (18:22 +0100)]
Merge pull request #2939 from rgacogne/dnsdist-truncated

Drop truncated UDP messages caused by a small buffer. Note: might be a good idea for rest of our products as well!

8 years agoMerge pull request #2941 from sid3windr/patch-2
Peter van Dijk [Thu, 26 Nov 2015 16:14:34 +0000 (17:14 +0100)]
Merge pull request #2941 from sid3windr/patch-2

Correct small typo in dns64 documentation

8 years agoMerge branch 'pcserial' from @ahupowerdns
Pieter Lexis [Thu, 26 Nov 2015 16:06:40 +0000 (17:06 +0100)]
Merge branch 'pcserial' from @ahupowerdns

8 years agoimprove filedescriptor requesting code so it requests more filedescriptors, plus...
bert hubert [Thu, 26 Nov 2015 14:26:39 +0000 (15:26 +0100)]
improve filedescriptor requesting code so it requests more filedescriptors, plus actually uses the number of launched threads in the calculation... Potentially relevant for 3.7.3 as well!

8 years agoEMFILE was (out of filedescriptors, too many open files) was reported as an error...
bert hubert [Thu, 26 Nov 2015 14:23:57 +0000 (15:23 +0100)]
EMFILE was (out of filedescriptors, too many open files) was reported as an error that could be blamed on the remote nameserver instead of on the OS, causing throttle actions.

8 years agoalso report fd usage in recursor
bert hubert [Thu, 26 Nov 2015 14:23:04 +0000 (15:23 +0100)]
also report fd usage in recursor

8 years agofix back the scopemask stuff we removed from the ueberbackend query cache
bert hubert [Thu, 26 Nov 2015 10:57:06 +0000 (11:57 +0100)]
fix back the scopemask stuff we removed from the ueberbackend query cache

8 years agomove dnsname to boost::container::string, remove horrible serialization from packetcache
bert hubert [Wed, 25 Nov 2015 21:07:53 +0000 (22:07 +0100)]
move dnsname to boost::container::string, remove horrible serialization from packetcache

8 years agoMerge pull request #2934 from cmouse/gdobc-stuff
Peter van Dijk [Thu, 26 Nov 2015 15:59:40 +0000 (16:59 +0100)]
Merge pull request #2934 from cmouse/gdobc-stuff

Fix gODBC for MSSQL - this corrects the breakage from #2929

8 years agonit
Peter van Dijk [Thu, 26 Nov 2015 15:57:57 +0000 (16:57 +0100)]
nit

8 years agoMerge pull request #2931 from pieterlexis/dnsdist-version
bert hubert [Thu, 26 Nov 2015 15:34:52 +0000 (16:34 +0100)]
Merge pull request #2931 from pieterlexis/dnsdist-version

small dnsdist enhancements

8 years agoMaurice Makaay spotted that dnsdist built-in-webserver URLs were needlessly absolute...
bert hubert [Thu, 26 Nov 2015 15:16:14 +0000 (16:16 +0100)]
Maurice Makaay spotted that dnsdist built-in-webserver URLs were needlessly absolute. They are relative now. Thanks!

8 years agoDrop truncated UDP messages caused by a small buffer.
Remi Gacogne [Thu, 26 Nov 2015 14:55:04 +0000 (15:55 +0100)]
Drop truncated UDP messages caused by a small buffer.

When we receive a message too large for our buffer, recvmsg() will
truncate the content to fit the buffer and set the MSG_TRUNC flag.
There is no point in trying to parse this message because we will
choke during the parsing anyway.

8 years agostop testing odbc/sqlite on travis as ubuntu trusty has broken versions of all the...
Peter van Dijk [Thu, 26 Nov 2015 14:52:48 +0000 (15:52 +0100)]
stop testing odbc/sqlite on travis as ubuntu trusty has broken versions of all the relevant libs

8 years agoMerge pull request #2935 from pieterlexis/comma-sep-arguments-consistent
bert hubert [Thu, 26 Nov 2015 14:21:34 +0000 (15:21 +0100)]
Merge pull request #2935 from pieterlexis/comma-sep-arguments-consistent

Allow the use of spaces to parse options

8 years agoAllow the use of spaces to parse options
Pieter Lexis [Thu, 26 Nov 2015 13:58:51 +0000 (14:58 +0100)]
Allow the use of spaces to parse options

8 years agoMerge pull request #2893 from yossigo/fix_missing_ipv6
Pieter Lexis [Thu, 26 Nov 2015 11:59:12 +0000 (12:59 +0100)]
Merge pull request #2893 from yossigo/fix_missing_ipv6

Gracefully handle cases where IPv6 (AF_INET6) is not supported.

8 years agoMerge pull request #2920 from stasic/patch-1
Pieter Lexis [Thu, 26 Nov 2015 11:56:37 +0000 (12:56 +0100)]
Merge pull request #2920 from stasic/patch-1

use the vars

8 years agoRetrieve data only once
Aki Tuomi [Thu, 26 Nov 2015 08:36:56 +0000 (10:36 +0200)]
Retrieve data only once

8 years agoFix example in the README.md
Pieter Lexis [Thu, 26 Nov 2015 08:54:27 +0000 (09:54 +0100)]
Fix example in the README.md

8 years agoRename the dnsdist history file to something less generic
Pieter Lexis [Wed, 25 Nov 2015 18:06:16 +0000 (19:06 +0100)]
Rename the dnsdist history file to something less generic

8 years agodnsdist: Add version number to startup message
Pieter Lexis [Wed, 25 Nov 2015 18:03:53 +0000 (19:03 +0100)]
dnsdist: Add version number to startup message

8 years agoAdd a bunch of new options to the dnsdist manpage
Pieter Lexis [Wed, 25 Nov 2015 17:31:28 +0000 (18:31 +0100)]
Add a bunch of new options to the dnsdist manpage

8 years agoAdd the final dnsdist executable to .gitignore
Pieter Lexis [Wed, 25 Nov 2015 16:43:29 +0000 (17:43 +0100)]
Add the final dnsdist executable to .gitignore

8 years agoAdd --version to dnsdist
Pieter Lexis [Wed, 25 Nov 2015 16:42:41 +0000 (17:42 +0100)]
Add --version to dnsdist

8 years agoadd setting edns-outgoing-bufsize for setting the default EDNS bufsize in recursor...
bert hubert [Thu, 26 Nov 2015 08:20:49 +0000 (09:20 +0100)]
add setting edns-outgoing-bufsize for setting the default EDNS bufsize in recursor for outgoing queries

8 years agoMerge pull request #2932 from ahupowerdns/fixmalloc
bert hubert [Thu, 26 Nov 2015 07:45:33 +0000 (08:45 +0100)]
Merge pull request #2932 from ahupowerdns/fixmalloc

get travis to merge us again

8 years agopotentially get travis to build us correctly again
bert hubert [Wed, 25 Nov 2015 18:15:15 +0000 (19:15 +0100)]
potentially get travis to build us correctly again

8 years agoadd ./configure --enable-malloc-trace which will cause powerdns recursor (for now...
bert hubert [Wed, 25 Nov 2015 14:11:45 +0000 (15:11 +0100)]
add ./configure --enable-malloc-trace which will cause powerdns recursor (for now) to trace malloc calls and report them as metrics.

8 years agoshave off 23 mallocs per cache miss
bert hubert [Wed, 25 Nov 2015 13:55:01 +0000 (14:55 +0100)]
shave off 23 mallocs per cache miss

8 years agoMerge pull request #2929 from cmouse/godbc-stuff
Peter van Dijk [Wed, 25 Nov 2015 08:11:21 +0000 (09:11 +0100)]
Merge pull request #2929 from cmouse/godbc-stuff

gODBC touches

8 years agoAdd godbc_sqlite3 to help
Aki Tuomi [Tue, 24 Nov 2015 13:52:24 +0000 (15:52 +0200)]
Add godbc_sqlite3 to help

8 years agoUse sizeof instead of magic number
Aki Tuomi [Tue, 24 Nov 2015 13:50:32 +0000 (15:50 +0200)]
Use sizeof instead of magic number

8 years agoUse 128k fetch buffer
Aki Tuomi [Tue, 24 Nov 2015 13:49:45 +0000 (15:49 +0200)]
Use 128k fetch buffer

8 years agoConsume variable length data in parts
Aki Tuomi [Tue, 24 Nov 2015 13:40:15 +0000 (15:40 +0200)]
Consume variable length data in parts

8 years agoNUL-safe select
Aki Tuomi [Tue, 24 Nov 2015 13:18:14 +0000 (15:18 +0200)]
NUL-safe select

8 years agoMerge pull request #2923 from pieterlexis/pipe-backend-fixes
Pieter Lexis [Tue, 24 Nov 2015 17:30:38 +0000 (18:30 +0100)]
Merge pull request #2923 from pieterlexis/pipe-backend-fixes

pipe: Correctly initialize the abi-version var

8 years agocleanup abomination where we serialized dnsnames to strings
bert hubert [Tue, 24 Nov 2015 16:06:24 +0000 (17:06 +0100)]
cleanup abomination where we serialized dnsnames to strings

8 years agoobvious malloc cleanups
bert hubert [Tue, 24 Nov 2015 15:59:22 +0000 (16:59 +0100)]
obvious malloc cleanups

8 years agoMerge pull request #2788 from Habbie/godbc-squash-rebase
Peter van Dijk [Tue, 24 Nov 2015 13:09:08 +0000 (14:09 +0100)]
Merge pull request #2788 from Habbie/godbc-squash-rebase

implement godbc backend

8 years agoMerge pull request #36 from cmouse/godbc-squash-rebase
Peter van Dijk [Tue, 24 Nov 2015 10:27:20 +0000 (11:27 +0100)]
Merge pull request #36 from cmouse/godbc-squash-rebase

Bind by C-type

8 years agoCorrectly construct pointer
Aki Tuomi [Mon, 23 Nov 2015 20:47:43 +0000 (22:47 +0200)]
Correctly construct pointer

8 years agoMatch C-type better in binding
Aki Tuomi [Mon, 23 Nov 2015 20:30:14 +0000 (22:30 +0200)]
Match C-type better in binding

8 years agoRemove unused variable
Aki Tuomi [Mon, 23 Nov 2015 19:51:22 +0000 (21:51 +0200)]
Remove unused variable

8 years agoUse size_t for d_paridx,d_parnum
Aki Tuomi [Mon, 23 Nov 2015 19:50:58 +0000 (21:50 +0200)]
Use size_t for d_paridx,d_parnum

8 years agoMerge branch 'master' of github.com:PowerDNS/pdns
bert hubert [Mon, 23 Nov 2015 16:10:22 +0000 (17:10 +0100)]
Merge branch 'master' of github.com:PowerDNS/pdns

8 years agosimple malloc tracing infra
bert hubert [Mon, 23 Nov 2015 16:09:56 +0000 (17:09 +0100)]
simple malloc tracing infra

8 years agoMerge pull request #2918 from zeha/clang-warnings
Peter van Dijk [Mon, 23 Nov 2015 15:50:31 +0000 (16:50 +0100)]
Merge pull request #2918 from zeha/clang-warnings

Fix some warnings found by clang

8 years agoMerge pull request #2922 from zeha/dlog-no-except
Peter van Dijk [Mon, 23 Nov 2015 15:12:07 +0000 (16:12 +0100)]
Merge pull request #2922 from zeha/dlog-no-except

Fix ANY under DLOG

8 years agopipe: Correctly initialize the abi-version var
Pieter Lexis [Mon, 23 Nov 2015 11:06:49 +0000 (12:06 +0100)]
pipe: Correctly initialize the abi-version var

Closes #2921 (thanks @paddg)!

8 years agoimplement gODBC backend; loosely based on old godbc code by Michel Stol
Peter van Dijk [Mon, 29 Jun 2015 14:34:09 +0000 (16:34 +0200)]
implement gODBC backend; loosely based on old godbc code by Michel Stol

8 years agoFix ANY under DLOG
Christian Hofstaedtler [Mon, 23 Nov 2015 11:46:21 +0000 (12:46 +0100)]
Fix ANY under DLOG

Previously, unit tests would produce:

After first ANY query for 'aland.test.com.', id=10: weDone=1, weHaveUnauth=0, weRedirected=0, haveAlias='Exception building answer packet (Attempt to print an unset dnsname) sending out servfail

8 years agoMerge branch 'master' of github.com:PowerDNS/pdns
bert hubert [Mon, 23 Nov 2015 11:09:52 +0000 (12:09 +0100)]
Merge branch 'master' of github.com:PowerDNS/pdns

8 years agodon't cache NXDOMAINs for EDNC Client Subnet answers. Closes #2906.
bert hubert [Mon, 23 Nov 2015 11:09:06 +0000 (12:09 +0100)]
don't cache NXDOMAINs for EDNC Client Subnet answers. Closes #2906.

8 years agouse the vars
Arsen Stasic [Mon, 23 Nov 2015 07:48:14 +0000 (08:48 +0100)]
use the vars

These variables are defined so we use them everywhere

8 years agoFix signed/unsigned type confusion warnings in checkForCorrectTSIG
Christian Hofstaedtler [Sun, 22 Nov 2015 22:19:20 +0000 (23:19 +0100)]
Fix signed/unsigned type confusion warnings in checkForCorrectTSIG

8 years agoMark functions overriding funcs as such
Christian Hofstaedtler [Sun, 22 Nov 2015 22:07:10 +0000 (23:07 +0100)]
Mark functions overriding funcs as such

Reduces number of warnings on clang.

8 years agomake appendRawLabel() version that accepts raw pointers (and point the std::string...
bert hubert [Sun, 22 Nov 2015 22:01:32 +0000 (23:01 +0100)]
make appendRawLabel() version that accepts raw pointers (and point the std::string version to it), do a smart reserve in the common packet parsing case. This reduces malloc calls/packet in dnsdist from 9/query to 3, only 1 of which comes from dnsname.

9 years agoadd the mandatory GPL warning on startup: dnsdist comes with ABSOLUTELY NO WARRANTY...
bert hubert [Sun, 22 Nov 2015 16:19:16 +0000 (17:19 +0100)]
add the mandatory GPL warning on startup: dnsdist comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2

9 years agoas noted by winfried, we could end up using same hash on packets in multiple places...
bert hubert [Sun, 22 Nov 2015 16:01:51 +0000 (17:01 +0100)]
as noted by winfried, we could end up using same hash on packets in multiple places, leading to "hot" CPUs on some nodes. Turned out we perturbed the hash already on the side of pdns_recursor, but this adds perturbation to dnsdist too.

9 years agonamespace sanitation
bert hubert [Sun, 22 Nov 2015 16:01:13 +0000 (17:01 +0100)]
namespace sanitation

9 years agoMerge pull request #2907 from cmouse/geoipbackend-many-files
Peter van Dijk [Sun, 22 Nov 2015 15:26:30 +0000 (16:26 +0100)]
Merge pull request #2907 from cmouse/geoipbackend-many-files

GeoIP backend features & fixes

9 years agofix outrageous latency precision in web-page, also report server-policy via JSON...
bert hubert [Sun, 22 Nov 2015 12:54:44 +0000 (13:54 +0100)]
fix outrageous latency precision in web-page, also report server-policy via JSON & web-page

9 years agoimplement & document whashed 'sticky' server selection policy, as suggested by Winfri...
bert hubert [Sun, 22 Nov 2015 12:03:45 +0000 (13:03 +0100)]
implement & document whashed 'sticky' server selection policy, as suggested by Winfried A.

9 years agomove dnsdist json stats to dumping all metrics, adjust built-in webpage to the new...
bert hubert [Sun, 22 Nov 2015 11:55:24 +0000 (12:55 +0100)]
move dnsdist json stats to dumping all metrics, adjust built-in webpage to the new names of the old things

9 years agoMerge pull request #2916 from rgacogne/dnsname-packetparser-obo
bert hubert [Sun, 22 Nov 2015 09:20:49 +0000 (10:20 +0100)]
Merge pull request #2916 from rgacogne/dnsname-packetparser-obo

Check that offset < len in DNSName::packetParser.

9 years agoAdd array syntax for services
Aki Tuomi [Thu, 19 Nov 2015 13:21:05 +0000 (15:21 +0200)]
Add array syntax for services

9 years agoRefactor queryGeoIP
Aki Tuomi [Thu, 19 Nov 2015 12:10:18 +0000 (14:10 +0200)]
Refactor queryGeoIP

Split it into component functions, add support for
multiple files and new format specifier for AS numbers

9 years agoUpdate tests
Aki Tuomi [Wed, 18 Nov 2015 15:17:46 +0000 (17:17 +0200)]
Update tests

9 years agoUpdate documentation
Aki Tuomi [Wed, 18 Nov 2015 15:17:38 +0000 (17:17 +0200)]
Update documentation

9 years agobrief "getting started" file
bert hubert [Sat, 21 Nov 2015 21:39:15 +0000 (22:39 +0100)]
brief "getting started" file

9 years agoMerge branch 'master' of github.com:PowerDNS/pdns
bert hubert [Sat, 21 Nov 2015 21:07:32 +0000 (22:07 +0100)]
Merge branch 'master' of github.com:PowerDNS/pdns

Conflicts:
pdns/dnsdist.hh

9 years agoshift from binding to 0.0.0.0 by default to binding to 127.0.0.1. Our last chance...
bert hubert [Sat, 21 Nov 2015 21:02:18 +0000 (22:02 +0100)]
shift from binding to 0.0.0.0 by default to binding to 127.0.0.1. Our last chance to make this painful change.

9 years agoadd --acl,-a to *set* the ACL from the command line
bert hubert [Sat, 21 Nov 2015 21:02:01 +0000 (22:02 +0100)]
add --acl,-a to *set* the ACL from the command line

9 years agoimprove statistics and logging a bit (warn for 'no downstream servers' for example)
bert hubert [Sat, 21 Nov 2015 21:01:31 +0000 (22:01 +0100)]
improve statistics and logging a bit (warn for 'no downstream servers' for example)

9 years agomake setACL() also accept a single netmask
bert hubert [Sat, 21 Nov 2015 21:00:51 +0000 (22:00 +0100)]
make setACL() also accept a single netmask

9 years agoadd dumpStats()
bert hubert [Sat, 21 Nov 2015 20:58:53 +0000 (21:58 +0100)]
add dumpStats()

9 years agoMerge pull request #2915 from mind04/leftovers
Peter van Dijk [Fri, 20 Nov 2015 14:05:40 +0000 (15:05 +0100)]
Merge pull request #2915 from mind04/leftovers

remove lmdb leftovers (closes #2898)

9 years agoCheck that offset < len in DNSName::packetParser.
Remi Gacogne [Fri, 20 Nov 2015 11:16:16 +0000 (12:16 +0100)]
Check that offset < len in DNSName::packetParser.

If DNSName::packetParser() is called with offset >= len,
we do pos = qpos + offset, then labellen=*pos++ before
checking that pos is not after qpos + len, leading to
a potential out-of-bound read.