]> git.ipfire.org Git - thirdparty/unbound.git/log
thirdparty/unbound.git
4 months ago- The maximum value of a probe rto was not aligned with the 1241/head
Yorgos Thessalonikefs [Wed, 19 Feb 2025 11:14:59 +0000 (12:14 +0100)] 
- The maximum value of a probe rto was not aligned with the
  (configurable) infra-cache-max-rtt value. That could result in
  infra-keep-probing not working if an infra-cache-max-rtt value was chosen
  that was below 12000 ms. This fix still uses a default value of 12000
  ms for the probe but caps it to the infra-cache-max-rtt if that is
  lower.

4 months ago- Fix static analysis report about unhandled EOF on error conditions
Yorgos Thessalonikefs [Wed, 19 Feb 2025 10:24:49 +0000 (11:24 +0100)] 
- Fix static analysis report about unhandled EOF on error conditions
  when reading anchor key files.

4 months ago- Consider reconfigurations when calculating the still_useful_timeout
Yorgos Thessalonikefs [Mon, 17 Feb 2025 14:21:18 +0000 (15:21 +0100)] 
- Consider reconfigurations when calculating the still_useful_timeout
  for servers in the infrastructure cache.

5 months ago- Fix #986: Resolving sas.com with dnssec-validation fails though
W.C.A. Wijngaards [Thu, 30 Jan 2025 15:26:31 +0000 (16:26 +0100)] 
- Fix #986: Resolving sas.com with dnssec-validation fails though
  signed delegations seem to be (mostly) correct.

5 months ago- Make the default value of module-config "validator iterator"
Yorgos Thessalonikefs [Wed, 29 Jan 2025 11:08:28 +0000 (12:08 +0100)] 
- Make the default value of module-config "validator iterator"
  regardless of compilation options. --enable-subnet would implicitly
  change the value to enable the subnetcache module by default in the
  past.

5 months agoChangelog entry for #1220:
Yorgos Thessalonikefs [Fri, 24 Jan 2025 15:56:09 +0000 (16:56 +0100)] 
Changelog entry for #1220:
- Merge #1220 from Petr Menšík, Add unbound members group access to
  control key.

5 months agoMerge pull request #1220 from InfrastructureServices/unbound-control-group-key
Yorgos Thessalonikefs [Fri, 24 Jan 2025 15:53:12 +0000 (16:53 +0100)] 
Merge pull request #1220 from InfrastructureServices/unbound-control-group-key

Add unbound members group access to control key

5 months agoChangelog entry for #1224:
Yorgos Thessalonikefs [Tue, 21 Jan 2025 16:35:00 +0000 (17:35 +0100)] 
Changelog entry for #1224:
- Merge #1224 from Theo Buehler: Do not use DSA API unless USE_DSA is
  set.

5 months agoMerge pull request #1224 from botovq/improve-use-dsa
Yorgos Thessalonikefs [Tue, 21 Jan 2025 16:33:48 +0000 (17:33 +0100)] 
Merge pull request #1224 from botovq/improve-use-dsa

Do not use DSA API unless USE_DSA is set

5 months agoChangelog note for #1229
W.C.A. Wijngaards [Tue, 21 Jan 2025 14:48:46 +0000 (15:48 +0100)] 
Changelog note for #1229
- Merge #1229: check before use daemon->shm_info.

5 months agocheck before use daemon->shm_info (#1229)
eaglegai [Tue, 21 Jan 2025 14:47:51 +0000 (22:47 +0800)] 
check before use daemon->shm_info (#1229)

fix core after the command `unbound-control stop unbound`

fix:https://github.com/NLnetLabs/unbound/issues/1228

Signed-off-by: eaglegai <eaglegai@163.com>
5 months ago- Do not open unencrypted channels next to encrypted ones on the same
Yorgos Thessalonikefs [Tue, 21 Jan 2025 14:25:53 +0000 (15:25 +0100)] 
- Do not open unencrypted channels next to encrypted ones on the same
  port.

5 months ago- Fix to check length in ATMA string to wire.
W.C.A. Wijngaards [Tue, 21 Jan 2025 11:30:30 +0000 (12:30 +0100)] 
- Fix to check length in ATMA string to wire.

5 months ago- Fix encoding of RR type ATMA.
W.C.A. Wijngaards [Tue, 21 Jan 2025 11:27:15 +0000 (12:27 +0100)] 
- Fix encoding of RR type ATMA.

5 months ago- Fix compile of interface check code when dnscrypt or quic is
W.C.A. Wijngaards [Tue, 21 Jan 2025 09:13:48 +0000 (10:13 +0100)] 
- Fix compile of interface check code when dnscrypt or quic is
  disabled.

5 months ago- Use the same interface listening port discovery code for all needed
Yorgos Thessalonikefs [Tue, 21 Jan 2025 09:04:30 +0000 (10:04 +0100)] 
- Use the same interface listening port discovery code for all needed
  protocols.
- Port to string only when needed before getaddrinfo().

5 months ago- Create the quic SSL listening context only when needed.
Yorgos Thessalonikefs [Mon, 20 Jan 2025 14:49:37 +0000 (15:49 +0100)] 
- Create the quic SSL listening context only when needed.

5 months agoChangelog entry for #1222:
Yorgos Thessalonikefs [Mon, 20 Jan 2025 14:45:11 +0000 (15:45 +0100)] 
Changelog entry for #1222:
- Merge #1222: Unique DoT and DoH SSL contexts to allow for different
  ALPN.

5 months agoUnique DoT and DoH SSL contexts to allow for different ALPN (#1222)
Yorgos Thessalonikefs [Mon, 20 Jan 2025 14:43:44 +0000 (15:43 +0100)] 
Unique DoT and DoH SSL contexts to allow for different ALPN (#1222)

5 months agoDo not use DSA API unless USE_DSA is set 1224/head
Theo Buehler [Sat, 18 Jan 2025 09:23:57 +0000 (10:23 +0100)] 
Do not use DSA API unless USE_DSA is set

Even if USE_DSA is unset, unbound ends up linking against OpenSSL
DSA API because these guards are missing.

5 months agoChangelog entry for #1221:
Yorgos Thessalonikefs [Fri, 17 Jan 2025 09:19:26 +0000 (10:19 +0100)] 
Changelog entry for #1221:
- Merge #1221: Consider auth zones when checking for forwarders.

5 months agoMerge pull request #1221 from NLnetLabs/bugfix/consider-auth-zones-when-forwarding
Yorgos Thessalonikefs [Fri, 17 Jan 2025 09:18:32 +0000 (10:18 +0100)] 
Merge pull request #1221 from NLnetLabs/bugfix/consider-auth-zones-when-forwarding

Consider auth zones when checking for forwarders

5 months ago- Use correct RFC number for resolver.arpa.
Yorgos Thessalonikefs [Wed, 15 Jan 2025 09:55:31 +0000 (10:55 +0100)] 
- Use correct RFC number for resolver.arpa.

5 months ago- Add resolver.arpa and service.arpa to the default locally served
Yorgos Thessalonikefs [Tue, 14 Jan 2025 16:18:32 +0000 (17:18 +0100)] 
- Add resolver.arpa and service.arpa to the default locally served
  zones.

5 months ago- Take configured auth zones into consideration when checking if a 1221/head
Yorgos Thessalonikefs [Tue, 14 Jan 2025 15:38:53 +0000 (16:38 +0100)] 
- Take configured auth zones into consideration when checking if a
  request needs to be forwarded.

5 months agoAdd unbound members group access to control key 1220/head
Petr Menšík [Tue, 14 Jan 2025 12:55:10 +0000 (13:55 +0100)] 
Add unbound members group access to control key

Recent openssl genrsa does not use umask for generated keys. There is no
strong reason why every member of unbound group should be able read
server key. But control key would be quite useful to be group readable
and to allow control access to whole group. Allowing access to control
by group membership, not via sudo.

5 months ago- Fix typo.
Yorgos Thessalonikefs [Mon, 13 Jan 2025 11:32:16 +0000 (12:32 +0100)] 
- Fix typo.

5 months ago- Fix #1213: Misleading error message on default access control causing
Yorgos Thessalonikefs [Mon, 13 Jan 2025 10:33:24 +0000 (11:33 +0100)] 
- Fix #1213: Misleading error message on default access control causing
  refuse.

6 months agoChangelog entry for #1214:
Yorgos Thessalonikefs [Fri, 10 Jan 2025 12:54:49 +0000 (13:54 +0100)] 
Changelog entry for #1214:
- Merge #1214: Use TCP_NODELAY on TLS sockets to speed up the TLS
  handshake.

6 months agoMerge pull request #1214 from NLnetLabs/bugfix/tls-handshake
Yorgos Thessalonikefs [Fri, 10 Jan 2025 12:53:46 +0000 (13:53 +0100)] 
Merge pull request #1214 from NLnetLabs/bugfix/tls-handshake

Use TCP_NODELAY on TLS sockets to speed up the TLS handshake.

6 months ago- Use TCP_NODELAY on TLS sockets to speed up the TLS handshake. 1214/head
Yorgos Thessalonikefs [Fri, 10 Jan 2025 11:11:59 +0000 (12:11 +0100)] 
- Use TCP_NODELAY on TLS sockets to speed up the TLS handshake.

6 months agoChangelog entry for #1174:
Yorgos Thessalonikefs [Tue, 31 Dec 2024 15:30:35 +0000 (16:30 +0100)] 
Changelog entry for #1174:
- Merge #1174: Serve expired cache update fixes. Fixes a regression bug
  with serve-expired that appeared in 1.22.0 and would not allow the
  iterator to update the cache with not-yet-validated entries resulting
  in increased outgoing traffic.

6 months agoServe expired cache update fixes (#1174)
Yorgos Thessalonikefs [Tue, 31 Dec 2024 15:28:12 +0000 (16:28 +0100)] 
Serve expired cache update fixes (#1174)

- Fixes a regression bug with serve-expired that appeared in 1.22.0
  and would not allow the iterator to update the cache with
  not-yet-validated entries resulting in increased outgoing traffic.

- Treat serve_expired_norec_ttl as a backoff timer for failed updates of expired records.
- Try to use expired answers instead of SERVFAIL if serve-expired is
  enabled even without serve-expired-client-timeout.
- Add suggestion to refresh the cached norec_ttl and expired_ttl when a
  response cannot update the usable expired entry.

6 months ago- For #1207: [FR] Support for RESINFO RRType 261 (RFC9606), add
Yorgos Thessalonikefs [Fri, 20 Dec 2024 14:04:34 +0000 (15:04 +0100)] 
- For #1207: [FR] Support for RESINFO RRType 261 (RFC9606), add
  LDNS_RR_TYPE_RESINFO similar to LDNS_RR_TYPE_TXT.

6 months agoChangelog entry for #1204:
Yorgos Thessalonikefs [Fri, 13 Dec 2024 12:43:29 +0000 (13:43 +0100)] 
Changelog entry for #1204:
- Merge #1204: ci: set persist-credentials: false for actions/checkout
  per zizmor suggestion.

6 months agoMerge pull request #1204 from NLnetLabs/zizmor-improvements
Yorgos Thessalonikefs [Fri, 13 Dec 2024 12:42:31 +0000 (13:42 +0100)] 
Merge pull request #1204 from NLnetLabs/zizmor-improvements

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.