Commit Graph

432 Commits

Author SHA1 Message Date
Petr Menšík
a0aeb2bec4 Recreate configure unconditionally
Previous fix did not work, because new configure was not regenerated
after changing configure.ac. Make new configure on every build.

Resolves: RHEL-147790
2026-02-13 11:58:11 +01:00
Petr Menšík
c18fa1df31 Add byacc into BuildRequires
Make few dependencies on single line to be on separate lines.

Related: RHEL-147790
2026-02-09 16:14:03 +01:00
Petr Menšík
59bf110234 Change the default of tls-use-system-policy-versions at build-time
Allow simple switch to change default of that option. Use it on Red Hat
builds where we want crypto-policy to be a primary source of such
configuration. Of course keep ability to disable that or reconfigure
explicit TLS settings.

Resolves: RHEL-147790
2026-02-09 15:59:32 +01:00
Petr Menšík
a4e672e54e Switch TLS configuration to follow TLS sockets by crypto-policy again
It stopped to accept TLS 1.2 clients after the recent rebase. Get that
support back.

Resolves: RHEL-147790
2026-02-09 15:17:59 +01:00
Petr Menšík
5bb74d79a4 Export utils subpackage into AppStream repository
Resolves: RHEL-127543
2025-12-02 18:01:42 +01:00
Petr Menšík
6b3d591a6e Add Yorgos PGP key for validation
Resolves: RHEL-123204
2025-12-01 18:06:54 +01:00
Petr Menšík
44609ac77d Update to 1.24.2
- Fixes CVE-2025-11411

Features from 1.24:

- Increase default to `num-queries-per-thread: 2048`
- num.valops in extended statistics
- unbound-control cache_lookup <domains> support
- zone status for auth-zones

Features from 1.23:

- Increase the default of max-global-quota to 200 from 128
- The default value of serve-expired-client-timeout is set to 1800
- Support for RESINFO RRType 261 (RFC9606).
- Add resolver.arpa and service.arpa to the default locally served zones.
- Fast Reload. The unbound-control fast_reload is added.
- DNS Error Reporting (RFC 9567).

Features from 1.22:
- Add iter-scrub-ns, iter-scrub-cname and max-global-quota configuration options.
- Merge patch to fix for glue that is outside of zone, with `harden-unverified-glue`
- log timestamps in ISO8601 format with timezone
- DNS over QUIC. This adds `quic-port: 853` and `quic-size: 8m`.
  Requires ngtcp2, not yet in RHEL.

Features from 1.21:
- Clear both in-memory and cachedb module cache with `unbound-control flush*` commands.
- Add dnstap-sample-rate that logs only 1/N messages.
- Add root key 38696 from 2024 for DNSSEC validation.
- Cookie secret file. Adds `cookie-secret-file option.

And a lot of bug fixes.

https://nlnetlabs.nl/projects/unbound/download/#unbound-1-24-2

Resolves: RHEL-123204
2025-12-01 18:06:54 +01:00
Petr Menšík
37b076da9c Add new DNSSEC root anchor 38696
Just in package, no code modification.

Resolves: RHEL-130934
2025-11-26 14:00:51 +01:00
Petr Menšík
e9a061b8a5 Make root.key maintained unmodified
Hide rpm -V unbound-libs changed file when unbound-anchor has done the
change. Do not use %config for the symlink presence.

Resolves: RHEL-116732
2025-11-26 13:58:15 +01:00
Petr Menšík
ac8f6bcbb5 Create root key if missing automatically
Prepare tmpfiles.d script for creating /var/lib/unbound in case it is
missing. Prepare link to root.key also.

Resolves: RHEL-118375
2025-10-10 17:07:49 +02:00
Petr Menšík
8bbf515fbc Correct existing unbound_control.key permissions
Do it only once when upgrading from the old version, which generated the
key wrong way. If the administrator wants to have control just for root
user, make it possible afterwards.

Resolves: RHEL-73862
2025-08-29 15:21:45 +02:00
Petr Menšík
68dbd9baf7 Fix permissions of created control and server key
Server key should remain user-readable only. But change control key
generation to make the key group-readable.

Resolves: RHEL-73862
2025-08-29 11:45:02 +02:00
Tomas Korbar
e25447792f Fix RebirthDay Attack (CVE-2025-5994)
A multi-vendor cache poisoning vulnerability named "Rebirthday Attack"
has been discovered in caching resolvers that support EDNS Client Subnet
(ECS).

Resolves: RHEL-104121
2025-07-28 12:25:35 +02:00
Tomas Korbar
6638d94719 Bump release 2025-07-28 12:23:11 +02:00
psklenar@redhat.com
518e5735ca https://issues.redhat.com/browse/RHELMISC-13073 2025-06-05 12:19:07 +02:00
Petr Menšík
6642536453 Prevent unbounded name compression (CVE-2024-8508)
unbounded name compression could lead to denial of service.

Resolves: RHEL-61481
2025-05-14 16:10:39 +02:00
Tomas Korbar
a168ec1a3e Add possibility to disable unbound-anchor by file presence
Resolves: RHEL-78647
2025-02-10 21:27:19 +01:00
Tomas Korbar
ffc66a1f65 Change service type to notify
notify-reload was a mistake. It unconditionally sends signal
to service process additionally to executing ExecReload which
does not make sense.

Resolves: RHEL-77611
2025-02-07 14:45:25 +01:00
Tomas Korbar
9537b56d7b Enabled libsystemd and change unbound service type to notify-reload
"notify-reload" service type allows unbound to notify systemd
not only about its readiness on startup but also about start and
finish of reloading process.

Resolves: RHEL-77611
2025-02-04 11:11:34 +01:00
Tomas Korbar
66b0ed0714 Add dracut module
Dracut module allows unbound to be used as resolver in initramfs.
It is set before to network-online.target to ensure that other
services which depend on name resolution have general synchronization
point when they can expect unbound to be configured and listening.

Resolves: RHEL-77613
2025-02-04 11:11:15 +01:00
Tomas Korbar
745c62044d Use ip-freebind: yes or add After=network-online.target
if interface: specifies exact address, not localhost nor wildcard. It
should not be used by default when only localhost listening is enabled.
Default configuration does not need it.

Resolves: RHEL-77616
2025-02-04 11:10:47 +01:00
Tomas Korbar
cc9a5c9d7b Move defaults to separate configuration file
Place distribution defaults into file provided in /usr/share/unbound.
Include that file from default configuration before conf.d/*.conf is
included, to ensure similar order is kept.

Rely on remote-control to be configured by conf.d/remote-control.conf
only. Moved parts from orinal unbound.conf to single file together.

Resolves: RHEL-77780
2025-02-04 11:06:07 +01:00
Tomas Korbar
31ef264918 Deactivate automatic root zone fetching
Automatic maintained root zone is great for network resolvers, which are
used by multiple machines. Its usage on every common device is not
desired however, especially when used as localhost only cache daemon.

Make it simple to activate local root zone by creating
symlink in directory /etc/unbound/conf.d to
/usr/share/unbound/conf.d/unbound-local-root.conf.

But have it deactivated in default configuration.

Resolves: RHEL-77614
2025-02-04 11:04:50 +01:00
Troy Dawson
b28b38c26e Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
2024-10-29 09:17:35 -07:00
Petr Menšík
9f47e3244e Update to 1.20.0
https://nlnetlabs.nl/projects/unbound/download/#unbound-1-20-0

Resolves: RHEL-36025
2024-07-02 18:47:08 +02:00
Troy Dawson
4a31070712 Bump release for June 2024 mass rebuild 2024-06-24 09:27:49 -07:00
psklenar@redhat.com
2143ff645f c10s init plans for unbound 2024-05-28 10:57:08 +02:00
Petr Menšík
a8b2f2adc2 Always auto-restart on crash events
Although no way of crashing is known, ensure unbound will restart itself
in case of crash. That should minimize possible damage and allow less
degraded service until a fix for crashes arrives.

Do not try to restart on configuration failures. There restarts will not
likely to fix the issue anyway.
2024-01-29 12:35:47 +01:00
Petr Menšík
c89e088ab8 Update address of b.root-servers.net (#2253461)
Modification of a config file differs from upstream version, we have it
uncommented in Fedora.

Resolves: rhbz#2253461
2024-01-29 12:32:41 +01:00
Fedora Release Engineering
5a98539d51 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 07:05:17 +00:00
Petr Menšík
cac99bf119 Convert to %autorelease and %autochangelog
Finish Paul's conversion to autorelease. Used rpmautospec convert to
migrate old part of changelog into a separate file. That should still
include old changelog entries in the package.

[skip changelog]
2023-12-07 12:33:51 +01:00
Petr Menšík
06e6f74d5f Consider unbound-anchor maintained root.key config file
Required to keep it maintained by the unbound-anchor.service. Do not
reset it to vendor file again on package upgrade. If it were once
modified, keep it modified.

Resolves: rhbz#2142368
2023-12-06 21:59:14 +01:00
Petr Menšík
f3b35b2ddd Rename unbound.sysusers to unbound.conf
Resolves: rhbz#2252265
2023-12-06 21:18:39 +01:00
Petr Menšík
8eb43fc467 Generate configuration file from upstream example.conf
To reduce rebase burden, just modify upstream example with our Fedora
specific changes. The result should be the same, but without the need to
manually add new features into separate config file.
2023-11-10 16:25:39 +01:00
Petr Menšík
d389610bfb Update to 1.19.0 (#2248686)
- New disable-edns-do option

Changes:
https://nlnetlabs.nl/projects/unbound/download/#unbound-1-19-0
https://lists.nlnetlabs.nl/pipermail/unbound-users/2023-November/008186.html
2023-11-10 14:23:28 +01:00
Paul Wouters
218f551c24
Fix for resolving outlook.com via forwarders
- See https://github.com/NLnetLabs/unbound/issues/946
- Use autochangelog macro
2023-10-11 16:55:31 -04:00
Petr Menšík
997299863e Correct dependencies on creating the unbound user
Move correct requirements in the package to libs subpackage, which
creates the user.
2023-09-26 20:30:20 +02:00
Petr Menšík
940496db6d Skip failing tests on ELN builds
Some tests are failing, caused by SHA-1 disabled on openssl in those
branches. Skip those tests only on RHEL branches, where this should be a
problem.

Related: https://github.com/NLnetLabs/unbound/pull/770
2023-09-06 13:31:59 +02:00
Petr Menšík
249e1d5601 Update to 1.18.0
https://nlnetlabs.nl/projects/unbound/download/#unbound-1-18-0

- NAT64 support
- Downstream DNS cookies
- EDE caching
- Set max-udp-size default to 1232

Resolves: rhbz#2236097
2023-09-01 11:05:19 +02:00
Fedora Release Engineering
6fcb60a14d Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 17:05:22 +00:00
Python Maint
2572eb13e5 Rebuilt for Python 3.12 2023-06-13 20:56:32 +02:00
Chloe Kudryavtsev
fd868a8caf fix building with redis 2023-04-07 02:48:56 +00:00
Fedora Release Engineering
0f8f31408c Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 05:47:20 +00:00
Paul Wouters
49e721cb96
clarify gpgverify a bit to make it look less magical 2023-01-13 19:23:47 -05:00
Paul Wouters
ff081b069f
update sources 2023-01-13 19:23:47 -05:00
Paul Wouters
668ceaffe5
update to 1.17.1
- Resolved rhbz#2160397 unbound-1.17.1 is available (bugfix release)
- Add support for building with redis
- update unbound.conf
2023-01-13 19:23:46 -05:00
Petr Menšík
00b1b0c570 Use static dnssec-root.key with link from lib
Points to static data, which would be overwritten by
unbound-anchor.service. Makes default key kept intact and dynamic data
put instead of symlink.

Ignore most of file properties of %_localstatedir/unbound/root.key,
default symlink is replaced with anchor maintained regular file.

Resolves: rhbz#2132103
2023-01-02 21:26:57 +01:00
Petr Menšík
0953d81204 Use systemd-sysusers for user creation (#2105416) 2023-01-02 17:52:10 +01:00
Petr Menšík
e70e0f040e Move unbound user creation to libs (#2149036)
libs contains also few key anchor owned by unbound user. It needs to be
created also for unbound-libs, which is required by all other packages.
2023-01-02 17:51:32 +01:00
Yaakov Selkowitz
2efa55aa14 Disable SHA-1 support in ELN 2022-12-07 19:49:28 -05:00