|
@ -315,7 +315,7 @@ unbound_mkdir() { |
|
|
# Debian-like package dns-root-data |
|
|
# Debian-like package dns-root-data |
|
|
cp -p /usr/share/dns/root.hints $UNBOUND_HINTFILE |
|
|
cp -p /usr/share/dns/root.hints $UNBOUND_HINTFILE |
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
elif [ ! -f "$UNBOUND_TIMEFILE" ] ; then |
|
|
logger -t unbound -s "iterator will use built-in root hints" |
|
|
logger -t unbound -s "iterator will use built-in root hints" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
@ -329,7 +329,7 @@ unbound_mkdir() { |
|
|
elif [ -x $UNBOUND_ANCHOR ] ; then |
|
|
elif [ -x $UNBOUND_ANCHOR ] ; then |
|
|
$UNBOUND_ANCHOR -a $UNBOUND_KEYFILE |
|
|
$UNBOUND_ANCHOR -a $UNBOUND_KEYFILE |
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
elif [ ! -f "$UNBOUND_TIMEFILE" ] ; then |
|
|
logger -t unbound -s "validator will use built-in trust anchor" |
|
|
logger -t unbound -s "validator will use built-in trust anchor" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
@ -526,7 +526,7 @@ unbound_conf() { |
|
|
echo |
|
|
echo |
|
|
} >> $UNBOUND_CONFFILE |
|
|
} >> $UNBOUND_CONFFILE |
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
elif [ ! -f "$UNBOUND_TIMEFILE" ] ; then |
|
|
logger -t unbound -s "default memory resource consumption" |
|
|
logger -t unbound -s "default memory resource consumption" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -602,7 +602,9 @@ unbound_conf() { |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
*) |
|
|
*) |
|
|
logger -t unbound -s "default recursion configuration" |
|
|
|
|
|
|
|
|
if [ ! -f "$UNBOUND_TIMEFILE" ] ; then |
|
|
|
|
|
logger -t unbound -s "default recursion configuration" |
|
|
|
|
|
fi |
|
|
;; |
|
|
;; |
|
|
esac |
|
|
esac |
|
|
|
|
|
|
|
@ -822,7 +824,11 @@ unbound_uci() { |
|
|
|
|
|
|
|
|
if [ "$UNBOUND_B_DNSMASQ" -gt 0 ] ; then |
|
|
if [ "$UNBOUND_B_DNSMASQ" -gt 0 ] ; then |
|
|
UNBOUND_D_DHCP_LINK=dnsmasq |
|
|
UNBOUND_D_DHCP_LINK=dnsmasq |
|
|
logger -t unbound -s "Please use 'dhcp_link' selector instead" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -f "$UNBOUND_TIMEFILE" ] ; then |
|
|
|
|
|
logger -t unbound -s "Please use 'dhcp_link' selector instead" |
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -835,7 +841,7 @@ unbound_uci() { |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$UNBOUND_D_DHCP_LINK" = "none" ] ; then |
|
|
|
|
|
|
|
|
if [ "$UNBOUND_D_DHCP_LINK" = "none" -a ! -f "$UNBOUND_TIMEFILE" ] ; then |
|
|
logger -t unbound -s "cannot forward to dnsmasq" |
|
|
logger -t unbound -s "cannot forward to dnsmasq" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
@ -849,7 +855,7 @@ unbound_uci() { |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$UNBOUND_D_DHCP_LINK" = "none" ] ; then |
|
|
|
|
|
|
|
|
if [ "$UNBOUND_D_DHCP_LINK" = "none" -a ! -f "$UNBOUND_TIMEFILE" ] ; then |
|
|
logger -t unbound -s "cannot receive records from odhcpd" |
|
|
logger -t unbound -s "cannot receive records from odhcpd" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|