mirror of
https://github.com/openwrt/packages.git
synced 2025-01-31 03:41:44 +00:00
658c27ea97
DNS flag day 2020, software should reflect the minimum EDNS 1232 bytes. Added iface_wan and iface_lan to control internal DNS assignemnts and to control what is local service ACL. Interface wild cards are not explicitly set so that they can be customized in extended conf. Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
30 lines
1.0 KiB
Bash
Executable File
30 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
##############################################################################
|
|
#
|
|
# Copyright (C) 2016 Eric Luehrsen
|
|
#
|
|
##############################################################################
|
|
#
|
|
# "Restart" Unbound on hotplug NTP ready:
|
|
# - Only do this the first time when no file exists
|
|
# - Some of Unbound conf options to not reload run time
|
|
# - Change the enable flag for DNSSEC date-time checking
|
|
#
|
|
##############################################################################
|
|
|
|
# while useful (sh)ellcheck is pedantic and noisy
|
|
# shellcheck disable=1091,2002,2004,2034,2039,2086,2094,2140,2154,2155
|
|
|
|
. /usr/lib/unbound/defaults.sh
|
|
|
|
##############################################################################
|
|
|
|
if [ ! -f "$UB_TIME_FILE" ] && [ "$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
|
|
|
|
##############################################################################
|
|
|