mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
unbound: Reload own hostname, too
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -76,6 +76,9 @@ own_hostname() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update_hosts() {
|
update_hosts() {
|
||||||
|
# Make own hostname resolveable
|
||||||
|
own_hostname
|
||||||
|
|
||||||
local enabled address hostname domainname generateptr
|
local enabled address hostname domainname generateptr
|
||||||
|
|
||||||
while IFS="," read -r enabled address hostname domainname generateptr; do
|
while IFS="," read -r enabled address hostname domainname generateptr; do
|
||||||
@@ -575,9 +578,6 @@ case "$1" in
|
|||||||
boot_mesg "Starting Unbound DNS Proxy..."
|
boot_mesg "Starting Unbound DNS Proxy..."
|
||||||
loadproc /usr/sbin/unbound || exit $?
|
loadproc /usr/sbin/unbound || exit $?
|
||||||
|
|
||||||
# Make own hostname resolveable
|
|
||||||
own_hostname
|
|
||||||
|
|
||||||
# Install Safe Search rules when the system is already online
|
# Install Safe Search rules when the system is already online
|
||||||
if [ -e "/var/ipfire/red/active" ]; then
|
if [ -e "/var/ipfire/red/active" ]; then
|
||||||
update_safe_search
|
update_safe_search
|
||||||
|
|||||||
Reference in New Issue
Block a user