unbound: fix `create_host_record_from_host` error when `dns` is not set
authorJulien Cassette <julien.cassette@gmail.com>
Tue, 21 Nov 2023 08:43:29 +0000 (09:43 +0100)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sat, 17 Feb 2024 13:59:31 +0000 (14:59 +0100)
commitc9c59f553e0bf16d9de897c072059cdc3136e438
treecf97692ed9b2beaeeffde5756bbd3933883a34da
parente629fc3db5680255a423d9d5015db66abd4cddfb
unbound: fix `create_host_record_from_host` error when `dns` is not set

The function `create_host_record_from_host` fails if the `dns` option
is not set in the host entry.
This sets a default to the `dns` variable in order to fix this error.

Fixes: #22691
Signed-off-by: Julien Cassette <julien.cassette@gmail.com>
(cherry picked from commit 8d60419251b2c94f87425f41ce49214771d2bf6a)
net/unbound/Makefile
net/unbound/files/dnsmasq.sh