]> granicus.if.org Git - pdns/log
pdns
8 years agofix RHS @ expansion, closes #3031
Peter van Dijk [Mon, 14 Dec 2015 10:45:42 +0000 (11:45 +0100)]
fix RHS @ expansion, closes #3031

8 years agoMerge pull request #3019 from pieterlexis/issue-2838-ORIGIN-in-zone2sql
Pieter Lexis [Tue, 15 Dec 2015 13:17:20 +0000 (14:17 +0100)]
Merge pull request #3019 from pieterlexis/issue-2838-ORIGIN-in-zone2sql

zone2sql: support --zone without --zone-name

8 years agoMerge pull request #3035 from kempniu/b64decode-big-endian-fix
Pieter Lexis [Tue, 15 Dec 2015 13:16:59 +0000 (14:16 +0100)]
Merge pull request #3035 from kempniu/b64decode-big-endian-fix

Fix Base64 decoding for dnsdist on big endian platforms

8 years agoMerge pull request #3039 from rubenk/exit-with-0-when-receiving-sigquit
Pieter Lexis [Tue, 15 Dec 2015 13:16:43 +0000 (14:16 +0100)]
Merge pull request #3039 from rubenk/exit-with-0-when-receiving-sigquit

Exit with 0 when receiving QUIT

8 years agoExit with 0 when receiving QUIT
Ruben Kerkhof [Fri, 20 Feb 2015 22:34:22 +0000 (23:34 +0100)]
Exit with 0 when receiving QUIT

Fixes the first case in #2266

8 years agoDocument secpoll-suffix. Closes #2337
Pieter Lexis [Tue, 15 Dec 2015 11:07:41 +0000 (12:07 +0100)]
Document secpoll-suffix. Closes #2337

8 years agoMerge pull request #1896 from tuxis-ie/mysql-foreign-keys
Peter van Dijk [Tue, 15 Dec 2015 09:49:55 +0000 (10:49 +0100)]
Merge pull request #1896 from tuxis-ie/mysql-foreign-keys

Add foreign keys to the Mysql-scheme

8 years agoMerge pull request #3013 from pieterlexis/qtype-list
Peter van Dijk [Tue, 15 Dec 2015 09:40:41 +0000 (10:40 +0100)]
Merge pull request #3013 from pieterlexis/qtype-list

Make the QType enum list better diffible

8 years agoMerge pull request #3025 from pieterlexis/400-docs
Peter van Dijk [Tue, 15 Dec 2015 09:38:45 +0000 (10:38 +0100)]
Merge pull request #3025 from pieterlexis/400-docs

A slew of documentation fixes and additions

8 years agoMerge pull request #3027 from cyclops1982/patch-1
Peter van Dijk [Tue, 15 Dec 2015 09:37:19 +0000 (10:37 +0100)]
Merge pull request #3027 from cyclops1982/patch-1

Small typo in dnsupdate docs

8 years agoMerge pull request #3032 from cmouse/tsig-algos
Peter van Dijk [Tue, 15 Dec 2015 09:35:51 +0000 (10:35 +0100)]
Merge pull request #3032 from cmouse/tsig-algos

Compare TSIG algorithm as DNSName

8 years agoMerge pull request #3033 from pieterlexis/gcc53
Peter van Dijk [Tue, 15 Dec 2015 09:35:38 +0000 (10:35 +0100)]
Merge pull request #3033 from pieterlexis/gcc53

update boost.m4 to latest version

8 years agoallRule() for dnsdist
bert hubert [Tue, 15 Dec 2015 08:45:10 +0000 (09:45 +0100)]
allRule() for dnsdist

8 years agomore debugging
bert hubert [Mon, 14 Dec 2015 21:46:14 +0000 (22:46 +0100)]
more debugging

8 years agoremove .. in pdnsutil list-zone - thanks Sander Smeenk for noticing
bert hubert [Mon, 14 Dec 2015 19:34:42 +0000 (20:34 +0100)]
remove .. in pdnsutil list-zone - thanks Sander Smeenk for noticing

8 years agoremove some stray debugging from loading rpz from file
bert hubert [Mon, 14 Dec 2015 19:21:42 +0000 (20:21 +0100)]
remove some stray debugging from loading rpz from file

8 years agodocs: sort the settings for the recursor
Pieter Lexis [Mon, 14 Dec 2015 15:58:04 +0000 (16:58 +0100)]
docs: sort the settings for the recursor

8 years agoRemove last remnants of disable-edns
Pieter Lexis [Mon, 14 Dec 2015 15:54:50 +0000 (16:54 +0100)]
Remove last remnants of disable-edns

8 years agodocument `dnssec` setting for recursor
Pieter Lexis [Mon, 14 Dec 2015 15:46:40 +0000 (16:46 +0100)]
document `dnssec` setting for recursor

8 years agoimplement four dnssec modes: off (3.x behaviour), process (ask for DNSSEC, give it...
bert hubert [Mon, 14 Dec 2015 14:49:37 +0000 (15:49 +0100)]
implement four dnssec modes: off (3.x behaviour), process (ask for DNSSEC, give it when asked for, validate when asked to), validate (always validate), log-fail, always validate but log failures only.
Also, improve EDNS probing, plus make recursor packet cache DNSSEC aware.

8 years agoFix Base64 decoding for dnsdist on big endian platforms
Michał Kępień [Mon, 14 Dec 2015 12:15:19 +0000 (13:15 +0100)]
Fix Base64 decoding for dnsdist on big endian platforms

8 years agoupdate boost.m4 to latest version
Pieter Lexis [Mon, 14 Dec 2015 11:37:28 +0000 (12:37 +0100)]
update boost.m4 to latest version

8 years agoCompare TSIG algorithm as DNSName
Aki Tuomi [Mon, 14 Dec 2015 10:58:16 +0000 (12:58 +0200)]
Compare TSIG algorithm as DNSName

8 years agodocs: Expand opendbx-backend information
Pieter Lexis [Fri, 11 Dec 2015 20:02:36 +0000 (21:02 +0100)]
docs: Expand opendbx-backend information

This is mostly ported from @nos3's website (thanks!)

Closes: #445
8 years agodocs: document Autoserial. Closes #1211
Pieter Lexis [Fri, 11 Dec 2015 19:19:34 +0000 (20:19 +0100)]
docs: document Autoserial. Closes #1211

8 years agodocs: clarify TXT record content. Closes #1435
Pieter Lexis [Fri, 11 Dec 2015 18:46:03 +0000 (19:46 +0100)]
docs: clarify TXT record content. Closes #1435

8 years agodocs: add note about "storage format" in types.md
Pieter Lexis [Fri, 11 Dec 2015 17:25:50 +0000 (18:25 +0100)]
docs: add note about "storage format" in types.md

8 years agodocs: add note on TTL for DNSSEC RRs. Closes #2195
Pieter Lexis [Fri, 11 Dec 2015 17:13:42 +0000 (18:13 +0100)]
docs: add note on TTL for DNSSEC RRs. Closes #2195

8 years agoSplit the GSQL backend docs and update it
Pieter Lexis [Fri, 11 Dec 2015 16:40:13 +0000 (17:40 +0100)]
Split the GSQL backend docs and update it

Closes: #2987 #2067
8 years agodocs: Update recursor scripting
Pieter Lexis [Fri, 11 Dec 2015 13:13:43 +0000 (14:13 +0100)]
docs: Update recursor scripting

Closes #2559

8 years agoAdd initial auth 4.0.0 changelog
Pieter Lexis [Fri, 11 Dec 2015 13:05:07 +0000 (14:05 +0100)]
Add initial auth 4.0.0 changelog

8 years agodocs: Update the rrtypes we support
Pieter Lexis [Fri, 11 Dec 2015 12:42:24 +0000 (13:42 +0100)]
docs: Update the rrtypes we support

8 years agoDocument the ALIAS record, closes #2394
Pieter Lexis [Fri, 11 Dec 2015 11:48:40 +0000 (12:48 +0100)]
Document the ALIAS record, closes #2394

8 years agoimplement delta() to show changes versus configuration, so you can store your 'just...
bert hubert [Mon, 14 Dec 2015 09:42:02 +0000 (10:42 +0100)]
implement delta() to show changes versus configuration, so you can store your 'just right' setup.

8 years agoadd benchRule which benchmarks rules and AndRule which Ands rules together
bert hubert [Sun, 13 Dec 2015 20:19:36 +0000 (21:19 +0100)]
add benchRule which benchmarks rules and AndRule which Ands rules together

8 years agoadd PoolAction() to Lua
bert hubert [Sun, 13 Dec 2015 10:21:38 +0000 (11:21 +0100)]
add PoolAction() to Lua

8 years agohow did we miss this? RegexRule in dnsdist for matching queries with regular expressi...
bert hubert [Sun, 13 Dec 2015 09:35:26 +0000 (10:35 +0100)]
how did we miss this? RegexRule in dnsdist for matching queries with regular expressions & doing things to them

8 years agoSmall typo in dnsupdate docs
Ruben [Sat, 12 Dec 2015 13:42:36 +0000 (14:42 +0100)]
Small typo in dnsupdate docs

8 years agofix up so it compiles again, I think - may need more uncommitted infra
bert hubert [Fri, 11 Dec 2015 22:27:42 +0000 (23:27 +0100)]
fix up so it compiles again, I think - may need more uncommitted infra

8 years agoMerge pull request #3018 from Habbie/osx
Peter van Dijk [Fri, 11 Dec 2015 20:55:33 +0000 (21:55 +0100)]
Merge pull request #3018 from Habbie/osx

minor osx portability nit

8 years agoMerge pull request #3022 from mind04/dname
Peter van Dijk [Fri, 11 Dec 2015 13:30:09 +0000 (14:30 +0100)]
Merge pull request #3022 from mind04/dname

traling dot in DNAME content

8 years agoimplement DS anchor configuration, thank you https://twitter.com/PowerDNS_Bert/status...
bert hubert [Fri, 11 Dec 2015 12:18:38 +0000 (13:18 +0100)]
implement DS anchor configuration, thank you https://twitter.com/PowerDNS_Bert/status/675241924803080192 - we default to the known root DS

8 years agoMerge branch 'master' of github.com:PowerDNS/pdns
bert hubert [Fri, 11 Dec 2015 12:17:54 +0000 (13:17 +0100)]
Merge branch 'master' of github.com:PowerDNS/pdns

8 years agoMerge pull request #3023 from rgacogne/emptyclientlinenosodium
bert hubert [Fri, 11 Dec 2015 10:37:38 +0000 (11:37 +0100)]
Merge pull request #3023 from rgacogne/emptyclientlinenosodium

Fix dnsdist console client sending empty lines

8 years agoFix dnsdist console client sending empty lines
Remi Gacogne [Fri, 11 Dec 2015 10:10:43 +0000 (11:10 +0100)]
Fix dnsdist console client sending empty lines

There is no point for the console client to send empty lines to the
server. Just in case, fix the server to not abort the connection
when receiving such empty lines.
Reported by @gryphius as a follow-up on #3015.

8 years agoMerge pull request #3017 from rgacogne/consoleempty-nosodium
bert hubert [Fri, 11 Dec 2015 08:58:44 +0000 (09:58 +0100)]
Merge pull request #3017 from rgacogne/consoleempty-nosodium

Fix zero-sized response in dnsdist client without libsodium. Also disables setLocal() at runtime.

8 years agotraling dot in DNAME content
Kees Monshouwer [Fri, 11 Dec 2015 08:39:43 +0000 (09:39 +0100)]
traling dot in DNAME content

8 years agoWarn that addLocal() and setLocal() can't be used at runtime
Remi Gacogne [Thu, 10 Dec 2015 16:18:30 +0000 (17:18 +0100)]
Warn that addLocal() and setLocal() can't be used at runtime

8 years agoUpdate zone2sql manpage
Pieter Lexis [Thu, 10 Dec 2015 15:48:12 +0000 (16:48 +0100)]
Update zone2sql manpage

8 years agozone2sql: support --zone without --zone-name
Pieter Lexis [Thu, 10 Dec 2015 15:42:40 +0000 (16:42 +0100)]
zone2sql: support --zone without --zone-name

This *does* mean that $ORIGIN must be set in the zone file.

Closes #2838

8 years agominor osx portability nit
Peter van Dijk [Thu, 10 Dec 2015 15:33:03 +0000 (16:33 +0100)]
minor osx portability nit

8 years agoFix zero-sized response in dnsdist client without libsodium
Remi Gacogne [Thu, 10 Dec 2015 15:17:54 +0000 (16:17 +0100)]
Fix zero-sized response in dnsdist client without libsodium

Without libsodium support, we do actually get zero-sized response
(no padding).
Reported by @gryphius in issue #3015.

8 years agolog if a domain demands DNSSEC processing or not
bert hubert [Thu, 10 Dec 2015 13:24:22 +0000 (14:24 +0100)]
log if a domain demands DNSSEC processing or not

8 years agolove the unit tests.
bert hubert [Thu, 10 Dec 2015 12:57:59 +0000 (13:57 +0100)]
love the unit tests.

8 years agonew function: addDomainSpoof("domain", "ipv4", "ipv6"). Also, DNSActions can now...
bert hubert [Thu, 10 Dec 2015 11:55:09 +0000 (12:55 +0100)]
new function: addDomainSpoof("domain", "ipv4", "ipv6"). Also, DNSActions can now modify packet length.

8 years agoMake the QType enum list better diffible
Pieter Lexis [Wed, 9 Dec 2015 14:38:46 +0000 (15:38 +0100)]
Make the QType enum list better diffible

8 years agoso, it turns out only the hashing/dnssec parts of powerdns need 'toDNSString()' lower...
bert hubert [Thu, 10 Dec 2015 06:35:00 +0000 (07:35 +0100)]
so, it turns out only the hashing/dnssec parts of powerdns need 'toDNSString()' lowercase. Gave them a helper, made toDNSString() not touch case again.

8 years agoRevert "toDNSString inexplicably did a toLower() on what it wrote it, potentially...
bert hubert [Wed, 9 Dec 2015 18:08:37 +0000 (19:08 +0100)]
Revert "toDNSString inexplicably did a toLower() on what it wrote it, potentially causing 0x20 issues. Now, I assume some code needed this. This commit will find that code."

This reverts commit 6d04b73457106e0fbbce7846ea808cd4f4ab7c3b.

8 years agoMerge pull request #3011 from rgacogne/dnsdist-fix-crypto-doc
bert hubert [Wed, 9 Dec 2015 14:03:53 +0000 (15:03 +0100)]
Merge pull request #3011 from rgacogne/dnsdist-fix-crypto-doc

Make the string parameter to testCrypto() optional

8 years agoMerge pull request #3004 from zeha/api-cache-flush
Pieter Lexis [Wed, 9 Dec 2015 13:54:14 +0000 (14:54 +0100)]
Merge pull request #3004 from zeha/api-cache-flush

API: make cache flushing a public, documented operation

8 years agoMerge pull request #2997 from zeha/apirecursortest
Pieter Lexis [Wed, 9 Dec 2015 13:54:01 +0000 (14:54 +0100)]
Merge pull request #2997 from zeha/apirecursortest

API: Reenable Recursor tests

8 years agoimplement fixupCase(true) or fixupCase(false) so you can make your 0x20 violating...
bert hubert [Wed, 9 Dec 2015 12:57:39 +0000 (13:57 +0100)]
implement fixupCase(true) or fixupCase(false) so you can make your 0x20 violating code work on today's internet. Enjoy.

8 years agotoDNSString inexplicably did a toLower() on what it wrote it, potentially causing...
bert hubert [Wed, 9 Dec 2015 12:56:50 +0000 (13:56 +0100)]
toDNSString inexplicably did a toLower() on what it wrote it, potentially causing 0x20 issues. Now, I assume some code needed this. This commit will find that code.

8 years agofor recursor, if client added an EDNS record, add it to the response too
bert hubert [Wed, 9 Dec 2015 12:30:32 +0000 (13:30 +0100)]
for recursor, if client added an EDNS record, add it to the response too

8 years agoI can't imagine how this worked - DNSName() as name for an OPT record. Should be "."
bert hubert [Wed, 9 Dec 2015 12:30:02 +0000 (13:30 +0100)]
I can't imagine how this worked - DNSName() as name for an OPT record. Should be "."

8 years agoadd makeOpt infrastructure so we can make DNSRecords with OPT pseudo record in there...
bert hubert [Wed, 9 Dec 2015 12:28:35 +0000 (13:28 +0100)]
add makeOpt infrastructure so we can make DNSRecords with OPT pseudo record in there, ready for insertion

8 years agospeedup, use 'tie' for comparisons in recursor packet cache
bert hubert [Wed, 9 Dec 2015 12:25:50 +0000 (13:25 +0100)]
speedup, use 'tie' for comparisons in recursor packet cache

8 years agoAPI: make cache flushing a public, documented operation
Christian Hofstaedtler [Sun, 6 Dec 2015 23:47:54 +0000 (00:47 +0100)]
API: make cache flushing a public, documented operation

Note that this changes the URL, and only allows for exact flushing now.

Fixes #3003.

8 years agoReplace dnsnameFromJson() with apiNameToDNSName(stringFromJson())
Christian Hofstaedtler [Wed, 9 Dec 2015 10:31:55 +0000 (11:31 +0100)]
Replace dnsnameFromJson() with apiNameToDNSName(stringFromJson())

To reuse the name checking code for strings that didn't come
from json. Also makes it clearer that the checking logic is
an API only thing, and other json consumers may use their own
policy on dots, etc.

8 years agosplit out console code from dnsdist.cc, plus move some generic stuff to misc.cc
bert hubert [Wed, 9 Dec 2015 11:13:58 +0000 (12:13 +0100)]
split out console code from dnsdist.cc, plus move some generic stuff to misc.cc

8 years agofurther changelog updates
bert hubert [Wed, 9 Dec 2015 10:08:17 +0000 (11:08 +0100)]
further changelog updates

8 years agoBeginning of 4.0.0 release notes
bert hubert [Wed, 9 Dec 2015 08:40:07 +0000 (09:40 +0100)]
Beginning of 4.0.0 release notes

8 years agoMerge pull request #2888 from aj-gh/ignored-packet-count
bert hubert [Wed, 9 Dec 2015 07:04:54 +0000 (08:04 +0100)]
Merge pull request #2888 from aj-gh/ignored-packet-count

Add counter for ignored packets to recursor statistics.

8 years ago**BREAKING** dnsdist console communications control break: we now support 32 bit...
bert hubert [Wed, 9 Dec 2015 06:45:40 +0000 (07:45 +0100)]
**BREAKING** dnsdist console communications control break: we now support 32 bit message lengths. Restart daemon for this to work.

8 years agospruce up grepq() a little bit with answer count for "No Error" answers
bert hubert [Wed, 9 Dec 2015 06:44:33 +0000 (07:44 +0100)]
spruce up grepq() a little bit with answer count for "No Error" answers

8 years agoAdd counter for ignored packets to recursor statistics (+docs).
Andreas Jakum [Fri, 13 Nov 2015 15:04:38 +0000 (16:04 +0100)]
Add counter for ignored packets to recursor statistics (+docs).
Turns out recursor can be kept rather busy dealing with packets that will not show up anywhere.

8 years agoMerge branch 'adp': better infrastructure for metering traffic, prettier grepq
bert hubert [Tue, 8 Dec 2015 18:22:02 +0000 (19:22 +0100)]
Merge branch 'adp': better infrastructure for metering traffic, prettier grepq

8 years agoMake the string parameter to testCrypto() optional.
Remi Gacogne [Tue, 8 Dec 2015 17:19:34 +0000 (18:19 +0100)]
Make the string parameter to testCrypto() optional.

The documentation does not mention it and I don't think it makes
sense to require one.
Document the fact that makeKey() does return setKey('plaintext')
without libsodium support.
Reported by Charles-Henri Bruyand.

8 years agofix up bandwidth exceeded limits, move dnsheader (12 bytes) into ringbuffer, add...
bert hubert [Tue, 8 Dec 2015 15:52:18 +0000 (16:52 +0100)]
fix up bandwidth exceeded limits, move dnsheader (12 bytes) into ringbuffer, add it to grepq output, make that somewhat pretty, plus fix up TCP reporting to the response rings

8 years agoMerge pull request #3007 from ndonegan/patch-1
Pieter Lexis [Tue, 8 Dec 2015 12:25:55 +0000 (13:25 +0100)]
Merge pull request #3007 from ndonegan/patch-1

remotebackend Documentation Update

8 years agofix up dns ring measurements for BW and NXDOMAIN to not inflate rates erroneously
bert hubert [Tue, 8 Dec 2015 10:05:23 +0000 (11:05 +0100)]
fix up dns ring measurements for BW and NXDOMAIN to not inflate rates erroneously

8 years agomake grepq look at the the n newest queries, not the n oldest queries
bert hubert [Tue, 8 Dec 2015 08:55:45 +0000 (09:55 +0100)]
make grepq look at the the n newest queries, not the n oldest queries

8 years agoimplement grepq() for dnsdist
bert hubert [Mon, 7 Dec 2015 22:05:26 +0000 (23:05 +0100)]
implement grepq() for dnsdist

8 years agotrim some dependencies for dnsdistdist benefit
bert hubert [Mon, 7 Dec 2015 22:04:38 +0000 (23:04 +0100)]
trim some dependencies for dnsdistdist benefit

8 years agomake sure we insert query size on query ring too
bert hubert [Mon, 7 Dec 2015 22:04:19 +0000 (23:04 +0100)]
make sure we insert query size on query ring too

8 years agoAPI: Reenable Recursor tests
Christian Hofstaedtler [Fri, 4 Dec 2015 20:27:36 +0000 (21:27 +0100)]
API: Reenable Recursor tests

And fix a memory/rapidjson issue.

If the data is correct is yet to be seen.

8 years agoMerge pull request #3005 from rgacogne/dnsdist-luajit
bert hubert [Mon, 7 Dec 2015 13:57:06 +0000 (14:57 +0100)]
Merge pull request #3005 from rgacogne/dnsdist-luajit

Add support for using LuaJIT in dnsdist

8 years agoreenable in-tree dnsdist building
bert hubert [Mon, 7 Dec 2015 11:00:27 +0000 (12:00 +0100)]
reenable in-tree dnsdist building

8 years agoUpdate backend-remote.md
Niall Donegan [Mon, 7 Dec 2015 10:48:25 +0000 (10:48 +0000)]
Update backend-remote.md

8 years agoUpdate backend-remote.md
Niall Donegan [Mon, 7 Dec 2015 10:47:56 +0000 (10:47 +0000)]
Update backend-remote.md

8 years agoUpdate backend-remote.md
Niall Donegan [Mon, 7 Dec 2015 10:42:41 +0000 (10:42 +0000)]
Update backend-remote.md

8 years agoUpdate backend-remote.md
Niall Donegan [Mon, 7 Dec 2015 10:40:50 +0000 (10:40 +0000)]
Update backend-remote.md

8 years agoDocumentation Update
Niall Donegan [Mon, 7 Dec 2015 10:38:58 +0000 (10:38 +0000)]
Documentation Update

Making it clearer that ZeroMQ backend uses the same JSON format as the pipe and unix backends.

8 years agoAdd support for using LuaJIT in dnsdist
Remi Gacogne [Mon, 7 Dec 2015 10:28:26 +0000 (11:28 +0100)]
Add support for using LuaJIT in dnsdist

LuaJIT support can be enabled with --with-luajit during configure.

8 years agolet topClients() default to top-10
bert hubert [Mon, 7 Dec 2015 09:44:52 +0000 (10:44 +0100)]
let topClients() default to top-10

8 years agoMerge pull request #2927 from rgacogne/dnsdist-ecs
bert hubert [Mon, 7 Dec 2015 09:34:42 +0000 (10:34 +0100)]
Merge pull request #2927 from rgacogne/dnsdist-ecs

add EDNS Client Subnet to dnsdist queries. And adds loads of tests, cleanups, improvements etc.

8 years agoMerge pull request #2919 from zeha/api-dnsname-dot
Peter van Dijk [Mon, 7 Dec 2015 08:51:17 +0000 (09:51 +0100)]
Merge pull request #2919 from zeha/api-dnsname-dot

API: dot correctness

8 years agoAdd more tests for dnsdist ECS support.
Remi Gacogne [Fri, 4 Dec 2015 14:09:08 +0000 (15:09 +0100)]
Add more tests for dnsdist ECS support.

Add regression tests for rewriting the ECS value with
larger / smaller values.
Add one unit test for rewriting response.

8 years agoAdd EDNS Client Subnet to queries, unit tests and regression tests.
Remi Gacogne [Thu, 3 Dec 2015 08:28:22 +0000 (09:28 +0100)]
Add EDNS Client Subnet to queries, unit tests and regression tests.

The main idea is to be able to add EDNS Client Subnet information
to queries to that the downstream servers know who the real client
is. This is easy if the query already has EDNS, since we just have
to add an ECS option to the existing pseudo-RR OPT. Note that if the
query has an existing ECS option, we just leave it as it is unless
setECSOverride has been set to true.
If the original query has no ENDS support, we can easily add the
pseudo-RR OPT with an ECS option, but we need to remove EDNS from
the response, otherwise the client might choke on it. This is not too
hard it the pseudo-RR is the last one, but otherwise removing it
could cause issue with name compression (offsets), therefore we
completely rewrite the response in that case.

This implementation tries hard not to parse the query, and not
to allocate too much objects to parse the response. The huge downside
is that we do not reuse as much parsing code as we probably could.

Unit tests have been added, they are not enabled unless
--enable-unit-tests is set.

Regression tests have been added in regression-tests.dnsdist.

Unit and regression tests are enabled in travis.

8 years agoimplement getNameWithAddr() for downstreams for pretty log messages
bert hubert [Mon, 7 Dec 2015 06:51:59 +0000 (07:51 +0100)]
implement getNameWithAddr() for downstreams for pretty log messages