]> granicus.if.org Git - pdns/log
pdns
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 #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 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.

9 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

9 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.

9 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.

9 years agoMerge pull request #2847 from rgacogne/dnsdist-healthcheck
bert hubert [Fri, 20 Nov 2015 10:06:06 +0000 (11:06 +0100)]
Merge pull request #2847 from rgacogne/dnsdist-healthcheck

Add checks and allow custom DNSName and QType in dnsdist healthcheck

9 years agoMerge pull request #2904 from aj-gh/recursor-fixthrottlemsg
bert hubert [Fri, 20 Nov 2015 09:56:04 +0000 (10:56 +0100)]
Merge pull request #2904 from aj-gh/recursor-fixthrottlemsg

Fix incorrect hardcoded timeframe in server-down throttling log line.

9 years agoMerge pull request #2914 from rgacogne/ddist-cpu-stats
bert hubert [Fri, 20 Nov 2015 09:55:01 +0000 (10:55 +0100)]
Merge pull request #2914 from rgacogne/ddist-cpu-stats

Export dnsdist CPU usage to carbon. Fixes #2913.

9 years agomove lmdb backend documentation to the deprecated backends section
Kees Monshouwer [Thu, 19 Nov 2015 15:40:20 +0000 (16:40 +0100)]
move lmdb backend documentation to the deprecated backends section

9 years agoExport dnsdist CPU usage to carbon. Fixes #2913.
Remi Gacogne [Thu, 19 Nov 2015 15:20:54 +0000 (16:20 +0100)]
Export dnsdist CPU usage to carbon. Fixes #2913.

9 years agoremove skip.lmdb files from regression-tests
Kees Monshouwer [Thu, 19 Nov 2015 15:10:48 +0000 (16:10 +0100)]
remove skip.lmdb files from regression-tests

9 years agoremove lmdbbackend symlink from regressio-tests modules dir
Kees Monshouwer [Thu, 19 Nov 2015 15:06:25 +0000 (16:06 +0100)]
remove lmdbbackend symlink from regressio-tests modules dir

9 years agoremove lmdb leftovers
Kees Monshouwer [Thu, 19 Nov 2015 14:05:34 +0000 (15:05 +0100)]
remove lmdb leftovers

9 years agoMerge pull request #2905 from pieterlexis/travis-trusty
Peter van Dijk [Thu, 19 Nov 2015 14:01:40 +0000 (15:01 +0100)]
Merge pull request #2905 from pieterlexis/travis-trusty

Update travis to trusty

9 years agoMerge pull request #2912 from Habbie/macportable
Peter van Dijk [Thu, 19 Nov 2015 13:14:39 +0000 (14:14 +0100)]
Merge pull request #2912 from Habbie/macportable

improve osx portability

9 years agoAdd valueOrEmpty
Aki Tuomi [Thu, 19 Nov 2015 08:41:58 +0000 (10:41 +0200)]
Add valueOrEmpty

9 years agodefine endianness macros for OS X portability
Peter van Dijk [Thu, 19 Nov 2015 09:15:32 +0000 (10:15 +0100)]
define endianness macros for OS X portability

9 years agomake std::accumulate visible on osx/clang
Peter van Dijk [Thu, 19 Nov 2015 11:27:57 +0000 (12:27 +0100)]
make std::accumulate visible on osx/clang

9 years agoamazingly, we could not *set* the local address from Lua, only add to the set of...
bert hubert [Thu, 19 Nov 2015 11:05:00 +0000 (12:05 +0100)]
amazingly, we could not *set* the local address from Lua, only add to the set of listen addresses!

9 years agoMerge pull request #2909 from rgacogne/dnsdistrestoreflags
bert hubert [Thu, 19 Nov 2015 10:20:55 +0000 (11:20 +0100)]
Merge pull request #2909 from rgacogne/dnsdistrestoreflags

Add setCD()/getCD(). Restore initial flags in the response (RD/CD for now)

9 years agoAdd DisableValidationAction() and addDisableValidationRule()
Remi Gacogne [Thu, 19 Nov 2015 09:39:18 +0000 (10:39 +0100)]
Add DisableValidationAction() and addDisableValidationRule()

9 years agoMerge pull request #2908 from pieterlexis/bind-dnssec-db-docs
Peter van Dijk [Thu, 19 Nov 2015 08:20:34 +0000 (09:20 +0100)]
Merge pull request #2908 from pieterlexis/bind-dnssec-db-docs

Add a note on slave domains and bind-dnssec-db

9 years agomake test-auth exit quietly if there are any arguments, in preparation for targeted...
Peter van Dijk [Wed, 18 Nov 2015 17:18:33 +0000 (18:18 +0100)]
make test-auth exit quietly if there are any arguments, in preparation for targeted builders like ODBC

9 years agoAdd setCD()/getCD(). Restore initial flags in the response (RD/CD for now).
Remi Gacogne [Wed, 18 Nov 2015 16:38:46 +0000 (17:38 +0100)]
Add setCD()/getCD(). Restore initial flags in the response (RD/CD for now).

9 years agoAdd a note on slave domains and bind-dnssec-db
Pieter Lexis [Wed, 18 Nov 2015 15:07:58 +0000 (16:07 +0100)]
Add a note on slave domains and bind-dnssec-db

9 years agoUpdate travis to trusty
Pieter Lexis [Tue, 3 Nov 2015 12:25:05 +0000 (13:25 +0100)]
Update travis to trusty

9 years agoMerge pull request #2877 from rgacogne/dnsdist-drop-priv
bert hubert [Wed, 18 Nov 2015 08:54:06 +0000 (09:54 +0100)]
Merge pull request #2877 from rgacogne/dnsdist-drop-priv

Add --uid and --gid parameters in dnsdist to request dropping privile…

9 years agoMerge pull request #2902 from rgacogne/dnsdist-fix-showservers-output
bert hubert [Wed, 18 Nov 2015 08:53:36 +0000 (09:53 +0100)]
Merge pull request #2902 from rgacogne/dnsdist-fix-showservers-output

Fix the width of fields for the showServers() output. Fixes #2900.

9 years agoMerge pull request #2903 from cmouse/geoipbackend-features
bert hubert [Wed, 18 Nov 2015 08:43:55 +0000 (09:43 +0100)]
Merge pull request #2903 from cmouse/geoipbackend-features

Geoipbackend features: ROUTE YOUR DNS BASED ON DAY OF THE WEEK! (and netmask)

9 years agoFix incorrect hardcoded timeframe in server-down throttling log line.
Andreas Jakum [Wed, 18 Nov 2015 00:10:53 +0000 (01:10 +0100)]
Fix incorrect hardcoded timeframe in server-down throttling log line.
Fixes #1878.

9 years agoUpdate travis region
Aki Tuomi [Tue, 17 Nov 2015 20:56:23 +0000 (22:56 +0200)]
Update travis region

9 years agoUpdate documentation
Aki Tuomi [Tue, 17 Nov 2015 19:46:24 +0000 (21:46 +0200)]
Update documentation

9 years agoAdd new format specifiers
Aki Tuomi [Thu, 12 Nov 2015 14:41:50 +0000 (16:41 +0200)]
Add new format specifiers

9 years agoAdd note about overrides
Aki Tuomi [Sun, 15 Nov 2015 15:47:30 +0000 (17:47 +0200)]
Add note about overrides

9 years agoAdd netmask overrides feature
Aki Tuomi [Sun, 15 Nov 2015 15:35:44 +0000 (17:35 +0200)]
Add netmask overrides feature

9 years agoMerge pull request #2891 from cmouse/netmaskgroup-sort
bert hubert [Tue, 17 Nov 2015 19:06:24 +0000 (20:06 +0100)]
Merge pull request #2891 from cmouse/netmaskgroup-sort

Tree implementation for NetmaskGroup - thank you @cmouse and @stbuehler !

9 years agoInclude iputils in pdnssec
Aki Tuomi [Mon, 16 Nov 2015 09:30:54 +0000 (11:30 +0200)]
Include iputils in pdnssec

9 years agoAdd test suite for NetmaskTree
Aki Tuomi [Sun, 15 Nov 2015 10:35:20 +0000 (12:35 +0200)]
Add test suite for NetmaskTree

9 years agoUse NetmaskTree<bool> in NetmaskGroup
Aki Tuomi [Sun, 15 Nov 2015 10:34:50 +0000 (12:34 +0200)]
Use NetmaskTree<bool> in NetmaskGroup

9 years agoExplicitly define NetworkTree<bool>
Aki Tuomi [Sun, 15 Nov 2015 23:19:08 +0000 (01:19 +0200)]
Explicitly define NetworkTree<bool>

9 years agoAdd implementation for NetmaskTree<T>
Aki Tuomi [Sun, 15 Nov 2015 10:32:12 +0000 (12:32 +0200)]
Add implementation for NetmaskTree<T>

A tree based map implementation to keep collection
of network prefixes and return best match for
given ComboAddress.

9 years agoFix the width of format fields for the showServers() output.
Remi Gacogne [Tue, 17 Nov 2015 17:06:23 +0000 (18:06 +0100)]
Fix the width of format fields for the showServers() output.

9 years agoexplain that leastOutstanding also looks at latency now
bert hubert [Tue, 17 Nov 2015 15:06:28 +0000 (16:06 +0100)]
explain that leastOutstanding also looks at latency now

9 years agomake dnsdist like faster servers even more in leastOutstanding policy (which also...
bert hubert [Tue, 17 Nov 2015 15:01:53 +0000 (16:01 +0100)]
make dnsdist like faster servers even more in leastOutstanding policy (which also appears to honor the 'order' field!)

9 years agoAdd --uid and --gid parameters in dnsdist to request dropping privileges. Fixes ...
Remi Gacogne [Mon, 9 Nov 2015 11:29:57 +0000 (12:29 +0100)]
Add --uid and --gid parameters in dnsdist to request dropping privileges. Fixes #2798.

9 years agoMerge pull request #2899 from rgacogne/dnsdist-carbon-more
bert hubert [Tue, 17 Nov 2015 14:39:40 +0000 (15:39 +0100)]
Merge pull request #2899 from rgacogne/dnsdist-carbon-more

Add oustanding queries and send errors stats to the carbon export.

9 years agoAdd oustanding queries and send errors stats to the carbon export.
Remi Gacogne [Tue, 17 Nov 2015 14:00:27 +0000 (15:00 +0100)]
Add oustanding queries and send errors stats to the carbon export.

I really have no idea why I didn't include those last time,
it just makes sense to have them.

9 years agoMerge pull request #2889 from aj-gh/tcp-ignores-log-ip
bert hubert [Tue, 17 Nov 2015 12:24:25 +0000 (13:24 +0100)]
Merge pull request #2889 from aj-gh/tcp-ignores-log-ip

Add source IP when logging incorrect (ignored) TCP packets.

9 years agoMerge pull request #2892 from zeha/clang-warnings
bert hubert [Tue, 17 Nov 2015 12:23:47 +0000 (13:23 +0100)]
Merge pull request #2892 from zeha/clang-warnings

Fix inconsistent override usage in dnsrecords.hh

9 years agoMerge pull request #2894 from Habbie/drop-lmdb
bert hubert [Tue, 17 Nov 2015 12:23:25 +0000 (13:23 +0100)]
Merge pull request #2894 from Habbie/drop-lmdb

[wip] remove LMDB backend completely

9 years agoremove LMDB backend completely
Peter van Dijk [Tue, 17 Nov 2015 10:30:54 +0000 (11:30 +0100)]
remove LMDB backend completely

9 years agoMerge pull request #2769 from mind04/remove-reverse
Peter van Dijk [Tue, 17 Nov 2015 10:02:29 +0000 (11:02 +0100)]
Merge pull request #2769 from mind04/remove-reverse

remove 'reverse backend' from core.

9 years agoNo need to copy the response from the healthcheck, it's not going anywhere
Remi Gacogne [Tue, 17 Nov 2015 09:25:19 +0000 (10:25 +0100)]
No need to copy the response from the healthcheck, it's not going anywhere

9 years agoDocument the new parameters ('checkName', 'checkType' and 'mustResolve') of newServer()
Remi Gacogne [Thu, 5 Nov 2015 09:50:12 +0000 (10:50 +0100)]
Document the new parameters ('checkName', 'checkType' and 'mustResolve') of newServer()

9 years agoAdd a 'mustResolve' parameter to newServer()
Remi Gacogne [Thu, 5 Nov 2015 09:47:39 +0000 (10:47 +0100)]
Add a 'mustResolve' parameter to newServer()

The default is to consider any response with a rcode different from
Servfail as valid. Passing true to mustResolve requires a rcode different
from NXDomain, Servfail and Refused.

9 years agoAllow custom DNSName and QType for dnsdist healthchecks
Remi Gacogne [Tue, 3 Nov 2015 10:54:15 +0000 (11:54 +0100)]
Allow custom DNSName and QType for dnsdist healthchecks

9 years agoAdd some sanity checks to the dnsdist health check
Remi Gacogne [Tue, 3 Nov 2015 10:53:38 +0000 (11:53 +0100)]
Add some sanity checks to the dnsdist health check

9 years agoFix inconsistent override usage in dnsrecords.hh
Christian Hofstaedtler [Mon, 16 Nov 2015 11:15:25 +0000 (12:15 +0100)]
Fix inconsistent override usage in dnsrecords.hh

Fixes warnings on clang.

9 years agoMerge pull request #2883 from scottbender/patch-1
Pieter Lexis [Mon, 16 Nov 2015 11:00:54 +0000 (12:00 +0100)]
Merge pull request #2883 from scottbender/patch-1

systemd starting dnsdist too early

9 years agoMerge pull request #2870 from rgacogne/dnsdist-lua-top
bert hubert [Fri, 13 Nov 2015 21:03:52 +0000 (22:03 +0100)]
Merge pull request #2870 from rgacogne/dnsdist-lua-top

Add default values for topResponses() and topQueries(). Fixes #2864.

9 years agoMerge pull request #2872 from rgacogne/dnsdist-getopt
bert hubert [Fri, 13 Nov 2015 21:03:25 +0000 (22:03 +0100)]
Merge pull request #2872 from rgacogne/dnsdist-getopt

Fix getopt options to match the documentation.

9 years agoMerge pull request #2871 from rgacogne/dnsdist-console
bert hubert [Fri, 13 Nov 2015 21:03:11 +0000 (22:03 +0100)]
Merge pull request #2871 from rgacogne/dnsdist-console

Handle LuaContext::SyntaxErrorException() in the Console server. Grac…