]> git.ipfire.org Git - thirdparty/unbound.git/log
thirdparty/unbound.git
6 months agoset persist-credentials: false per zizmor suggestion 1204/head
Maarten Aertsen [Fri, 13 Dec 2024 12:12:03 +0000 (13:12 +0100)] 
set persist-credentials: false per zizmor suggestion

7 months ago- Fix typo in log_servfail.tdir test.
Yorgos Thessalonikefs [Tue, 3 Dec 2024 15:03:05 +0000 (16:03 +0100)] 
- Fix typo in log_servfail.tdir test.

7 months agoChangelog entry for #1187:
Yorgos Thessalonikefs [Tue, 3 Dec 2024 13:21:34 +0000 (14:21 +0100)] 
Changelog entry for #1187:
- Merge #1187: Create the SSL_CTX for QUIC before chroot and privilege
  drop.

7 months agoCreate the SSL_CTX for QUIC before chroot and privilege drop (#1187)
Yorgos Thessalonikefs [Tue, 3 Dec 2024 13:20:33 +0000 (14:20 +0100)] 
Create the SSL_CTX for QUIC before chroot and privilege drop (#1187)

Fixes #1185 by creating the SSL_CTX for QUIC before chroot and
privilege drop, just like the other SSL_CTX creations.

---------

Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
7 months ago- Safeguard alias loop while looking in the cache for expired answers.
Yorgos Thessalonikefs [Tue, 3 Dec 2024 13:10:17 +0000 (14:10 +0100)] 
- Safeguard alias loop while looking in the cache for expired answers.

7 months ago- Merge #1198: Fix log-servfail with serve expired and no useful cache
Yorgos Thessalonikefs [Tue, 3 Dec 2024 13:05:12 +0000 (14:05 +0100)] 
- Merge #1198: Fix log-servfail with serve expired and no useful cache
  contents.

7 months agoMerge pull request #1198 from NLnetLabs/bugfix/log-servfail-serve-expired
Yorgos Thessalonikefs [Tue, 3 Dec 2024 13:02:03 +0000 (14:02 +0100)] 
Merge pull request #1198 from NLnetLabs/bugfix/log-servfail-serve-expired

Fix log-servfail with serve expired and no useful cache contents

7 months ago- For #1175, the default value of serve-expired-ttl is set to 86400
Yorgos Thessalonikefs [Tue, 3 Dec 2024 12:09:51 +0000 (13:09 +0100)] 
- For #1175, the default value of serve-expired-ttl is set to 86400
  (1 day) as suggested by RFC8767.

7 months agoChangelog entry for #1189, #1197:
Yorgos Thessalonikefs [Tue, 3 Dec 2024 10:58:06 +0000 (11:58 +0100)] 
Changelog entry for #1189, #1197:
- Merge #1189: Fix the dname_str method to cause conversion errors
  when the domain name length is 255.
- Merge #1197: dname_str() fixes.

7 months agoMerge pull request #1197 from NLnetLabs/dname_str-more-tests
Yorgos Thessalonikefs [Tue, 3 Dec 2024 10:55:41 +0000 (11:55 +0100)] 
Merge pull request #1197 from NLnetLabs/dname_str-more-tests

dname_str() fixes

7 months ago- For #1193, introduce log-servfail.tdir and cleanup the log-servfail 1198/head
Yorgos Thessalonikefs [Mon, 2 Dec 2024 11:30:11 +0000 (12:30 +0100)] 
- For #1193, introduce log-servfail.tdir and cleanup the log-servfail
  setting from other tests.

7 months ago- Fix #1193: log-servfail fails to log host SERVFAIL responses in
Yorgos Thessalonikefs [Mon, 2 Dec 2024 11:28:11 +0000 (12:28 +0100)] 
- Fix #1193: log-servfail fails to log host SERVFAIL responses in
  Unbound 1.19.2 on Ubuntu 24.04.1 LTS, by not considering cached
  failures when trying to reply with expired data.

7 months ago- For #1189, homogenize the input buffer size for dname_str(). 1197/head
Yorgos Thessalonikefs [Mon, 2 Dec 2024 10:53:56 +0000 (11:53 +0100)] 
- For #1189, homogenize the input buffer size for dname_str().

7 months ago- For #1189, add unit tests for dname_str() and debug check the input
Yorgos Thessalonikefs [Mon, 2 Dec 2024 09:03:35 +0000 (10:03 +0100)] 
- For #1189, add unit tests for dname_str() and debug check the input
  buffer size.

7 months agoFix the dname_str method to cause conversion errors when the domain name length is 255 1189/head
wenxuan70 [Sun, 24 Nov 2024 09:53:23 +0000 (17:53 +0800)] 
Fix the dname_str method to cause conversion errors when the domain name length is 255

7 months ago- For #1175, update serve-expired tests.
Yorgos Thessalonikefs [Fri, 22 Nov 2024 15:14:02 +0000 (16:14 +0100)] 
- For #1175, update serve-expired tests.

7 months ago- Fix #1175: serve-expired does not adhere to secure-by-default
Yorgos Thessalonikefs [Fri, 22 Nov 2024 14:30:51 +0000 (15:30 +0100)] 
- Fix #1175: serve-expired does not adhere to secure-by-default
  principle. The default value of serve-expired-client-timeout
  is set to 1800 as suggested by RFC8767.

7 months ago- Fix comparison to help static analyzer.
Yorgos Thessalonikefs [Wed, 20 Nov 2024 09:53:45 +0000 (10:53 +0100)] 
- Fix comparison to help static analyzer.

7 months agoChangelog entry for #1169:
Yorgos Thessalonikefs [Tue, 19 Nov 2024 16:01:34 +0000 (17:01 +0100)] 
Changelog entry for #1169:
- Merge #1169 from Sergey Kacheev, fix: lock-free counters for
  auth_zone up/down queries.

7 months agoMerge pull request #1169 from sakateka/lock-free-az-counters
Yorgos Thessalonikefs [Tue, 19 Nov 2024 16:00:01 +0000 (17:00 +0100)] 
Merge pull request #1169 from sakateka/lock-free-az-counters

fix: lock-free counters for auth_zone up/down queries

7 months agofix: lock-free counters for auth_zone up/down queries 1169/head
Sergey Kacheev [Tue, 29 Oct 2024 14:21:52 +0000 (17:21 +0300)] 
fix: lock-free counters for auth_zone up/down queries

7 months ago- Fix for #1183: release nsec3 hashes per test file.
W.C.A. Wijngaards [Fri, 15 Nov 2024 09:47:27 +0000 (10:47 +0100)] 
- Fix for #1183: release nsec3 hashes per test file.

7 months ago- Fix #1183: the data being used is released in method
W.C.A. Wijngaards [Fri, 15 Nov 2024 09:37:35 +0000 (10:37 +0100)] 
- Fix #1183: the data being used is released in method
  nsec3_hash_test_entry.

8 months ago- Complete fix for max-global-quota to 200.
Yorgos Thessalonikefs [Fri, 8 Nov 2024 16:34:28 +0000 (17:34 +0100)] 
- Complete fix for max-global-quota to 200.

8 months ago- More descriptive text for 'harden-algo-downgrade'.
Yorgos Thessalonikefs [Fri, 8 Nov 2024 12:56:04 +0000 (13:56 +0100)] 
- More descriptive text for 'harden-algo-downgrade'.

8 months ago- Increase the default of max-global-quota to 200 from 128 after
Yorgos Thessalonikefs [Wed, 6 Nov 2024 15:28:37 +0000 (16:28 +0100)] 
- Increase the default of max-global-quota to 200 from 128 after
  operational feedback. Still keeping the possible amplification
  factor (CAMP related issues) in the hundreds.

8 months agoChangelog entry for:
Yorgos Thessalonikefs [Tue, 5 Nov 2024 11:20:25 +0000 (12:20 +0100)] 
Changelog entry for:
- Fix SETEX check during Redis (re)initialization.

8 months ago- Fix SETEX check during Redis (re)initialization.
Yorgos Thessalonikefs [Tue, 5 Nov 2024 11:17:38 +0000 (12:17 +0100)] 
- Fix SETEX check during Redis (re)initialization.

8 months ago- Fix to log redis timeout error string on failure.
W.C.A. Wijngaards [Tue, 5 Nov 2024 10:41:41 +0000 (11:41 +0100)] 
- Fix to log redis timeout error string on failure.

8 months ago- Fix for the serve expired DNSSEC information fix, it would not allow
W.C.A. Wijngaards [Tue, 5 Nov 2024 09:39:27 +0000 (10:39 +0100)] 
- Fix for the serve expired DNSSEC information fix, it would not allow
  current delegation information be updated in cache. The fix allows
  current delegation and validation recursion information to be
  updated, but as a consequence no longer has certain expired
  information around for later dnssec valid expired responses.

8 months agoChangelog note for #1167
W.C.A. Wijngaards [Mon, 4 Nov 2024 12:26:27 +0000 (13:26 +0100)] 
Changelog note for #1167
- Merge #1167: Makefile.in: fix occasional parallel build failures
  around bison rule.

8 months agoMakefile.in: fix occasional parallel build failures around bison rule (#1167)
Sergei Trofimovich [Mon, 4 Nov 2024 12:26:05 +0000 (12:26 +0000)] 
Makefile.in: fix occasional parallel build failures around bison rule (#1167)

Without the change `make -j16 --shuffle` occasinally fails to build as:

    $ make -j16 --shuffle
    ...
    bison -y -d -o util/configparser.c ./util/configparser.y
    ...
    /libtool --tag=CC --mode=compile gcc -I.  -I...-openssl-3.3.2-dev/include -I...-libevent-2.1.12-dev/include -I...-expat-2.6.3-dev/include -DSRCDIR=. -g -O2 -flto -fPIE -pthread  -o configparser.lo -c util/configparser.c
    ...
    util/configparser.c:755:3: error: expected ',' or '}' at end of input
  755 |   YYSYMBOL_server_low_rtt = 626,           /* server_low_rtt  */
      |   ^

The build failure happens due to this `Makefile.in` rule:

    util/configparser.c util/configparser.h:  $(srcdir)/util/configparser.y
        @-if test ! -d util; then $(INSTALL) -d util; fi
        $(YACC) -d -o util/configparser.c $(srcdir)/util/configparser.y

For GNU make that means that each of the targets will attempt the rule
execution when the file is missing: one for .c file and another for .h
file:

    https://www.gnu.org/software/make/manual/html_node/Multiple-Targets.html

The workaround is to only run $(YACC) for .c target and use .c as a
pre-requisite for an .h file.

Before the change the build fails about every 10-th run.
After the change no build failures after 100 successful builds.

8 months ago- Fix redis that during a reload it does not fail if the redis
W.C.A. Wijngaards [Mon, 4 Nov 2024 09:14:26 +0000 (10:14 +0100)] 
- Fix redis that during a reload it does not fail if the redis
  server does not connect or does not respond. It still logs the
  errors and if the server is up checks expiration features.

8 months ago- Fix redis that during a reload it does not fail if the redis
W.C.A. Wijngaards [Mon, 4 Nov 2024 09:14:13 +0000 (10:14 +0100)] 
- Fix redis that during a reload it does not fail if the redis
  server does not connect or does not respond. It still logs the
  errors and if the server is up checks expiration features.

8 months agoChangelog entry for #1157:
Yorgos Thessalonikefs [Fri, 1 Nov 2024 15:27:06 +0000 (16:27 +0100)] 
Changelog entry for #1157:
- Merge #1157 from Liang Zhu, Fix heap corruption when calling
  ub_ctx_delete in Windows.

8 months agoFix heap corruption when calling ub_ctx_delete in Windows (#1157)
Liang Zhu [Fri, 1 Nov 2024 15:26:05 +0000 (08:26 -0700)] 
Fix heap corruption when calling ub_ctx_delete in Windows (#1157)

8 months agoChangelog entry for #1170:
Yorgos Thessalonikefs [Fri, 1 Nov 2024 15:12:07 +0000 (16:12 +0100)] 
Changelog entry for #1170:
- Merge #1170 from Melroy van den Berg, Fix chroot manpage
  description.

8 months agoFix chroot manpage description (#1170)
Melroy van den Berg [Fri, 1 Nov 2024 15:10:57 +0000 (16:10 +0100)] 
Fix chroot manpage description (#1170)

8 months ago- Add test case for #1159.
Yorgos Thessalonikefs [Fri, 1 Nov 2024 14:57:52 +0000 (15:57 +0100)] 
- Add test case for #1159.
- Some clean up for stat_values.test.

8 months ago- Merge #1159: Stats for discard-timeout and wait-limit.
Yorgos Thessalonikefs [Fri, 1 Nov 2024 14:54:24 +0000 (15:54 +0100)] 
- Merge #1159: Stats for discard-timeout and wait-limit.

8 months agoStats for discard-timeout and wait-limit (#1159)
Wouter Wijngaards [Fri, 1 Nov 2024 14:52:58 +0000 (15:52 +0100)] 
Stats for discard-timeout and wait-limit (#1159)

* - Stats num.queries_discard_timeout and num.queries_wait_limit are used
  instead of the mesh dropped that of requests exceeded.

8 months ago- Fix #1163: Typos in unbound.conf documentation.
Yorgos Thessalonikefs [Fri, 25 Oct 2024 19:25:16 +0000 (21:25 +0200)] 
- Fix #1163: Typos in unbound.conf documentation.

8 months agoAdd changelog entry for tag for 1.22.0rc1.
W.C.A. Wijngaards [Thu, 17 Oct 2024 08:57:07 +0000 (10:57 +0200)] 
Add changelog entry for tag for 1.22.0rc1.

8 months ago- Tag for 1.22.0 release. This did not contain the 1154 fix
W.C.A. Wijngaards [Thu, 17 Oct 2024 08:48:58 +0000 (10:48 +0200)] 
- Tag for 1.22.0 release. This did not contain the 1154 fix
  from 16 oct. The code repository continues with
  version 1.22.1 in development.

8 months ago- Fix #1154: Tag Incorrectly Applying for Other Interfaces
W.C.A. Wijngaards [Wed, 16 Oct 2024 13:56:33 +0000 (15:56 +0200)] 
- Fix #1154: Tag Incorrectly Applying for Other Interfaces
  Using the Same IP. This fix is not for 1.22.0.

8 months ago- Fix for dnstap with dnscrypt and dnstap without dnsoverquic. branch-1.22.0 release-1.22.0
W.C.A. Wijngaards [Wed, 16 Oct 2024 09:52:49 +0000 (11:52 +0200)] 
- Fix for dnstap with dnscrypt and dnstap without dnsoverquic.

8 months ago- Fix for dnsoverquic and dnstap to use the correct dnstap
Yorgos Thessalonikefs [Wed, 16 Oct 2024 09:02:31 +0000 (11:02 +0200)] 
- Fix for dnsoverquic and dnstap to use the correct dnstap
  environment.

8 months ago- Fix dnsoverquic to extend the number of streams when one is closed.
W.C.A. Wijngaards [Mon, 14 Oct 2024 11:53:55 +0000 (13:53 +0200)] 
- Fix dnsoverquic to extend the number of streams when one is closed.

8 months ago- Fix to display warning if quic-port is set but dnsoverquic is not
W.C.A. Wijngaards [Mon, 14 Oct 2024 09:34:26 +0000 (11:34 +0200)] 
- Fix to display warning if quic-port is set but dnsoverquic is not
  enabled when compiled.

9 months ago- Fix contrib/aaaa-filter-iterator.patch for change in call
W.C.A. Wijngaards [Fri, 11 Oct 2024 09:42:30 +0000 (11:42 +0200)] 
- Fix contrib/aaaa-filter-iterator.patch for change in call
  signature for cache_fill_missing.

9 months ago- Fix harden-unverified-glue for AAAA cache_fill_missing lookups.
W.C.A. Wijngaards [Fri, 11 Oct 2024 07:03:11 +0000 (09:03 +0200)] 
- Fix harden-unverified-glue for AAAA cache_fill_missing lookups.

9 months ago- Fix to disable detection of quic configured ports when quic is
W.C.A. Wijngaards [Fri, 11 Oct 2024 06:51:14 +0000 (08:51 +0200)] 
- Fix to disable detection of quic configured ports when quic is
  not compiled in.

9 months ago- Fix add reallocarray to alloc stats unit test, and disable release-1.22.0rc1
W.C.A. Wijngaards [Thu, 10 Oct 2024 08:43:23 +0000 (10:43 +0200)] 
- Fix add reallocarray to alloc stats unit test, and disable
  override of strdup in unbound-host, and the result of config
  get option is freed properly.

9 months ago- Fix cookie_file test sporadic fails for time change during
W.C.A. Wijngaards [Thu, 10 Oct 2024 07:45:48 +0000 (09:45 +0200)] 
- Fix cookie_file test sporadic fails for time change during
  the test.

9 months ago- Fix for dnstap compile of doqclient with doq disabled.
W.C.A. Wijngaards [Wed, 9 Oct 2024 13:52:33 +0000 (15:52 +0200)] 
- Fix for dnstap compile of doqclient with doq disabled.

9 months agoChangelog entry and unit test for fix of NSEC TTL and prefetch ttl.
W.C.A. Wijngaards [Wed, 9 Oct 2024 13:29:23 +0000 (15:29 +0200)] 
Changelog entry and unit test for fix of NSEC TTL and prefetch ttl.
- Fix to limit NSEC TTL for messages from cachedb. Fix to limit the
  prefetch ttl for messages after a CNAME with short TTL.

9 months ago- Fix to limit NSEC TTL for messages from cachedb. Fix to limit the
W.C.A. Wijngaards [Wed, 9 Oct 2024 13:28:55 +0000 (15:28 +0200)] 
- Fix to limit NSEC TTL for messages from cachedb. Fix to limit the
  prefetch ttl for messages after a CNAME with short TTL.

9 months agoChangelog note for #871
W.C.A. Wijngaards [Wed, 9 Oct 2024 08:35:45 +0000 (10:35 +0200)] 
Changelog note for #871
- Merge #871: DNS over QUIC. This adds `quic-port: 853` and
  `quic-size: 8m` that enable dnsoverquic, and the counters
  `num.query.quic` and `mem.quic` in the statistics output.
  The feature needs to be enabled by compiling with libngtcp2,
  with `--with-libngtcp2=path` and libngtcp2 needs openssl+quic,
  pass that with `--with-ssl=path` to compile unbound as well.

9 months agoDNSoverQUIC (#871)
Wouter Wijngaards [Wed, 9 Oct 2024 08:32:03 +0000 (10:32 +0200)] 
DNSoverQUIC (#871)

* - dnsoverquic, configure --with-libngtcp2 option.

* - dnsoverquic, create comm_point for doq and receive cmsg local address.

* - dnsoverquic, less obtrusive debug.

* - dnsoverquic, log and fix local port number. Neater subroutines and ifdefs.

* - dnsoverquic, add testcode/doqclient.

* - dnsoverquic, review fixes on doqclient.

* - dnsoverquic, fix unit test testbound link.

* - dnsoverquic, parse query in doqclient.

* - dnsoverquic, link with libngtcp2_crypto_openssl and code for doqclient.

* - dnsoverquic, random routine for doqclient and fix ngaddr allocation, and
  check ub_initstate return.

* - dnsoverquic, fix doqclient free of allocated ngaddr addresses.

* - dnsoverquic, enable debug output with -v for doqclient.

* - dnsoverquic, create and set TLS object and TLS context in doqclient.

* - dnsoverquic, work on quic tls context in doqclient.

* - dnsoverquic, set default dnsoverquic port to the standardized 853 port.

* - dnsoverquic, remove debug comment.

* - dnsoverquic, dns-over-quic quic-port: 853 config option.

* - dnsoverquic, log type of interface created at start of unbound.

* - dnsoverquic, log type of no tls https as https when interface is created.

* - dnsoverquic, setup client quic tls methods.

* - dnsoverquic, event work in doqclient.

* - dnsoverquic, explain in documentation that QUIC uses UDP.

* - dnsoverquic, make doqclient exit.

* - dnsoverquic, doqclient cleanup run routine.

* - dnsoverquic, doqclient code nicer.

* - dnsoverquic, doqclient read and timer.

* - dnsoverquic, doqclient write work.

* - dnsoverquic, review fixes.

* - dnsoverquic, detect openssl quic support at configure time.

* - dnsoverquic, do not allow QUIC on port 53 to stop confusion of DoQ and DNS.

* - dnsoverquic, in doqclient, when idle close is returned, drop the connection
  without calling ngtcp2_conn_write_connection_close.

* - dnsoverquic, in doqclient, log callbacks.

* - dnsoverquic, in doqclient add extend_max_local_streams_bidi callback.

* - dnsoverquic, in doqclient add client query lists.

* - dnsoverquic, in doqclient, code cleaner, log text nicer.

* - dnsoverquic, in doqclient, work on write_streams.

* - dnsoverquic, in doqclient, use signed int for stream_id, work on the
  ngtcp2_recv_stream_data callback.

* - dnsoverquic, in doqclient, print result and fixes for recv data.

* - dnsoverquic, in doqclient, add the event callbacks to fptr wlist.

* - dnsoverquic, in doqclient, when already expired, use zero timeout timer.

* - dnsoverquic, in doqclient, ignore unused return codes from
  ngtcp2_conn_writev_stream.

* - dnsoverquic, add doqclient event functions to the unbound-dnstap-socket
  test tool for linking.

* - dnsoverquic, in doqclient, fix multiple operands for the commandline.
  neater dns message output.

* - dnsoverquic, in doqclient, store packet when write blocks and try later.

* - dnsoverquic, in doqclient, limit number of packets and number of bytes sent.

* - dnsoverquic, in doqclient, better size estimate for outgoing packet.

* - dnsoverquic, in doqclient, fix that already written next packet is not
  counted for data length to send.

* - dnsoverquic, in doqclient, early data transmission and session resumption.

* - dnsoverquic, send version negotiation packet.

* - dnsoverquic, send retry and accept the connection.

* - dnsoverquic, storage structures.

* - dnsoverquic, doq connection setup.

* - dnsoverquic, neater code layout for new conn. Fix verbosity of log print.

* - dnsoverquic, doq conn callback functions.

* - dnsoverquic, doq_fill_rand routine in header file.

* - dnsoverquic, keep track of connection ids.

* - dnsoverquic, get_new_connection_id callback.

* - dnsoverquic, create doq_conid tree.

* - dnsoverquic, settings for server connection.

* - dnsoverquic, tls context.

* - dnsoverquic, sendmsg error handling.

* - dnsoverquic, neat code.

* - dnsoverquic, track doq connection last error.

* - dnsoverquic, neater packet address parameters.

* - dnsoverquic, fix uninitialized bytes in msg control in doq sendmsg, and
  fix tree cleanup of conid tree.

* - dnsoverquic, better usage text for doqclient.

* - dnsoverquic, neat code.

* - dnsoverquic, connection receive packet handling.

* - dnsoverquic, debug output.

* - dnsoverquic, debug switched meaning of scid and dcid gives
  ERR_TRANSPORT_PARAM.

* - dnsoverquic, remove debug output.

* - dnsoverquic, connection delete routine and error from connection read in
  more detail with less clutter.

* - dnsoverquic, write to stream, and receive stream data, log packet.

* - dnsoverquic, alpn set up.

* - dnsoverquic, connection close.

* - dnsoverquic, doq_table and locks.

* - dnsoverquic, fix tests.

* - dnsoverquic, better locking.

* - dnsoverquic, doq_stream.

* - dnsoverquic, remove compile warning.

* - dnsoverquic, doq_stream receive data.

* - dnsoverquic, fixes for locks and keep length bytes allocated.

* - dnsoverquic, lock connection on initial insertion.

* - dnsoverquic, reply information, and reply buffer.

* - dnsoverquic, reply info from cache, local-zone and recursion lookups.

* - dnsoverquic, spelling in comment about buffer storage.

* - dnsoverquic, stream write list and doqclient fixes to exit and printout.

* - dnsoverquic, doqclient -q option for short printout.

* - dnsoverquic, unit test with local data reply.

* - dnsoverquic, write connection and write event is set.

* - dnsoverquic, neater logging for write event connection stream writes.

* - dnsoverquic, log remote connection when the streams are written for it.

* - dnsoverquic, better threaded use, threads can write to doq connections at
  the same time.

* - dnsoverquic, unit test for the calculation of connection size with a query.

* - dnsoverquic, use less memory per connection.

* - dnsoverquic, remove unit test output.

* - dnsoverquic, add MSG_DONTWAIT so that there is no mistakenly blocking
  socket operations.

* - dnsoverquic, doqclient logs address on connection failures.

* - dnsoverquic, compat code for clock get time routine.

* - dnsoverquic, use skip_test for doq unit test.

* - dnsoverquic, fixes for proxyprotocol, use remote_addr and set proxyprotocol
  disabled on the doq connection.

* - dnsoverquic, doqclient sets log identity to its name, instead of "unbound".

* - dnsoverquic, handle blocked udp packet writes.

* - dnsoverquic, fix function documentation for verbose_print_addr from
  services/listen_dnsport.c.

* - dnsoverquic, fix doq_conn lock protection. The checklock allows to set
  the output file name, and doqclient uses that. Print place of lock_protect.

* - dnsoverquic, neater buffer clear when write of blocked packet fails, make
  sure that memory area does not overlap for blocked packet addresses when
  write of blocked packet fails, and size blocked packet buffer to the pkt buf.

* - dnsoverquic, move lock check after the test to test script in doq test.

* - dnsoverquic, the doq test uses valgrind when enabled.

* - dnsoverquic, git ignore the doqclient test.

* - dnsoverquic, limit the buffer for packets to max packet size with some more.

* - dnsoverquic, spelling fix.

* - dnsoverquic, timer work, structure and adds and deletes.

* - dnsoverquic, timer_tree uses table.lock.

* - dnsoverquic, fix timer tree remove and spelling in header file comment.

* - dnsoverquic, fix testbound for timer compare function linkage.

* - dnsoverquic, timer set add debug output.

* - dnsoverquic, doq_conn_check_timer function.

* - dnsoverquic, doq_done_setup_timer_and_write function.

* - dnsoverquic, fix that doq conn is not deleted whilst editing write and timer.

* - dnsoverquic, Fix #861 make ERROR netevent.h:1073:32: error: field 'blocked_pkt_pi' has incomplete type

* - dnsoverquic, timer element has timeout setup when socket callback complete.

* - dnsoverquic, fix unit test compile.

* - dnsoverquic, timer callback routine, handle timeout and close and delete the
  connection if necessary.

* - dnsoverquic, timer pickup stops at current time.

* - dnsoverquic, timer comparable with the event base time.

* - dnsoverquic, erase marked time when timer disabled.

* - dnsoverquic, fix timer to set correctly and lock popped write connection
  early, before it is modified.

* - dnsoverquic, fix to unlock connection lock when it is unlinked and deleted.

* - dnsoverquic, fix to unlock connection lock when it is deleted because it is
  a duplicate connection.

* - dnsoverquic, fix that doq timer is not disabled when not set.

* - dnsoverquic, quic-size: 8m maximum number of bytes for QUIC buffers.

* - dnsoverquic, flex and bison.

* - dnsoverquic, quic-size turn away new connections when full.

* - dnsoverquic, doqclient outputs stream reset information.

* - dnsoverquic, detect stream close and reset.

* - dnsoverquic, free stream buffers when data is acked and stream is closed.

* - dnsoverquic, delete stream when closed. Unlink it. Allow stream_id 4 as first.

* - dnsoverquic, stats output for mem.quic and num.query.quic.

* - dnsoverquic, review fix.

* - dnsoverquic, fix when compiled without ngtcp2.

* - dnsoverquic, fix to detect ngtcp2_crypto_quictls for openssl crypto, after
  change in libngtcp2.

* - dnsoverquic, fix for newer ngtcp2 versions. detect ngtcp2_ccerr_default,
  ngtcp2/ngtcp2_crypto_quictls.h, struct ngtcp2_pkt_hd.tokenlen,
  struct ngtcp2_settings.tokenlen and struct ngtcp2_version_cid.

* - dnsoverquic, fix for newer ngtcp2 version, detect number of arguments for
  ngtcp2_conn_shutdown_stream.

* - dnsoverquic, fix for newer ngtcp2.

* - dnsoverquic, use the functions from util/timeval_func.h.

* - dnsoverquic, fix in doqclient only write transport parameters once.

* - dnsoverquic, debug log output removed.

* - dnsoverquic, fix in doqclient to work with renamed NGTCP2_CC_ALGO_BBR_V2
  from ngtcp2.

* - dnsoverquic, fix to check in doq_server_socket_create that tls-service-key
  and tls-service-pem have a value.

* - dnsoverquic, fix to error when doq_server_socket_create fails.

* - dnsoverquic, improve linebreaks in configparser additions.

* - dnsoverquic, fix port from interface pickup after main branch change.

* Fix getting user data from SSL, fix calloc warning.

* Fix fwrite return value check in doqclient

* - timeval_substruct from timeval_func.h
- lock_protect also for HAVE_NGTCP2_CCERR_DEFAULT
- fix doq logging for inet_ntop failures

* - memset for consistency
- no value returned from msghdr_get_ecn when S_SPLINT_S is defined

* - dnsoverquic, rerun autoconf.

---------

Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
9 months ago- Fix #1128: Cannot override tcp-upstream and tls-upstream with
W.C.A. Wijngaards [Tue, 8 Oct 2024 13:29:03 +0000 (15:29 +0200)] 
- Fix #1128: Cannot override tcp-upstream and tls-upstream with
  forward-tcp-upstream and forward-tls-upstream.

9 months ago- Fix #1149: unbound-control-setup hangs sometimes depending on
W.C.A. Wijngaards [Tue, 8 Oct 2024 09:54:07 +0000 (11:54 +0200)] 
- Fix #1149: unbound-control-setup hangs sometimes depending on
  the openssl version.

9 months ago- The fix for CVE-2024-8508 was part of 1.21.1, a security point release
Yorgos Thessalonikefs [Thu, 3 Oct 2024 16:19:01 +0000 (18:19 +0200)] 
- The fix for CVE-2024-8508 was part of 1.21.1, a security point release
  on 1.21.0. The code repository continues with this fix and the version
  number 1.22.0.

9 months agoMerge branch 'release-1.21.1'
Yorgos Thessalonikefs [Thu, 3 Oct 2024 16:14:01 +0000 (18:14 +0200)] 
Merge branch 'release-1.21.1'

9 months ago- Fix CVE-2024-8508, unbounded name compression could lead to denial of release-1.21.1 release-1.21.1
Yorgos Thessalonikefs [Thu, 3 Oct 2024 12:46:57 +0000 (14:46 +0200)] 
- Fix CVE-2024-8508, unbounded name compression could lead to denial of
  service.

9 months ago- Set version to 1.21.1
Yorgos Thessalonikefs [Thu, 3 Oct 2024 12:11:57 +0000 (14:11 +0200)] 
- Set version to 1.21.1

9 months ago- Fix unbound dnstap socket test program analyzer warnings about
W.C.A. Wijngaards [Mon, 30 Sep 2024 14:36:01 +0000 (16:36 +0200)] 
- Fix unbound dnstap socket test program analyzer warnings about
  unused variable assignments and variable initialization.

9 months ago- Fix negative cache NSEC3 parameter compares for zero length NSEC3
W.C.A. Wijngaards [Mon, 30 Sep 2024 07:25:51 +0000 (09:25 +0200)] 
- Fix negative cache NSEC3 parameter compares for zero length NSEC3
  salt.

9 months ago- Fix #1144: [FR] log timestamps in ISO8601 format with timezone.
W.C.A. Wijngaards [Wed, 25 Sep 2024 09:16:46 +0000 (11:16 +0200)] 
- Fix #1144: [FR] log timestamps in ISO8601 format with timezone.
  This adds the option `log-time-iso: yes` that logs in ISO8601
  format.

9 months agoChangelog entry for #1143:
Yorgos Thessalonikefs [Tue, 24 Sep 2024 14:49:34 +0000 (16:49 +0200)] 
Changelog entry for #1143:
- Merge #1143: Fix cache update when serve expired is used. Expired
  records are favored over resolution and validation failures when
  serve-expired is used.

9 months agoFix cache update when serve expired is used (#1143)
Yorgos Thessalonikefs [Tue, 24 Sep 2024 14:47:04 +0000 (16:47 +0200)] 
Fix cache update when serve expired is used (#1143)

- Fix cache update when serve expired is used in order to not evict
  still usable expired records. Modules are forbidden to update the
  cache if their answer is DNSSEC unchecked or bogus and a valid
  (expired) entry already exists. Bogus replies from the validator are
  also discarded in favor of existing (expired) valid replies.

- serve-expired-ttl-reset should try to keep expired records in the
  cache in case they are reset.

9 months ago- More clear text for prefetch and minimal-responses in the
Yorgos Thessalonikefs [Tue, 24 Sep 2024 13:10:21 +0000 (15:10 +0200)] 
- More clear text for prefetch and minimal-responses in the
  unbound.conf man page.

9 months ago- Attempt to further fix doh_downstream_buffer_size.tdir flakiness.
Yorgos Thessalonikefs [Tue, 24 Sep 2024 10:21:03 +0000 (12:21 +0200)] 
- Attempt to further fix doh_downstream_buffer_size.tdir flakiness.

9 months ago- Fix doxygen warnings by commenting out CLANG_ASSISTED_PARSING,
Yorgos Thessalonikefs [Mon, 23 Sep 2024 13:31:32 +0000 (15:31 +0200)] 
- Fix doxygen warnings by commenting out CLANG_ASSISTED_PARSING,
  CLANG_ADD_INC_PATHS, CLANG_OPTIONS and CLANG_DATABASE_PATH; they were
  already disabled.

9 months ago- Fix dns64 with prefetch that the prefetch is stored in cache.
W.C.A. Wijngaards [Mon, 23 Sep 2024 10:19:43 +0000 (12:19 +0200)] 
- Fix dns64 with prefetch that the prefetch is stored in cache.

9 months ago- Add redis-command-timeout: 20 and redis-connect-timeout: 200,
W.C.A. Wijngaards [Tue, 17 Sep 2024 11:10:34 +0000 (13:10 +0200)] 
- Add redis-command-timeout: 20 and redis-connect-timeout: 200,
  that can set the timeout separately for commands and the
  connection set up to the redis server. If they are not
  specified, the redis-timeout value is used.

9 months agoChangelog comment for #1140.
W.C.A. Wijngaards [Mon, 16 Sep 2024 10:15:04 +0000 (12:15 +0200)] 
Changelog comment for #1140.
- Merge #1140: Fix spelling mistake in comments.

9 months agoFix spelling mistake in comments (#1140)
Tochus [Mon, 16 Sep 2024 10:14:28 +0000 (18:14 +0800)] 
Fix spelling mistake in comments (#1140)

I noticed a spelling mistake in the comments. The term “chain of trust” was incorrectly written as “chainoftrust”. This change corrects the spelling to “chain of trust” which is the correct term used in English.

10 months ago- Fix and add comments in testdata/val_negcache_ttl.rpl.
Yorgos Thessalonikefs [Wed, 11 Sep 2024 10:16:02 +0000 (12:16 +0200)] 
- Fix and add comments in testdata/val_negcache_ttl.rpl.

10 months ago- Add unit test for ttl limit for aggressive nsec.
W.C.A. Wijngaards [Tue, 10 Sep 2024 08:17:31 +0000 (10:17 +0200)] 
- Add unit test for ttl limit for aggressive nsec.

10 months ago- Fix to limit NSEC and NSEC3 TTL when aggressive nsec is
W.C.A. Wijngaards [Tue, 10 Sep 2024 08:13:48 +0000 (10:13 +0200)] 
- Fix to limit NSEC and NSEC3 TTL when aggressive nsec is
  enabled (RFC9077).

10 months ago- Fix comment to not trigger doxygen unknown command.
Yorgos Thessalonikefs [Fri, 6 Sep 2024 14:03:20 +0000 (16:03 +0200)] 
- Fix comment to not trigger doxygen unknown command.

10 months ago- Fix alloc-size and calloc-transposed-args compiler warnings.
Yorgos Thessalonikefs [Fri, 6 Sep 2024 14:01:30 +0000 (16:01 +0200)] 
- Fix alloc-size and calloc-transposed-args compiler warnings.

10 months ago- Fix config file read for dnstap-sample-rate.
W.C.A. Wijngaards [Thu, 5 Sep 2024 07:35:54 +0000 (09:35 +0200)] 
- Fix config file read for dnstap-sample-rate.

10 months agoChangelog note for #1135
W.C.A. Wijngaards [Mon, 2 Sep 2024 07:25:44 +0000 (09:25 +0200)] 
Changelog note for #1135
- Merge #1135: Add new IANA trust anchor.

10 months agoAdd new IANA trust anchor (#1135)
Keelan Cannoo [Mon, 2 Sep 2024 07:24:55 +0000 (11:24 +0400)] 
Add new IANA trust anchor (#1135)

Signed-off-by: Keelan Cannoo <keelan.cannoo@cyberstorm.mu>
Co-authored-by: Keelan10 <keelan.cannoo@cyberstorm.mu>
10 months ago- Fix for #1132, comment about adjusted copy of reference check.
W.C.A. Wijngaards [Fri, 30 Aug 2024 06:56:00 +0000 (08:56 +0200)] 
- Fix for #1132, comment about adjusted copy of reference check.

10 months agoChangelog note for #1132 and fix for #1132.
W.C.A. Wijngaards [Fri, 30 Aug 2024 06:51:56 +0000 (08:51 +0200)] 
Changelog note for #1132 and fix for #1132.
- Merge #1132: b.root renumbering.
- Fix for #1132, adjusted unit test for change in the test file.

10 months agob.root renumbering (#1132)
Loganaden Velvindron [Fri, 30 Aug 2024 06:48:31 +0000 (10:48 +0400)] 
b.root renumbering (#1132)

https://b.root-servers.org/news/2023/05/16/new-addresses.html

Worked together with Jaykishan Muktawoa <jay@cyberstorm.mu>

10 months ago- Fix to print port number in logs for auth zone transfer activities.
W.C.A. Wijngaards [Thu, 29 Aug 2024 11:04:03 +0000 (13:04 +0200)] 
- Fix to print port number in logs for auth zone transfer activities.

10 months ago- Unit test for auth zone transfer TLS, and TLS failure.
W.C.A. Wijngaards [Thu, 29 Aug 2024 08:40:31 +0000 (10:40 +0200)] 
- Unit test for auth zone transfer TLS, and TLS failure.

10 months ago- Fix that stub-zone and forward-zone clauses do not exhaust memory
W.C.A. Wijngaards [Wed, 28 Aug 2024 11:16:29 +0000 (13:16 +0200)] 
- Fix that stub-zone and forward-zone clauses do not exhaust memory
  for long content.

10 months ago- Fix that when rpz is applied the message does not get picked up by
W.C.A. Wijngaards [Wed, 28 Aug 2024 08:51:22 +0000 (10:51 +0200)] 
- Fix that when rpz is applied the message does not get picked up by
  the validator. That stops validation failures for the message.

10 months ago- Fix #1130: Loads of logs: "validation failure: key for validation
W.C.A. Wijngaards [Tue, 27 Aug 2024 15:00:27 +0000 (17:00 +0200)] 
- Fix #1130: Loads of logs: "validation failure: key for validation
  <domain>. is marked as invalid because of a previous" for
  non-DNSSEC signed zone.

10 months ago- Fix documentation for cache_fill_missing function.
W.C.A. Wijngaards [Fri, 23 Aug 2024 11:19:15 +0000 (13:19 +0200)] 
- Fix documentation for cache_fill_missing function.

10 months ago- Fix #1127: error: "memory exhausted" when defining more than 9994
W.C.A. Wijngaards [Fri, 23 Aug 2024 07:22:07 +0000 (09:22 +0200)] 
- Fix #1127: error: "memory exhausted" when defining more than 9994
  local-zones.

10 months ago- Merge patch to fix for glue that is outside of zone, with
W.C.A. Wijngaards [Fri, 23 Aug 2024 06:56:48 +0000 (08:56 +0200)] 
- Merge patch to fix for glue that is outside of zone, with
  `harden-unverified-glue`, from Karthik Umashankar (Microsoft).
  Enabling this option protects the Unbound resolver against bad
  glue, that is unverified out of zone glue, by resolving them.
  It uses the records as last resort if there is no other working
  glue.

10 months agoEnable ci back after debug.
W.C.A. Wijngaards [Wed, 21 Aug 2024 12:20:04 +0000 (14:20 +0200)] 
Enable ci back after debug.

10 months ago- Fix for char signedness warnings on NetBSD.
W.C.A. Wijngaards [Wed, 21 Aug 2024 12:15:23 +0000 (14:15 +0200)] 
- Fix for char signedness warnings on NetBSD.

10 months ago- Add cross platform netbsd to github ci.
W.C.A. Wijngaards [Wed, 21 Aug 2024 12:03:11 +0000 (14:03 +0200)] 
- Add cross platform netbsd to github ci.

10 months ago- Add cross platform openbsd to github ci.
W.C.A. Wijngaards [Wed, 21 Aug 2024 11:50:55 +0000 (13:50 +0200)] 
- Add cross platform openbsd to github ci.