From 96437dc913e12e531d5d1fedab380e6871c7fd75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Sun, 4 May 2025 19:39:43 +0200 Subject: [PATCH] Set dns.interface during installation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- automated install/basic-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index fda294b4..2e1afe7b 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -99,6 +99,7 @@ IPV6_ADDRESS=${IPV6_ADDRESS} # Give settings their default values. These may be changed by prompts later in the script. QUERY_LOGGING= PRIVACY_LEVEL= +PIHOLE_INTERFACE= # Where old configs go to if a v6 migration is performed V6_CONF_MIGRATION_DIR="/etc/pihole/migration_backup_v6" @@ -2329,6 +2330,10 @@ main() { if [ -n "${PRIVACY_LEVEL}" ]; then setFTLConfigValue "misc.privacylevel" "${PRIVACY_LEVEL}" fi + + if [ -n "${PIHOLE_INTERFACE}" ]; then + setFTLConfigValue "dns.interface" "${PIHOLE_INTERFACE}" + fi fi # Download and compile the aggregated block list