The libunbound library from the Unbound package provides an API for validating, recursing, and caching DNS addresses. Unbound can provide issues with Systemd, although some packages require the library. BLFS has removed the package from the Systemd edition, leaving packages that need it in the dark. This provides the component that packages need. The daemon itself shouldn't be needed.
Make the package compatible with OpenSSL-4 by applying a patch:
patch -Np1 -i ../unbound-1.25.1-openssl4-1.patch
Install libunbound by running the following commands:
CFLAGS+=" -I/usr/include/nss" \
CFLAGS+=" -I/usr/include/nspr" \
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-static \
--with-nss \
--with-libunbound-only &&
make
Now, as the root user:
make install
--with-nss: This ensures
libunbound is built with NSS.
--with-libunbound-only:
This ensures only the library is built.
--with-libevent: This option enables
libevent support, which allows for the use of large outgoing port
ranges.