]>
granicus.if.org Git - pdns/log
Remi Gacogne [Thu, 21 Jan 2016 09:27:05 +0000 (10:27 +0100)]
Merge pull request #3275 from rgacogne/dnsdist-exceedservfails-typo
dnsdist: Fix exceedServFails() case. Add exceedQRate to completion
Remi Gacogne [Thu, 21 Jan 2016 08:41:20 +0000 (09:41 +0100)]
Merge pull request #3269 from rgacogne/dnsdist-incbin-unlicense
dnsdist: Include ext/incbin/UNLICENSE in the dnsdist tarball
Remi Gacogne [Wed, 20 Jan 2016 17:09:18 +0000 (18:09 +0100)]
dnsdist: Fix exceedServFails() case. Add exceedQRate to completion
Rename exceedServfails() to exceedServFails() to be consistent.
Closes #3273.
bert hubert [Wed, 20 Jan 2016 23:51:28 +0000 (00:51 +0100)]
Update README-dnsdist.md
bert hubert [Wed, 20 Jan 2016 22:53:36 +0000 (23:53 +0100)]
Merge pull request #3274 from ahupowerdns/recpack
redo packet cache to be simpler, have more features, testcases and still reduce lines of code!
bert hubert [Wed, 20 Jan 2016 22:02:41 +0000 (23:02 +0100)]
Merge remote-tracking branch 'origin/master' into recpack
Pieter Lexis [Wed, 20 Jan 2016 20:58:50 +0000 (21:58 +0100)]
Fix auth make dist
bert hubert [Wed, 20 Jan 2016 15:51:38 +0000 (16:51 +0100)]
also support running w/o lua
bert hubert [Wed, 20 Jan 2016 14:56:17 +0000 (15:56 +0100)]
revamp recursor packet cache to be far less clever and simply hash its question case insensitively. Plus add testcases.
bert hubert [Wed, 20 Jan 2016 14:50:42 +0000 (15:50 +0100)]
implement Lua gettag() which optionally tells you which part of the packet cache to look at
bert hubert [Wed, 20 Jan 2016 14:49:37 +0000 (15:49 +0100)]
clarifying comment
Pieter Lexis [Wed, 20 Jan 2016 16:04:16 +0000 (17:04 +0100)]
Move pdns-recursor contrib to recursordist
Pieter Lexis [Wed, 20 Jan 2016 15:40:58 +0000 (16:40 +0100)]
recursor dist: add missing file
bert hubert [Wed, 20 Jan 2016 15:27:27 +0000 (16:27 +0100)]
Merge pull request #3259 from pieterlexis/recursor-autotools
Fully autotoolize the recursor distribution!
Pieter Lexis [Wed, 20 Jan 2016 12:27:02 +0000 (13:27 +0100)]
Appease the license-gods
Remi Gacogne [Wed, 20 Jan 2016 11:32:58 +0000 (12:32 +0100)]
dnsdist: Include ext/incbin/UNLICENSE in the dnsdist tarball
Pieter Lexis [Wed, 20 Jan 2016 10:32:28 +0000 (11:32 +0100)]
Recursor: have buildscripts use new normal configure
Pieter Lexis [Tue, 29 Dec 2015 12:35:18 +0000 (13:35 +0100)]
Autotoolize the recursor
This is done similar to dnsdist.
This commit adds a pdns_check_os.m4 to set OS dependent options.
bert hubert [Tue, 19 Jan 2016 17:11:40 +0000 (18:11 +0100)]
Merge pull request #3268 from ahupowerdns/adfilter
enhance recursor lua with a hashed IP set, plus addRecord which is more generic than addAnswer
bert hubert [Tue, 19 Jan 2016 14:44:33 +0000 (15:44 +0100)]
add an efficient ComboAddress set (loads around a million IP addresses per second)
bert hubert [Tue, 19 Jan 2016 14:44:10 +0000 (15:44 +0100)]
add ability to store comboaddress in a hashed container
bert hubert [Tue, 19 Jan 2016 11:37:56 +0000 (12:37 +0100)]
Merge pull request #3244 from pieterlexis/4.0-forward-zones
Fix the forward zones in the recursor
bert hubert [Tue, 19 Jan 2016 11:37:30 +0000 (12:37 +0100)]
Merge pull request #3258 from Habbie/rrlfixes
minor fixes to policy/RRL code
bert hubert [Tue, 19 Jan 2016 11:37:05 +0000 (12:37 +0100)]
Merge pull request #3256 from rgacogne/dnsdist-or-not
dnsdist: Add NotRule() and OrRule()
bert hubert [Tue, 19 Jan 2016 11:34:45 +0000 (12:34 +0100)]
Merge pull request #3265 from rgacogne/dnsdist-ubsan
dnsdist: Fix misaligned load/store in ECS, reported by UBSAN
bert hubert [Tue, 19 Jan 2016 10:33:04 +0000 (11:33 +0100)]
Merge pull request #3266 from rgacogne/dnsdist-fake-ds
dnsdist: Do not create socket/thread for fake DS in client mode
Pieter Lexis [Tue, 19 Jan 2016 09:55:34 +0000 (10:55 +0100)]
Merge pull request #3264 from cmouse/geoipbackend-id
Use correct id numbers for domains
Remi Gacogne [Tue, 19 Jan 2016 09:43:08 +0000 (10:43 +0100)]
Merge pull request #3255 from janeczku/auth-basic
Don't log authentication errors before sending HTTP basic auth challenge
Remi Gacogne [Tue, 19 Jan 2016 09:25:42 +0000 (10:25 +0100)]
dnsdist: Do not create socket/thread for fake DS in client mode
While parsing the configuration in client mode, we create a fake
DownstreamState for each newServer() call, because we need it to
return a valid DownstreamState object. Unfortunately this leads
to the creation of a socket for 0.0.0.0, and a subsequent
connection attempt.
We now detect that the address does not make sense in this context
and do not create the associated socket.
Closes #3257.
Aki Tuomi [Tue, 19 Jan 2016 08:38:12 +0000 (10:38 +0200)]
Use correct id numbers for domains
Remi Gacogne [Tue, 19 Jan 2016 08:28:11 +0000 (09:28 +0100)]
dnsdist: Fix misaligned load/store in ECS, reported by UBSAN
Using the buffer position as an uint16_t requires 2 byte alignment,
which is not guaranteed here.
Jan Broer [Mon, 18 Jan 2016 01:01:48 +0000 (02:01 +0100)]
Don't throw authentication error on the first request a HTTP client sends
Pieter Lexis [Mon, 18 Jan 2016 14:21:50 +0000 (15:21 +0100)]
Add empty ComboAddress equality unit-test
Pieter Lexis [Fri, 15 Jan 2016 17:00:26 +0000 (18:00 +0100)]
Fix the forward zones in the recursor
In the pre-DNSName era, when dns-native names were passed as strings, we
overloaded the NS-name for a forward or auth zone. e.g. an empty string
meant 'this is an auth zone' and '+203.0.113.1' meant 'forward to 203.0.113.1
with the RD bit set'. With DNSNames, this is impossible (yay!).
In this commit, the set of strings (and later DNSNames), is replaced by
a map where a DNSName is the key and the value is a pair of a
ComboAddress and a boolean.
A non-empty DNSName: This is a normal NS, recurse as usual (the pair is
ignored).
An empty DNSName and empty ComboAddress: We are auth for this zone,
check the auth store for an answer.
An empty DNSName and non-empty ComboAddress: The query must be forwarded
to the ComboAddress specified and the boolean in the pair tells us the
value of the RD bit in the query we need to send.
Peter van Dijk [Mon, 18 Jan 2016 11:38:30 +0000 (12:38 +0100)]
don't toString an empty dnsname
Peter van Dijk [Mon, 18 Jan 2016 10:31:48 +0000 (11:31 +0100)]
Merge pull request #3176 from zeha/nombed
Allow building with OpenSSL in place of mbedtls
Remi Gacogne [Mon, 18 Jan 2016 10:19:40 +0000 (11:19 +0100)]
dnsdist: Add NotRule() and OrRule()
bert hubert [Sun, 17 Jan 2016 22:20:59 +0000 (23:20 +0100)]
Merge pull request #3251 from rgacogne/dnsdist-any-tcp
dnsdist: Document toString() aliases. Add TCPRule. Make AnyTCRule set TC only over UDP
Remi Gacogne [Sun, 17 Jan 2016 15:15:18 +0000 (16:15 +0100)]
dnsdist: Add TCPRule. Make addAnyTCRule set TC=1 over UDP, not TCP.
Remi Gacogne [Sun, 17 Jan 2016 11:27:46 +0000 (12:27 +0100)]
dnsdist: Document toString() and toStringWithPort() aliases
bert hubert [Sun, 17 Jan 2016 09:49:03 +0000 (10:49 +0100)]
add makeRule convenience function, improve SuffixMatchNodeRule showRules() output, document this
bert hubert [Sat, 16 Jan 2016 21:51:11 +0000 (22:51 +0100)]
Merge pull request #3232 from Habbie/ghostfixes
Fix recursor ghost tests
Christian Hofstaedtler [Fri, 15 Jan 2016 14:17:17 +0000 (15:17 +0100)]
[FOR NOW] Disable mbedtls for travis
Christian Hofstaedtler [Sun, 3 Jan 2016 20:26:07 +0000 (21:26 +0100)]
Dist+build Recursor with openssl instead of mbedtls
Christian Hofstaedtler [Sun, 3 Jan 2016 00:39:35 +0000 (01:39 +0100)]
Port sha.hh to OpenSSL
Christian Hofstaedtler [Sun, 3 Jan 2016 00:29:52 +0000 (01:29 +0100)]
Port dnssecinfra.cc to OpenSSL
Christian Hofstaedtler [Sat, 2 Jan 2016 21:25:44 +0000 (22:25 +0100)]
Port md5.hh to OpenSSL
Christian Hofstaedtler [Sat, 2 Jan 2016 21:01:46 +0000 (22:01 +0100)]
Port dns_random.cc to OpenSSL
Christian Hofstaedtler [Sat, 2 Jan 2016 21:01:38 +0000 (22:01 +0100)]
Port base64.cc to OpenSSL
Christian Hofstaedtler [Sat, 2 Jan 2016 21:00:59 +0000 (22:00 +0100)]
Add --without-mbedtls
Will require openssl though.
bert hubert [Sat, 16 Jan 2016 15:04:59 +0000 (16:04 +0100)]
Merge pull request #3243 from a6502/master
Some fixes for lua backend for Lua version >= 5.2
bert hubert [Sat, 16 Jan 2016 12:48:27 +0000 (13:48 +0100)]
Merge pull request #3249 from ahupowerdns/cmsg-fix
found with the help of @mischapeters - turns out our recent 'supply l…
bert hubert [Sat, 16 Jan 2016 12:46:33 +0000 (13:46 +0100)]
we silently ignored your Lua script if there was no Lua support in PowerDNS Recursor. This makes us error out again.
bert hubert [Sat, 16 Jan 2016 12:26:33 +0000 (13:26 +0100)]
quick fix for compiling on FreeBSD 10.2 which appears to be what people use/need to compile powerdns 4.
bert hubert [Sat, 16 Jan 2016 11:48:53 +0000 (12:48 +0100)]
found with the help of @mischapeters - turns out our recent 'supply local address to lua' improvements triggered us to set the source address on all our replies explicitly, something FreeBSD did not like and was wasteful on Linux. Plus added some logging that would have helped debug this faster.
bert hubert [Sat, 16 Jan 2016 11:07:57 +0000 (12:07 +0100)]
set c++11 flag for freebsd too
bert hubert [Sat, 16 Jan 2016 08:15:17 +0000 (09:15 +0100)]
Merge pull request #3234 from pieterlexis/make-check-auth-tarball
remove unneeded source from auth tarball testrunner
bert hubert [Sat, 16 Jan 2016 08:14:42 +0000 (09:14 +0100)]
Merge pull request #3236 from Habbie/recursorwild
make auth-zone wildcard test actually test an auth-zone
bert hubert [Fri, 15 Jan 2016 22:35:58 +0000 (23:35 +0100)]
Merge pull request #3238 from Habbie/rawtypetest
test uninterpreted records, closes #3215
bert hubert [Fri, 15 Jan 2016 22:35:23 +0000 (23:35 +0100)]
Merge pull request #3245 from rgacogne/dnsdist-fix-dq-merge
dnsdist: Fix Lua Spoof PR not being compatible w/ the DNSQuestion one
Remi Gacogne [Fri, 15 Jan 2016 21:47:04 +0000 (22:47 +0100)]
dnsdist: Fix Lua Spoof PR not being compatible w/ the DNSQuestion one
PR #3241 did not take PR #3233 into account, my bad.
bert hubert [Fri, 15 Jan 2016 21:32:12 +0000 (22:32 +0100)]
Merge pull request #3240 from jeffpc/master
devpollmplexer fixes + fix DS ucontext.h pollution once and for all
bert hubert [Fri, 15 Jan 2016 20:23:50 +0000 (21:23 +0100)]
Merge pull request #3233 from rgacogne/dnsdist-dq
dnsdist: Replace the Lua params with a DNSQuestion `dq` object
bert hubert [Fri, 15 Jan 2016 20:19:02 +0000 (21:19 +0100)]
Merge pull request #3241 from rgacogne/dnsdist-lua-spoof
dnsdist: Implement DNSAction.Spoof. Support IPv6-only SpoofAction
Wieger Opmeer [Fri, 15 Jan 2016 13:43:12 +0000 (14:43 +0100)]
Fix importing of standard libraries for Lua version >= 5.2; Change some lua_pushnumbers to lua_pushinteger because Lua 5.3 has native integers
Remi Gacogne [Fri, 15 Jan 2016 11:00:01 +0000 (12:00 +0100)]
dnsdist: Implement DNSAction.Spoof. Support IPv6-only SpoofAction
DNSAction.Spoof can be used to return a spoofed response from
a Lua rule. It supports an IPv4 (A), IPv6 (AAAA) or a DNSName
(CNAME).
SpoofAction() can be used IPv6-only, by passing a IPv6 as the
first parameter. It now supports spoofing IPv4-only, IPv6-only,
IPv4 and IPv6, and CNAME.
Closes #3064.
Josef 'Jeff' Sipek [Thu, 14 Jan 2016 19:40:40 +0000 (14:40 -0500)]
don't pollute the namespace with DS register definition
DS is part of the i386 ABI that's pulled in via ucontext.h.
closes #3239
Josef 'Jeff' Sipek [Thu, 14 Jan 2016 19:12:07 +0000 (14:12 -0500)]
devpollmplexer is leaky
closes #3001
Josef 'Jeff' Sipek [Thu, 14 Jan 2016 19:11:07 +0000 (14:11 -0500)]
devpollmplexer doesn't compile due to missing sigset_t
closes #3000
Remi Gacogne [Thu, 14 Jan 2016 16:44:20 +0000 (17:44 +0100)]
Merge pull request #3235 from rgacogne/dnsdist-nocharset-json
dnsdist: Remove charset from the Content-Type header for application/json contents
Peter van Dijk [Thu, 14 Jan 2016 16:22:48 +0000 (16:22 +0000)]
test uninterpreted records, closes #3215
Peter van Dijk [Thu, 14 Jan 2016 14:54:21 +0000 (14:54 +0000)]
make auth-zone wildcard test actually test an auth-zone
Remi Gacogne [Thu, 14 Jan 2016 13:28:07 +0000 (14:28 +0100)]
dnsdist: Remove charset from Content-Type for application/json
Pieter Lexis [Thu, 14 Jan 2016 13:09:14 +0000 (14:09 +0100)]
remove unneeded source from auth tarball testrunner
bert hubert [Thu, 14 Jan 2016 12:22:00 +0000 (13:22 +0100)]
Merge pull request #3229 from pieterlexis/no-dnsdist-for-auth
Remove dnsdist from auth tarball
bert hubert [Thu, 14 Jan 2016 12:21:10 +0000 (13:21 +0100)]
Merge pull request #3231 from ahupowerdns/dynimp
Document and slightly improve dnsdist dynamic rules
Peter van Dijk [Thu, 14 Jan 2016 12:19:44 +0000 (12:19 +0000)]
re-enable ghost tests
Peter van Dijk [Thu, 14 Jan 2016 11:44:34 +0000 (11:44 +0000)]
adapt to trailing dots on names
Remi Gacogne [Thu, 14 Jan 2016 11:57:33 +0000 (12:57 +0100)]
dnsdist: Replace the Lua params with a DNSQuestion `dq` object
In order to:
1. Be able to add functions/member without breaking the API
2. Being as compatible as possible with the PowerDNS Lua API
To limit the parsing/copy to a minimum, this DNSQuestion differs
from the PowerDNS one. Most Lua members are properly wrapped,
but it currently lacks some advanced functions like `getRecords()`
or `setRecords()`, that we might add later.
In addition to the existing `tostring()`, this commit adds
`toString()` ones to match the PowerDNS syntax.
LuaWrapper is supposed to support read-only members, where you
only define the getter and no setter, but I can't find the right
syntax for that to work, so for now the setter are present for
read-only members, and just do nothing.
Peter van Dijk [Thu, 14 Jan 2016 11:44:10 +0000 (11:44 +0000)]
use new require semantics
Peter van Dijk [Thu, 14 Jan 2016 11:43:50 +0000 (11:43 +0000)]
fix fetching of qname from lua table
bert hubert [Thu, 14 Jan 2016 11:36:03 +0000 (12:36 +0100)]
document dynamic rule generation
bert hubert [Thu, 14 Jan 2016 10:45:49 +0000 (11:45 +0100)]
implement & document exceedQRate(), plus populate dnsdist.* with dns types.
Pieter Lexis [Thu, 14 Jan 2016 10:08:47 +0000 (11:08 +0100)]
Remove dnsdist from auth tarball
This ensures any files _only_ needed for dnsdist are not distributed,
that dnsdist (htmlfiles.h specifically) cannot be built from the tarball.
But still allow building dnsdist from the repository root.
bert hubert [Thu, 14 Jan 2016 09:30:01 +0000 (10:30 +0100)]
Merge pull request #3228 from pieterlexis/generate-manpage-dnsdist
dnsdist: Build manpages from make
bert hubert [Thu, 14 Jan 2016 09:10:58 +0000 (10:10 +0100)]
Merge pull request #3219 from rgacogne/dnsdist-xss
dnsdist: Remove JSONP, limit command to /jsonstat, add security HTTP headers and CORS
Remi Gacogne [Thu, 14 Jan 2016 08:14:05 +0000 (09:14 +0100)]
dnsdist: Set the charset to UTF-8 for html, JS, CSS and JSON contents
Remi Gacogne [Wed, 13 Jan 2016 16:54:54 +0000 (17:54 +0100)]
dnsdist: Remove remote images in the webserver index
- Remove the github link/image
- Add the powerdns logo to the html directory
- Add handling for PNG files in the webserver
- Edit the CSP policy to only allows local images
- Explicitely asks jQuery not to use JSONP while fetching the stats
Remi Gacogne [Tue, 12 Jan 2016 15:00:36 +0000 (16:00 +0100)]
dnsdist: Add basic CORS support in the webserver
Now that we have removed JSONP support, we need to support
Cross-Origin Resource Sharing (CORS) to allow web pages not served
by our webserver to access our JSON REST API (well, stats).
Christian Hofstaedtler [Tue, 12 Jan 2016 09:46:04 +0000 (10:46 +0100)]
dnsdist: Support command= only on /jsonstat URL
Remi Gacogne [Tue, 12 Jan 2016 09:25:05 +0000 (10:25 +0100)]
dnsdist: Remove jsonp callback, add security HTTP headers
- Remove the jsonp callback, using simple json data instead (Fixes #3217)
We might need to add CORS if we want to be able to retrieve JSON
data from a webpage not stored on the embedded web server.
- Add several HTTP headers:
* X-Content-Type-Options: no-sniff to prevent browsers from guessing MIME type
* X-Frame-Options: deny to prevent clickjacking
* X-Permitted-Cross-Domain-Policies: none to keep flash from crossing boundaries
* X-XSS-Protection: 1; mode=block to mitigate XSS
* Content-Security-Policy: default-src 'self'; img-src *; style-src 'self' 'unsafe-inline',
a basic CSP policy to restrict which scripts and CSS can be loaded
bert hubert [Thu, 14 Jan 2016 08:01:03 +0000 (09:01 +0100)]
Merge pull request #3226 from zeha/libedit2
Drop unused <history.h> include
Pieter Lexis [Wed, 13 Jan 2016 19:21:38 +0000 (20:21 +0100)]
dnsdist: Build manpages from make
Build manpage when they are not there and ensure they are distributed in
the tarball.
bert hubert [Wed, 13 Jan 2016 19:42:46 +0000 (20:42 +0100)]
Merge pull request #3224 from tjikkun/fix_html
fix html a bit
Christian Hofstaedtler [Wed, 13 Jan 2016 19:31:39 +0000 (20:31 +0100)]
Drop unused <history.h> include
Not needed for libedit, and the compat symlink apparently is a
Debian-only thing, breaking the build on Fedora.
bert hubert [Wed, 13 Jan 2016 19:31:37 +0000 (20:31 +0100)]
Merge pull request #3152 from zeha/shasummer
Fix deleted copy/assignment constructors
Sander Hoentjen [Wed, 13 Jan 2016 15:20:05 +0000 (16:20 +0100)]
fix html a bit
bert hubert [Wed, 13 Jan 2016 14:52:12 +0000 (15:52 +0100)]
Merge pull request #3221 from zeha/tarball-cleanup
dist-tar cleanup / fixes
bert hubert [Wed, 13 Jan 2016 14:51:46 +0000 (15:51 +0100)]
Merge pull request #3220 from zeha/libedit
Replace readline with libedit
bert hubert [Wed, 13 Jan 2016 14:50:28 +0000 (15:50 +0100)]
Merge pull request #3222 from bearggg/master
dnsdist: README hints to AllowAction() yet doesnt exist, add it