index.cgi: display unbound dns servers

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2016-10-02 16:35:50 +02:00
parent cc60329d88
commit e24d6112bb
3 changed files with 10 additions and 13 deletions

View File

@@ -90,12 +90,14 @@ update_forwarders() {
boot_mesg "Configuring upstream name server(s): ${forwarders:1}" ${INFO}
echo_ok
echo "${forwarders}" > /var/ipfire/red/dns
unbound-control -q forward ${forwarders}
return 0
fi
fi
# If forwarders cannot be used we run in recursor mode
echo "local recursor" > /var/ipfire/red/dns
unbound-control -q forward off
}