mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
unbound: add UCI for forward stub and auth zone clauses
With growing interest, DNS over TLS can be setup in Unbounds foward-zone: clause. A broader UCI solution is added to support forward-, stub-, and auth- zone clauses in a new 'zone' section. This implentation required reworking scripts, because they did not scale. 'forward_domain' and 'prefetch_root' options are removed, and superceded by 'zone' section. Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
This commit is contained in:
@@ -13,12 +13,12 @@
|
||||
##############################################################################
|
||||
|
||||
# Common file location definitions
|
||||
. /usr/lib/unbound/unbound.sh
|
||||
. /usr/lib/unbound/defaults.sh
|
||||
|
||||
##############################################################################
|
||||
|
||||
if [ "$ACTION" = stratum -a ! -f "$UNBOUND_TIMEFILE" ] ; then
|
||||
echo "ntpd: $( date )" > $UNBOUND_TIMEFILE
|
||||
if [ ! -f "$UB_TIME_FILE" -a "$ACTION" = stratum ] ; then
|
||||
date -Is > $UB_TIME_FILE
|
||||
/etc/init.d/unbound enabled && /etc/init.d/unbound restart
|
||||
# Yes, hard RESTART. We need to be absolutely sure to enable DNSSEC.
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user