mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
unbound: follow resolv.conf.auto to new location
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
This commit is contained in:
@@ -161,7 +161,7 @@ bundle_wan_networks() {
|
||||
##############################################################################
|
||||
|
||||
bundle_resolv_conf_servers() {
|
||||
local resolvers=$( awk '/nameserver/ { print $2 }' /tmp/resolv.conf.auto )
|
||||
local resolvers=$( awk '/nameserver/ { print $2 }' $UB_RESOLV_AUTO )
|
||||
UB_LIST_ZONE_SERVERS="$UB_LIST_ZONE_SERVERS $resolvers"
|
||||
}
|
||||
|
||||
@@ -1527,14 +1527,14 @@ resolv_setup() {
|
||||
|
||||
else
|
||||
# unbound listens on 127.0.0.1#53 so set resolver file to local.
|
||||
rm -f /tmp/resolv.conf
|
||||
rm -f $UB_RESOLV_CONF
|
||||
|
||||
{
|
||||
echo "# /tmp/resolv.conf generated by Unbound UCI $( date -Is )"
|
||||
echo "# $UB_RESOLV_CONF generated by Unbound UCI $( date -Is )"
|
||||
echo "nameserver 127.0.0.1"
|
||||
echo "nameserver ::1"
|
||||
echo "search $UB_TXT_DOMAIN."
|
||||
} > /tmp/resolv.conf
|
||||
} > $UB_RESOLV_CONF
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user