]> git.ipfire.org Git - thirdparty/unbound.git/log
thirdparty/unbound.git
7 months ago- Fix text in test. serve-expired-backoff-recursion 1174/head
Yorgos Thessalonikefs [Wed, 6 Nov 2024 21:50:36 +0000 (22:50 +0100)] 
- Fix text in test.

7 months ago- Add suggestion to refresh the cached norec_ttl and expired_ttl when a
Yorgos Thessalonikefs [Wed, 6 Nov 2024 21:48:39 +0000 (22:48 +0100)] 
- Add suggestion to refresh the cached norec_ttl and expired_ttl when a
  response cannot update the usable expired entry.

8 months ago- Fix SERVFAIL logging.
Yorgos Thessalonikefs [Wed, 6 Nov 2024 15:19:19 +0000 (16:19 +0100)] 
- Fix SERVFAIL logging.

8 months ago- Update tests for expired cache updates.
Yorgos Thessalonikefs [Wed, 6 Nov 2024 14:59:42 +0000 (15:59 +0100)] 
- Update tests for expired cache updates.

8 months ago- Explicit RRSIG queries are not expected to be validated.
Yorgos Thessalonikefs [Wed, 6 Nov 2024 14:57:53 +0000 (15:57 +0100)] 
- Explicit RRSIG queries are not expected to be validated.

8 months ago- Try to use expired answers instead of SERVFAIL if serve-expired is
Yorgos Thessalonikefs [Wed, 6 Nov 2024 14:15:38 +0000 (15:15 +0100)] 
- Try to use expired answers instead of SERVFAIL if serve-expired is
  enabled even without serve-expired-client-timeout.

8 months ago- Treat serve_expired_norec_ttl as a backoff timer for failed updates of expired...
Yorgos Thessalonikefs [Wed, 6 Nov 2024 14:08:28 +0000 (15:08 +0100)] 
- Treat serve_expired_norec_ttl as a backoff timer for failed updates of expired records.

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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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>
8 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.

8 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.

9 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.

9 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.

9 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.

10 months agoci for freebsd nicer, with libevent, faster without static compile, and
W.C.A. Wijngaards [Wed, 21 Aug 2024 11:37:42 +0000 (13:37 +0200)] 
ci for freebsd nicer, with libevent, faster without static compile, and
with grouped output, also the pkg install is conditional on the platform.

10 months agoFix for freebsd ci.
W.C.A. Wijngaards [Wed, 21 Aug 2024 11:24:54 +0000 (13:24 +0200)] 
Fix for freebsd ci.

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

10 months ago- Add iter-scrub-ns, iter-scrub-cname and max-global-quota
W.C.A. Wijngaards [Tue, 20 Aug 2024 12:08:52 +0000 (14:08 +0200)] 
- Add iter-scrub-ns, iter-scrub-cname and max-global-quota
  configuration options.

10 months ago- Fix #1126: unbound-control-setup hangs while testing for openssl
W.C.A. Wijngaards [Mon, 19 Aug 2024 13:51:47 +0000 (15:51 +0200)] 
- Fix #1126: unbound-control-setup hangs while testing for openssl
  presence starting from version 1.21.0.

10 months ago- Tag for release 1.21.0, the repository continues with 1.21.1
W.C.A. Wijngaards [Thu, 15 Aug 2024 09:01:41 +0000 (11:01 +0200)] 
- Tag for release 1.21.0, the repository continues with 1.21.1
  in development.

10 months ago- Fix spelling for the cache-min-negative-ttl entry in the branch-1.21.0 release-1.21.0
W.C.A. Wijngaards [Fri, 9 Aug 2024 12:04:25 +0000 (14:04 +0200)] 
- Fix spelling for the cache-min-negative-ttl entry in the
  example.conf.

10 months ago- Fix that for windows the module startup is called and sets up
W.C.A. Wijngaards [Thu, 8 Aug 2024 14:14:09 +0000 (16:14 +0200)] 
- Fix that for windows the module startup is called and sets up
  the module-config.

10 months ago- Set version number to 1.21.0 for release. release-1.21.0rc1
W.C.A. Wijngaards [Thu, 8 Aug 2024 07:30:53 +0000 (09:30 +0200)] 
- Set version number to 1.21.0 for release.

10 months ago- Fix CacheFlush issues with limit on NS RRs. Thanks to Yehuda Afek,
W.C.A. Wijngaards [Thu, 8 Aug 2024 07:28:44 +0000 (09:28 +0200)] 
- Fix CacheFlush issues with limit on NS RRs. Thanks to Yehuda Afek,
  Anat Bremler-Barr, Shoham Danino and Yuval Shavitt (Tel-Aviv
  University and Reichman University).

10 months ago- Fix CAMP issues with global quota. Thanks to Huayi Duan, Marco
W.C.A. Wijngaards [Thu, 8 Aug 2024 07:27:45 +0000 (09:27 +0200)] 
- Fix CAMP issues with global quota. Thanks to Huayi Duan, Marco
  Bearzi, Jodok Vieli, and Cagin Tanir from NetSec group, ETH Zurich.

11 months ago- Fix that alloc stats for forwards and hints are printed, and when
W.C.A. Wijngaards [Fri, 2 Aug 2024 13:51:40 +0000 (15:51 +0200)] 
- Fix that alloc stats for forwards and hints are printed, and when
  alloc stats is enabled, the unit test for unbound control waits for
  reloads to complete.

11 months agoChangelog note for #1090
W.C.A. Wijngaards [Fri, 2 Aug 2024 11:36:06 +0000 (13:36 +0200)] 
Changelog note for #1090
- Merge #1090: Cookie secret file. Adds
  `cookie-secret-file: "unbound_cookiesecrets.txt"` option to store
  cookie secrets for EDNS COOKIE secret rollover. The remote control
  add_cookie_secret, activate_cookie_secret and drop_cookie_secret
  commands can be used for rollover, the command print_cookie_secrets
  shows the values in use.

11 months agoCookie secret file (#1090)
Wouter Wijngaards [Fri, 2 Aug 2024 11:32:08 +0000 (13:32 +0200)] 
Cookie secret file (#1090)

* - cookie-secret-file, define struct.

* - cookie-secret-file, add config option, create, read and delete struct.

* - cookie-secret-file, check cookie secrets for cookie validation.

* - cookie-secret-file, unbound-control add_cookie_secret, drop_cookie_secret,
  activate_cookie_secret and print_cookie_secrets.

* - cookie-secret-file, test and fix locks, renew writes a fresh cookie,
  staging cookies get a fresh cookie and spelling in error message.

* - cookie-secret-file, remove unused variable from cookie file unit test.

* Remove unshare and faketime dependencies for cookie_file test; documentation nits.

---------

Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
11 months agoUpdate changelog.
W.C.A. Wijngaards [Fri, 2 Aug 2024 06:59:47 +0000 (08:59 +0200)] 
Update changelog.
- Fix testbound for alloc stats strdup in util/alloc.c.

11 months ago- Fix testbound for alloc stats strdup in util/alloc.c.
W.C.A. Wijngaards [Fri, 2 Aug 2024 06:58:22 +0000 (08:58 +0200)] 
- Fix testbound for alloc stats strdup in util/alloc.c.

11 months ago- Fix that alloc stats has strdup checks, it stops debuggers from
W.C.A. Wijngaards [Fri, 2 Aug 2024 06:54:54 +0000 (08:54 +0200)] 
- Fix that alloc stats has strdup checks, it stops debuggers from
  complaining about mismatch at free time.

11 months ago- Fix that the worker mem report with alloc stats does not attempt
W.C.A. Wijngaards [Thu, 1 Aug 2024 15:15:07 +0000 (17:15 +0200)] 
- Fix that the worker mem report with alloc stats does not attempt
  to print memory use of forwards and hints if they have been
  deleted already.

11 months ago- Fix dnstap test program, cleans up to have clean memory on exit,
W.C.A. Wijngaards [Thu, 1 Aug 2024 14:12:04 +0000 (16:12 +0200)] 
- Fix dnstap test program, cleans up to have clean memory on exit,
  for tap_data_free, does not delete NULL items. Also it does not try
  to free the tail, specifically in the free of the list since that
  picked up the next item in the list for its loop causing invalid
  free. Added internal unit test to unbound-dnstap-socket for that.