]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
unbound: Reload own hostname, too
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Jan 2020 19:55:32 +0000 (20:55 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Jan 2020 19:55:32 +0000 (20:55 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/unbound

index b5f7cbc602cb7757a1501d17223a563824cae230..5ae020584262178bfe2c20db90e23fdc003c0542 100644 (file)
@@ -76,6 +76,9 @@ own_hostname() {
 }
 
 update_hosts() {
+       # Make own hostname resolveable
+       own_hostname
+
        local enabled address hostname domainname generateptr
 
        while IFS="," read -r enabled address hostname domainname generateptr; do
@@ -575,9 +578,6 @@ case "$1" in
                boot_mesg "Starting Unbound DNS Proxy..."
                loadproc /usr/sbin/unbound || exit $?
 
-               # Make own hostname resolveable
-               own_hostname
-
                # Install Safe Search rules when the system is already online
                if [ -e "/var/ipfire/red/active" ]; then
                        update_safe_search