Roland van Rijswijk-Deij
c4c849d878
Rebase on master
2021-01-22 16:44:56 +00:00
Willem Toorop
b7864b0c48
Merge branch 'master' into features/padding
2021-01-22 15:13:01 +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
W.C.A. Wijngaards
3a6f1ecafa
Fixup if brackets.
2021-01-22 13:11:41 +01:00
Willem Toorop
48ecf95108
Merge branch 'master' into features/padding
2021-01-22 10:29:50 +01:00
George Thessalonikefs
38e12229b8
- Feedback for PR #407 .
2021-01-19 20:09:34 +01:00
George Thessalonikefs
9056613a79
- Fix TTL of SOA record for negative answers (localzone data and
...
authzone) to be the minimum of the SOA TTL and the SOA.MINIMUM.
2021-01-19 15:55:55 +01:00
W.C.A. Wijngaards
3322f631e5
- Fix #397 : [Feature request] add new type always_null to local-zone
...
similar to always_nxdomain.
2021-01-12 13:35:05 +01:00
W.C.A. Wijngaards
64f508fa00
- Fix clang analysis warning.
2021-01-08 11:10:05 +01:00
W.C.A. Wijngaards
d9dd7bc36f
- Add comment documentation.
2021-01-08 11:01:06 +01:00
W.C.A. Wijngaards
ee2545d939
- For #391 : fix indentation.
2021-01-08 09:53:52 +01:00
W.C.A. Wijngaards
3e03e2c26d
- For #391 : use struct timeval* start_time for callback information.
2021-01-08 09:47:46 +01:00
Wouter Wijngaards
48724de155
Merge pull request #391 from fhriley/reply_cb_start_time
...
Add start_time to reply callbacks so modules can compute the response…
2021-01-08 09:35:07 +01:00
Wouter Wijngaards
2c1ecb2231
Merge pull request #375 from fhriley/disable-rpz
...
Add rpz_enable and rpz_disable commands to unbound-control
2021-01-05 13:40:32 +01:00
Frank Riley
e3abd772f7
Add start_time to reply callbacks so modules can compute the response time.
2021-01-01 15:44:21 -07: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
Frank Riley
42d764eeda
Add rpz_enable and rpz_disable commands to unbound-control.
2020-12-13 12:35:11 -07:00
W.C.A. Wijngaards
811cf6db0c
- Fix missing prototypes in the code.
2020-12-11 14:34:39 +01:00
W.C.A. Wijngaards
1f7d1a00ff
Fix for #368 : dnstap does not log the DNS message ID for FORWARDER_QUERY
2020-12-10 08:19:07 +01:00
W.C.A. Wijngaards
51e431ada1
doxygen comments fixup
2020-12-09 14:17:02 +01:00
W.C.A. Wijngaards
e25f80799a
Fix use after free.
2020-12-09 14:13:46 +01:00
W.C.A. Wijngaards
9ea58b5bc0
Fix for tcp outgoing to have local address logged
2020-12-09 14:02:00 +01:00
W.C.A. Wijngaards
af96ff157e
Fix leak of socket mem on failure and fix if tcp has to wait we
...
do not know the interface at the time. Later when it knows the
interface we do not have 'sq' with the zone name.
2020-12-09 13:52:49 +01:00
W.C.A. Wijngaards
2baa748bc7
Use port_if pointer instead of wrong UDP local addr
2020-12-09 12:13:50 +01:00
W.C.A. Wijngaards
6ce577c4d9
Use stored TCP address for callback.
2020-12-09 12:07:16 +01:00
W.C.A. Wijngaards
9272725cdd
Use calloc and freeaddrinfo
2020-12-09 11:43:16 +01:00
W.C.A. Wijngaards
275f18cc8e
Remove useless tcp_read_fd member from struct
2020-12-09 11:37:04 +01:00
W.C.A. Wijngaards
91bec32cdc
For TCP store picked outgoing interface and pass it.
2020-12-09 11:34:39 +01:00
W.C.A. Wijngaards
159bf52384
Fix that it passes the actual UDP address instead of first
...
and pass NULL to make tcp log compile.
2020-12-09 11:27:33 +01:00
W.C.A. Wijngaards
31cedb47cb
Remove unused whitespace, add missing header change, make it compile
2020-12-09 11:13:58 +01:00
W.C.A. Wijngaards
bdfa65c6ab
Import the patches from the files in the tarball in
...
issue #365 https://github.com/NLnetLabs/unbound/files/5659923/patches.tar.gz
from iruzanov. The merge conflicts are fixed, but no changes are made
to the patched code.
2020-12-09 11:00:51 +01:00
W.C.A. Wijngaards
16c496bff6
- Fix #356 : deadlock when listening tcp.
2020-12-02 10:10:27 +01:00
W.C.A. Wijngaards
5906811ff1
- Fix #358 : Squelch udp connect 'no route to host' errors on low
...
verbosity.
2020-12-01 09:09:13 +01:00
W.C.A. Wijngaards
e4bdc527ba
- Fix assertion failure on double callback when iterator loses
...
interest in query at head of line that then has the tcp stream
not kept for reuse.
2020-11-30 09:41:33 +01:00
W.C.A. Wijngaards
67d541d690
- Fix compile warnings for windows.
2020-11-27 10:01:55 +01:00
W.C.A. Wijngaards
8ffdbc2714
- Fix when use free buffer to initialize rbtree for stream reuse.
2020-11-27 09:57:08 +01:00
W.C.A. Wijngaards
11139c1b4e
- Fix compile warning for type cast in http2_submit_dns_response.
2020-11-27 09:08:48 +01:00
W.C.A. Wijngaards
3fb0493d3f
- Clear readagain upon decommission of pending tcp structure.
2020-11-26 12:23:18 +01:00
W.C.A. Wijngaards
e50152aa1f
- Fix readagain and writeagain callback functions for comm point
...
cleanup.
2020-11-25 13:46:28 +01:00
W.C.A. Wijngaards
d05c259458
- Attempt fix for libevent state in tcp reuse cases after a packet
...
is written.
2020-11-25 12:12:35 +01:00
W.C.A. Wijngaards
4b644b7965
- Better fix for reuse tree comparison for is-tls sockets. Where
...
the tree key identity is preserved after cleanup of the TLS state.
2020-11-25 10:22:11 +01:00
W.C.A. Wijngaards
15e8f5c6d4
- Fix udp-connect on FreeBSD, do send calls on connected UDP socket.
2020-11-25 09:55:01 +01:00
W.C.A. Wijngaards
978d3840dc
- Fix crash when TLS connection is closed prematurely, when
...
reuse tree comparison is not properly identical to insertion.
2020-11-24 16:58:51 +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
George Thessalonikefs
201b949689
Merge branch 'master' into edns-string
2020-11-23 16:35:58 +01:00
W.C.A. Wijngaards
9cc8aa1ddf
- Option to toggle udp-connect, default is enabled.
2020-11-23 11:06:53 +01:00
W.C.A. Wijngaards
6b97cb1dd1
stream reuse, up connection reuse time to 60 seconds.
2020-11-23 10:36:22 +01:00
W.C.A. Wijngaards
cca128b871
+ - Fix #347 : IP_DONTFRAG broken on Apple xcode 12.2.
2020-11-23 09:56:01 +01:00
W.C.A. Wijngaards
9423b5b8b2
Merge branch 'master' into stream-reuse
2020-11-23 09:49:26 +01:00
W.C.A. Wijngaards
4445d9c5aa
stream reuse, fix review comments.
2020-11-23 09:44:56 +01:00
W.C.A. Wijngaards
8143ce6967
stream reuse, review comments.
2020-11-23 09:40:15 +01:00
W.C.A. Wijngaards
6f4c79ab95
stream reuse, fix review comments.
2020-11-23 09:37:26 +01:00
W.C.A. Wijngaards
d83b1979c4
stream reuse, debug output with verbose level instead of number.
2020-11-23 09:29:26 +01:00
W.C.A. Wijngaards
b891fe113c
- Retry for interfaces with unused ports if possible.
2020-11-12 13:36:37 +01:00
W.C.A. Wijngaards
26aa550bd2
- Fix to connect() to UDP destinations, default turned on,
...
this lowers vulnerability to ICMP side channels.
2020-11-12 12:27:41 +01:00
Ralph Dolmans
a4342ceb3a
Merge branch 'master' into edns-string
2020-11-11 11:38:06 +01:00
Ralph Dolmans
946ed23f73
Merge branch 'master' into edns-string
2020-11-11 11:37:32 +01:00
W.C.A. Wijngaards
5385e2e094
- Fix #343 : Fail to build --with-libnghttp2 with error: 'SSIZE_MAX'
...
undeclared.
2020-11-10 15:31:20 +01:00
W.C.A. Wijngaards
7977e1c4cb
- Fix memory leak after fix for possible memory leak failure.
2020-11-10 13:51:56 +01:00
W.C.A. Wijngaards
72d7587138
Merge branch 'master' into zonemd
2020-11-10 08:10:27 +01:00
W.C.A. Wijngaards
3926035f30
Changelog note for #341 and layout change.
...
- Fix #341 : fixing a possible memory leak.
2020-11-10 08:07:28 +01:00
ihsinme
18226f1c17
fixing a possible memory leak.
2020-11-09 18:41:22 +03:00
W.C.A. Wijngaards
3ab188ea21
zonemd, please doxygen
...
zonemd, fix clang analyzer warning about null nsec3 salt pointer access.
2020-10-29 08:40:22 +01:00
W.C.A. Wijngaards
94ac072f9b
zonemd, zonemd-reject-absence config for an auth-zone rejects the zone if
...
no ZONEMD is present.
2020-10-26 15:37:43 +01:00
W.C.A. Wijngaards
165b048e07
zonemd, zonemd-permissive-mode: yes logs the failure but does not block
...
the zone after a ZONEMD verification failure.
2020-10-23 14:33:04 +02:00
W.C.A. Wijngaards
c72ca35f08
unbound-control auth_zone_reload sets zone to nonexpired and
...
also updates the xfr soa values from the new zonefile contents.
2020-10-23 11:44:28 +02:00
W.C.A. Wijngaards
40e713e121
zonemd, unlock xfr lock for auth zone verify of zonemd for mesh new callback.
2020-10-23 10:14:21 +02:00
W.C.A. Wijngaards
1cb7d5a194
zonemd, unit test for auth zone zonemd axfr
...
zonemd, zonemds are checked after zone transfer.
2020-10-23 09:12:51 +02: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
6ea1ae17f7
zonemd, fix to harden against failure in pickup zonemd lookups.
2020-10-22 13:20:00 +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
7ac4eb229d
zonemd, unit tests for verifying DNSKEY with trust anchor failures.
2020-10-21 15:58:47 +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
2ebc4eae2f
Merge branch 'master' into zonemd
2020-10-21 10:59:32 +02:00
W.C.A. Wijngaards
1e9381f76c
Merge branch 'master' into stream-reuse
2020-10-21 10:36:27 +02:00
W.C.A. Wijngaards
37354c8927
Merge branch 'master' into infra-keep-probing
2020-10-21 10:13:10 +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
61922ce9da
- Clean the fix for out of order TCP processing limits on number
...
of queries. It was tested to work.
2020-10-19 13:39:02 +02:00
W.C.A. Wijngaards
4a14ef8c3a
Merge branch 'master' into zonemd
2020-10-19 11:33:32 +02:00
Ralph Dolmans
a433a25ba3
Merge pull request #329 from NLnetLabs/nochunk-region
...
local-zone regional allocations outside of chunk
2020-10-19 11:21:30 +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
f81d0ac047
- Fix that the out of order TCP processing does not limit the
...
number of outstanding queries over a connection.
2020-10-16 17:26:58 +02:00
Ralph Dolmans
1d11f470df
- local-zone regional allocations outside of chunk to prevent large
...
chunk per small local-zone allocations.
2020-10-16 17:12:08 +02:00
George Thessalonikefs
d55084ea9e
- Fix that if there are reply callbacks for the given rcode, those
...
are called per reply and a new message created if that was modified
by the call.
- Pass the comm_reply information to the inplace_cb_reply* functions
during the mesh state and update the documentation on that.
2020-10-15 17:17:59 +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
edc8f363a7
Changelog note for #326 and changes:
...
- DoH content length, simplify code, remove declaration after
statement and fix cast warning.
2020-10-15 08:22:42 +02:00
netblue30
b1a50720e5
DoH: implement content-lenght header field
2020-10-14 11:32:14 -04:00
W.C.A. Wijngaards
e35b1dfbd5
zonemd, nsec3 rr iterator is type int, like other nsec3 code.
2020-10-14 14:52:32 +02:00
W.C.A. Wijngaards
42d7cdb7d5
zonemd, region freed, and qstate not used when not in a query, and nsec
...
and nsec3 bitmap checks.
2020-10-14 14:46:59 +02:00
W.C.A. Wijngaards
890c8deb0f
- Free up auth zone parse region after use for lookup of host
2020-10-14 14:20:16 +02:00
W.C.A. Wijngaards
f0c19be06f
- Fix that if there are on reply callbacks, those are called per
...
reply and a new message created if that was modified by the call.
2020-10-14 14:03:04 +02:00
W.C.A. Wijngaards
a9e13f3590
- Fix that if there are on reply callbacks, those are called per
...
reply and a new message created if that was modified by the call.
2020-10-14 14:01:47 +02:00
W.C.A. Wijngaards
22e82765f9
zonemd, dnssec verification routines.
2020-10-14 13:34:50 +02:00