W.C.A. Wijngaards
2642319ea6
- please clang analyzer for loop in test code.
2022-02-02 14:11:36 +01:00
George Thessalonikefs
f857af873e
- Update ratelimit code for recent serviced_query changes and more
...
accurate ratelimit calculation.
2022-01-29 23:49:38 +01:00
George Thessalonikefs
c3c0186658
- Add serviced_query timer to send upstream queries outside of the mesh
...
flow to prevent race conditions.
2022-01-25 00:01:43 +01:00
George Thessalonikefs
773d1f2911
- Make sure callback changes for EDNS are not lost.
2022-01-14 15:18:43 +01:00
George Thessalonikefs
de1e91fc7f
- Fix EDNS to upstream where the same option could be attached more than
...
once.
- Add a region to serviced_query for allocations.
2022-01-14 13:55:34 +01:00
Wouter Wijngaards
9645228f03
Merge pull request #570 from rex4539/typos
...
Fix typos
2021-11-29 11:39:48 +01:00
Dimitris Apostolou
c21d6af617
Fix typos
2021-11-13 16:56:15 +02:00
TCY16
8205c87a96
complete renaming of the modules edns list
2021-11-08 11:50:29 +01:00
Tom Carpay
89d7476539
split edns_data.opt_list in opt_list_in and opt_list_out
...
opt_list_in for parsed (incoming) edns options, and
opt_list_out for outgoing (to be encoded) edns options
2021-11-01 12:48:40 +00:00
W.C.A. Wijngaards
63a406a432
- Fix more initialisation errors reported by gcc sanitizer.
2021-09-10 15:27:05 +02:00
W.C.A. Wijngaards
a64cbe958d
- Fix lock debug code for gcc sanitizer reports.
2021-09-10 15:11:30 +02:00
W.C.A. Wijngaards
7d70e3c861
- Fix initialisation errors reported by gcc sanitizer.
2021-09-10 14:30:57 +02:00
W.C.A. Wijngaards
087a7ff95e
- Fix asynclook unit test for setup of lockchecks before log.
2021-08-25 16:19:12 +02:00
W.C.A. Wijngaards
c93a7fb38a
- Fix the stream wait stream_wait_count_lock and http2 buffer locks
...
setup and desetup from race condition.
2021-08-25 13:37:50 +02:00
gthess
3829faf679
Merge pull request #514 from ziollek/docker_for_run_test
...
Docker environment for run tests
2021-08-12 21:30:36 +02:00
W.C.A. Wijngaards
822a96b29a
- Fix libnettle zonemd unit test.
2021-08-04 14:04:31 +02:00
W.C.A. Wijngaards
067954fe8d
- Fix out of sourcedir run of zonemd unit tests.
2021-08-04 13:54:38 +02:00
Tomasz Ziolkowski
59552a7a76
reformat
2021-08-04 13:05:21 +02:00
Tomasz Ziolkowski
a922c6d525
merge master
2021-08-04 13:02:20 +02:00
W.C.A. Wijngaards
6dd270d625
- Fix missing locks in zonemd unit test.
2021-08-04 11:05:51 +02:00
W.C.A. Wijngaards
f5d53928a3
- In unit test use openssl set security level to allow keys in test.
2021-08-04 09:58:38 +02:00
Tomasz Ziolkowski
3e310a17be
Docker environment for run tests + enhancement for ssl_handshake
2021-07-27 12:06:08 +02:00
gthess
dcd75814b9
Merge pull request #513 from NLnetLabs/tcp_reuse_fix
...
Stream reuse, attempt to fix #411 , #439 , #469
2021-07-26 16:54:34 +02:00
W.C.A. Wijngaards
e8d28f0a55
- Fix readzone unknown type print for memory resize.
2021-07-26 16:45:33 +02:00
George Thessalonikefs
8ee5aa312f
- Fix unittcpreuse.c: properly initialise outnet.
2021-07-26 16:29:57 +02:00
George Thessalonikefs
de73af2da2
- stream reuse, do not explicitly wait for a free pending_tcp if a reuse
...
could be used.
2021-07-26 10:47:20 +02:00
George Thessalonikefs
ab318a8b95
- Add unittest for tcp_reuse functions.
2021-07-24 01:15:00 +02:00
W.C.A. Wijngaards
5f57dbf19b
- Insert header into testcode/readzone.c, it was missing.
2021-07-16 17:12:41 +02:00
George Thessalonikefs
ca4d68c64c
- Introduce 'http-user-agent:' and 'hide-http-user-agent:' options.
2021-07-16 14:32:18 +02:00
W.C.A. Wijngaards
f693cbc90b
Revert "- With hide-version unbound also omits the version from http headers."
...
This reverts commit 9d4644b125 .
2021-07-16 14:02:55 +02:00
W.C.A. Wijngaards
9d4644b125
- With hide-version unbound also omits the version from http headers.
2021-07-16 13:45:41 +02:00
George Thessalonikefs
e521b10f32
- Fix clang-analysis warnings for testcode/readzone.c.
2021-07-05 16:51:46 +02:00
George Thessalonikefs
c6fc7adeb1
- Fix Wunused-result compile warnings.
2021-07-04 15:19:24 +02:00
Tom Carpay
ab017cde0f
Merge branch 'master' into svcb
2021-07-02 13:37:08 +02:00
tcarpay
e41125495d
Apply suggestions from code review
...
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
2021-07-01 12:45:14 +02:00
W.C.A. Wijngaards
5e81763e53
Analysis workflow, fixup ctime tests.
2021-06-25 15:27:51 +02:00
W.C.A. Wijngaards
e4e0eaa63e
Analysis workflow, fix ctime formatting for autotrust and testbound.
2021-06-25 15:11:10 +02:00
W.C.A. Wijngaards
770a54600c
Analysis workflow, check for ctime define.
2021-06-25 14:37:53 +02:00
W.C.A. Wijngaards
e45e73768f
Analysis workflow, see if defines are causing ctime changes.
2021-06-25 14:07:11 +02:00
W.C.A. Wijngaards
66e9317edc
Analysis workflow, test ctime replacement.
2021-06-25 13:37:26 +02:00
W.C.A. Wijngaards
6ed49bf45f
Analysis workflow, debug output.
2021-06-25 10:12:40 +02:00
W.C.A. Wijngaards
358bc0d8bd
Analysis workflow, make debug output.
2021-06-25 09:43:02 +02:00
W.C.A. Wijngaards
7d16b2c268
Analysis workflow, output failure cases.
2021-06-25 08:49:30 +02:00
W.C.A. Wijngaards
e24c78efd6
Analysis workflow, remove debug output, strip more whitespace off
...
ADDRESS lines in testbound range.
2021-06-24 22:57:12 +02:00
W.C.A. Wijngaards
8a25ca9651
Fixup ctime test.
2021-06-24 22:11:42 +02:00
W.C.A. Wijngaards
db5bb6270b
Fixup unit auth test for windows port.
2021-06-24 21:55:46 +02:00
W.C.A. Wijngaards
d3b2bc501d
- Fix warnings reported by the gcc analyzer.
2021-06-23 18:02:02 +02:00
tcarpay
eb9891f4ed
Apply suggestions from code review
...
Co-authored-by: Willem Toorop <willem@nlnetlabs.nl>
2021-06-23 10:53:11 +02:00
W.C.A. Wijngaards
ea4f1ee8a6
- zonemd-check: yesno option, default no, enables the processing
...
of ZONEMD records for that zone.
2021-05-27 14:20:53 +02:00
W.C.A. Wijngaards
4f7c194a83
- Test code has -q option for quiet output.
2021-05-21 17:08:58 +02:00
Wouter Wijngaards
09b924f35b
Merge pull request #478 from edevil/tcp_auth_query_timeout
...
Allow configuration of TCP timeout while waiting for response
2021-05-04 10:24:42 +02:00
W.C.A. Wijngaards
ecb8aed2f2
- Add that log-servfail prints an IP address and more information
...
about one of the last failures for that query.
2021-04-29 10:24:35 +02:00
André Cruz
e07f973938
Allow configuration of TCP timeout while waiting for response
...
This allows us to configure how long Unbound will wait for a response
on a TCP connection.
2021-04-28 16:20:46 +01:00
Wouter Wijngaards
646d6b9bce
Merge pull request #470 from edevil/configurable_tcp
...
Allow configuration of persistent TCP connections
2021-04-26 16:07:16 +02:00
W.C.A. Wijngaards
7226d2f9f2
- Fix that testcode dohclient has OpenSSL initialisation calls.
2021-04-22 09:41:04 +02:00
W.C.A. Wijngaards
a45a7efe69
- Further fix for #468 : detect SSL_CTX_set_alpn_protos for build with
...
OpenSSL 1.0.1.
2021-04-22 09:05:43 +02:00
André Cruz
75875d4d1c
Allow configuration of persistent TCP connections
...
Added 2 new options to configure previously hardcoded
values: max-reuse-tcp-queries and tcp-reuse-timeout. These
allow fine-grained control over how unbound uses persistent
TCP connections to authority servers.
2021-04-21 13:50:45 +01:00
Willem Toorop
2c9b548ebd
Simple zonefile printer
...
(maybe I should have called it printzone?)
2021-04-16 16:07:04 +02:00
W.C.A. Wijngaards
6cd77933a3
- Fix: Resolve interface names on control-interface too.
2021-02-26 13:54:10 +01:00
Wouter Wijngaards
209dc32624
Merge pull request #367 from NLnetLabs/dnstap-log-local-addr
...
DNSTAP log local address
2021-02-25 11:58:36 +01:00
W.C.A. Wijngaards
f5339ec7e5
Merge branch 'master' into dnstap-log-local-addr
2021-02-18 13:12:09 +01:00
W.C.A. Wijngaards
3d2692d6bc
zonemd, review comments, add comments to unit test, scope verbose output.
2021-02-10 15:30:23 +01:00
W.C.A. Wijngaards
b7a633fdc0
Merge branch 'master' into zonemd
2021-02-04 16:08:11 +01:00
W.C.A. Wijngaards
dedc1e2340
zonemd, unit test for capitalisation of owner and ns names.
2021-01-22 14:40:21 +01:00
W.C.A. Wijngaards
20ff80c5bb
zonemd, fix to detect duplicate zonemd scheme and algo RRs.
2021-01-22 14:36:53 +01:00
Willem Toorop
48ecf95108
Merge branch 'master' into features/padding
2021-01-22 10:29:50 +01:00
George Thessalonikefs
08968baec1
- Fix error cases when udp-connect is set and send() returns an error
...
(modified patch from Xin Li @delphij).
2020-12-16 17:11:41 +01:00
W.C.A. Wijngaards
811cf6db0c
- Fix missing prototypes in the code.
2020-12-11 14:34:39 +01:00
W.C.A. Wijngaards
1f1b93cce6
Fix test code function declaration.
2020-12-09 11:27:14 +01:00
Wouter Wijngaards
ead06af086
Merge branch 'master' into stream-reuse
2020-11-24 08:20:07 +01:00
George Thessalonikefs
b0247b6e93
Merge branch 'master' into edns-string
2020-11-23 16:58:30 +01:00
W.C.A. Wijngaards
9cc8aa1ddf
- Option to toggle udp-connect, default is enabled.
2020-11-23 11:06:53 +01:00
Ralph Dolmans
946ed23f73
Merge branch 'master' into edns-string
2020-11-11 11:37:32 +01:00
W.C.A. Wijngaards
54d8473ec6
zonemd, pass module stack as function argument.
2020-10-22 13:31:37 +02:00
W.C.A. Wijngaards
e09873e0c8
zonemd, zonemds are checked at start
2020-10-22 12:10:46 +02:00
W.C.A. Wijngaards
4ba45c34ed
zonemd, result of dnssec failures includes rrset and dnssec bogus reason.
2020-10-21 16:18:28 +02:00
W.C.A. Wijngaards
92eb12d26b
zonemd, unit test remove debug.
2020-10-21 15:59:29 +02:00
W.C.A. Wijngaards
7ac4eb229d
zonemd, unit tests for verifying DNSKEY with trust anchor failures.
2020-10-21 15:58:47 +02:00
W.C.A. Wijngaards
3c86bf51de
zonemd, unit tests for wrong NSEC RRSIGs.
2020-10-21 15:04:06 +02:00
W.C.A. Wijngaards
58d91646f1
zonemd, unit tests for DNSSEC type bitmaps.
2020-10-21 14:23:44 +02:00
W.C.A. Wijngaards
e1d119af7e
zonemd, unit tests for wrong DNSSEC signatures.
2020-10-21 13:17:42 +02:00
W.C.A. Wijngaards
c32c9a0ae2
zonemd, zonemd unit test in own file.
2020-10-21 12:04:53 +02:00
W.C.A. Wijngaards
1245457967
zonemd, fix that zonemd absence in unsigned zone does not invalidate zone.
2020-10-21 11:56:41 +02:00
W.C.A. Wijngaards
e8d29f973d
zonemd, fix that dnssec denial does not invalidate zone.
...
zonemd, unit test of nsec and nsec3 denial.
2020-10-21 11:51:30 +02:00
W.C.A. Wijngaards
78e9b8949c
Merge branch 'master' into stream-reuse
...
Resolved comm_point_start_listening conflict for socket close.
2020-10-21 09:54:03 +02:00
W.C.A. Wijngaards
2eb39abbaf
- Fix that reuse_tcp_close_oldest sets item_on_lru_list to 0.
...
- Fix to add assertions to reuse_tcp_select_id and unit test.
- Fix that if no tcp buffers then pending tcp query stops.
2020-10-21 09:49:55 +02:00
W.C.A. Wijngaards
f675077502
zonemd, unit test improved debug output and unit test dnssec verify zonemd
2020-10-20 16:49:49 +02:00
W.C.A. Wijngaards
89618ff9ba
zonemd, unit test more zones.
2020-10-19 16:26:22 +02:00
W.C.A. Wijngaards
4a14ef8c3a
Merge branch 'master' into zonemd
2020-10-19 11:33:32 +02:00
W.C.A. Wijngaards
a3e2bfbb0c
- Fix #330 : [Feature request] Add unencrypted DNS over HTTPS support.
...
This adds the option http-notls-downstream: yesno to change that,
and the dohclient test code has the -n option.
2020-10-19 10:24:03 +02:00
W.C.A. Wijngaards
a525284421
zonemd, remove debug.
2020-10-16 16:15:35 +02:00
W.C.A. Wijngaards
ceb0214b7d
zonemd, unit tests for dnssec verify
2020-10-16 16:09:13 +02:00
W.C.A. Wijngaards
0a238280b9
zonemd, unit test for dnssec verify, implement test.
2020-10-15 12:27:22 +02:00
W.C.A. Wijngaards
e6aab488c8
zonemd, fix anchor unlock.
...
zonemd, unit test for dnssec verify function test harness.
2020-10-15 09:17:57 +02:00
W.C.A. Wijngaards
cf6e1b6ea9
Merge branch 'master' into zonemd
2020-10-15 08:34:32 +02:00
W.C.A. Wijngaards
79a8db1ee1
- Fix #323 : unbound testsuite fails on mock build in systemd-nspawn
...
if systemd support is build.
2020-10-13 08:28:59 +02:00
W.C.A. Wijngaards
b20fefb858
zonemd, unit test, reorder test order
2020-10-09 14:03:13 +02:00
W.C.A. Wijngaards
6a8ed4bb15
zonemd, unit test, tests the check routine and reason for failure.
2020-10-09 13:59:44 +02:00
W.C.A. Wijngaards
2f7908b669
zonemd, unit test, note example origins.
2020-10-09 12:20:50 +02:00
W.C.A. Wijngaards
cdf6544b46
zonemd, unit test, succeeds at verifying examples of zonemd draft-12.
2020-10-09 12:18:25 +02:00
W.C.A. Wijngaards
3163a93121
zonemd, loop over zone and canonicalize data, test call in unit test.
2020-10-06 17:07:24 +02:00
W.C.A. Wijngaards
ca31ea7dc8
test rr type parse inputs and print outputs.
2020-10-06 13:38:21 +02:00
Ralph Dolmans
eb799026ff
Replace edns-client-tag with edns-client-string option
2020-09-30 23:17:53 +02:00
Ralph Dolmans
b6d04f500b
- DNS Flag Day 2020: change edns-buffer-size default to 1232.
2020-09-29 14:07:38 +02:00
Ralph Dolmans
7da369e85a
- Add edns-client-tag-opcode option
2020-09-23 12:09:48 +02:00
Ralph Dolmans
4ae823fbc2
Merge branch 'master' into doh
2020-09-16 18:38:51 +02:00
Ralph Dolmans
42a35ac26e
- Final round of DoH review feedback processing.
2020-09-16 18:25:02 +02:00
W.C.A. Wijngaards
47a5dc8cae
- Refactor to use sock_strerr shorthand function.
2020-08-31 09:12:01 +02:00
W.C.A. Wijngaards
a6dc0743b4
- Merge PR #293 : Add missing prototype. Also refactor to use the new
...
shorthand function to clean up the code.
2020-08-31 08:41:34 +02:00
W.C.A. Wijngaards
f6a527c25a
- Similar to NSD PR#113, implement that interface names can be used,
...
eg. something like interface: eth0 is resolved at server start and
uses the IP addresses for that named interface.
2020-08-27 14:53:33 +02:00
Ralph Dolmans
fa892b2456
- Add EDNS client tag test
2020-07-27 15:54:43 +02:00
W.C.A. Wijngaards
8b43b94b22
Merge branch 'master' into stream-reuse
2020-07-22 09:53:57 +02:00
W.C.A. Wijngaards
53ecdfc0b5
- Fix streamtcp to print packet data to stdout. This makes the
...
stdout and stderr not mix together lines, when parsing its output.
2020-07-20 10:34:40 +02:00
W.C.A. Wijngaards
80f21f48c5
Merge branch 'master' into stream-reuse
2020-07-09 08:55:19 +02:00
W.C.A. Wijngaards
233c14a476
- run_vm cleanup better and removes trailing slash on single argument.
2020-07-06 11:33:07 +02:00
W.C.A. Wijngaards
4aaccef8f2
fix testcode for added function whitelist item.
2020-06-24 16:31:10 +02:00
Ralph Dolmans
941559c2b7
dohclient memory leak fix
2020-06-24 15:09:05 +02:00
Ralph Dolmans
2e66809c65
- Add dohclient, for use in tests
2020-06-24 14:59:56 +02:00
W.C.A. Wijngaards
a83f5d7260
Merge branch 'master' into stream-reuse
2020-05-20 15:39:50 +02:00
Ralph Dolmans
8fc2320b5c
- Add mem.http.query_buffer and mem.http.response_buffer stats
...
- Add configurable limits for http-query-buffer-size and
http-response-buffer-size
- Make http endpoint, max_streams, and TCP_NODELAY for HTTP sockets
configurable.
2020-05-12 18:12:19 +02:00
Ralph Dolmans
6cc761f6b2
- Add base64 decode unit test
2020-05-08 14:19:44 +02:00
Ralph Dolmans
e7601870cc
Merge branch 'master' into doh
2020-05-07 17:12:26 +02:00
Ralph Dolmans
8dae5d9f81
- Add DNS-over-HTTPS support
2020-05-07 16:36:26 +02:00
George Thessalonikefs
a269db3828
- Explicitly use 'rrset-roundrobin: no' for test cases.
2020-04-22 19:27:20 +02:00
George Thessalonikefs
584c2cf804
- Fix tests for new rrset-roundrobin default.
2020-04-21 22:02:56 +02:00
gthess
334498d9b9
Merge pull request #221 from NLnetLabs/more-SNI
...
More SNI support on TLS
2020-04-17 11:37:47 +02:00
George Thessalonikefs
e430e95d30
- Add SNI support on more TLS connections ( fixes #193 ).
...
- Add SNI support to unbound-anchor.
2020-04-16 14:39:05 +02:00
W.C.A. Wijngaards
963cfb58be
- Fix for posix shell syntax for trap in run_msg.sh test script.
2020-04-16 13:17:33 +02:00
Willem Toorop
4f78b37c61
Down- and upstream padding a la RFC7830 & RFC8467
2020-04-02 18:34:03 +02:00
Yaroslav K
cfddbcb5be
add setting IP DiffServ Codepoint (DSCP, previously TOS) on sockets
2020-03-23 19:37:43 +00:00
Jeffrey Walton
dafe849c5b
Add libevent testing to Travis
2020-03-17 12:33:08 -04:00
Ralph Dolmans
90040b24ce
- Fix link error when OpenSSL is configured with no-engine, thanks noloader.
2020-03-02 14:06:10 +01:00
Jeffrey Walton
f5f83bc025
Fix link error when OpenSSL is configured with no-engine (GH #175 )
2020-02-29 19:27:44 -05:00
W.C.A. Wijngaards
6c14c7520b
Merge branch 'master' into stream-reuse
2020-02-12 11:58:17 +01:00
W.C.A. Wijngaards
58fdcf06e8
Merge branch 'master' into framestreams
2020-02-05 14:25:47 +01:00
gthess
f7fe95ad7b
Serve stale ( #159 )
...
- Added serve-stale functionality as described in
draft-ietf-dnsop-serve-stale-10. `serve-expired-*` options can be used
to configure the behavior.
- Updated cachedb to honor `serve-expired-ttl`; Fixes #107 .
- Renamed statistic `num.zero_ttl` to `num.expired` as expired replies
come with a configurable TTL value (`serve-expired-reply-ttl`).
- Fixed stats when replying with cached, cname-aliased records.
- Added missing default values for redis cachedb backend.
2020-02-05 14:20:27 +01:00
W.C.A. Wijngaards
5b117c851a
dnstap io, ssl handshake.
2020-02-05 13:59:56 +01:00
W.C.A. Wijngaards
1420d59949
dnstap io, connect and write over TCP.
2020-01-31 17:07:40 +01:00
Ralph Dolmans
1d9185229e
- Make dname_has_label's dnamelen check work with 0 length
2020-01-29 11:30:22 +01:00
Ralph Dolmans
bda4c4a375
- improve dname_has_label(), add unit test
2020-01-16 17:50:44 +01:00
W.C.A. Wijngaards
57aefd102e
Stream reuse branch, for TCP and TLS stream reuse.
...
This is for upstream pipes and using them again for the next query.
Signposted code for reuse_tcp structure in outside_network.h
2020-01-16 17:12:32 +01:00
W.C.A. Wijngaards
e149bc7046
- Fix unreachable code in ssl set options code.
2020-01-10 11:28:01 +01:00
W.C.A. Wijngaards
3fb98a72d2
- Fix Make Test Fails when Configured With --enable-alloc-nonregional,
...
reported by X41 D-Sec.
2019-12-04 16:23:52 +01:00
W.C.A. Wijngaards
6f7eb3ea9f
- Fix testbound for alloccheck runs, memory purify and lock checks.
2019-12-04 11:37:24 +01:00
W.C.A. Wijngaards
216747bb17
- Fix lock type for memory purify log lock deletion.
2019-12-04 09:44:31 +01:00
W.C.A. Wijngaards
1718a8e6b5
- Fix dname loop maximum, reported by Eric Sesterhenn from X41 D-Sec.
2019-11-22 14:23:00 +01:00
W.C.A. Wijngaards
d8809c672a
- Fix Weak Entropy Used For Nettle,
...
reported by X41 D-Sec.
2019-11-20 11:28:53 +01:00
W.C.A. Wijngaards
79a6e9fbe2
- Fixes to please lint checks.
2019-11-19 12:10:03 +01:00
W.C.A. Wijngaards
d05d6b959a
- fixes for splint cleanliness, long vs int in SSL set_mode.
2019-11-13 15:16:27 +01:00
W.C.A. Wijngaards
80c2c69fa7
- Fix log_dns_msg to log irrespective of minimal responses config.
2019-08-21 17:41:29 +02:00