#!/bin/bash appPiholeApplyDnsUpdater() { isHeader "Apply DNS Updater (Pi-hole)" if ! declare -F updateDNS >/dev/null 2>&1; then isError "updateDNS function not loaded — cannot apply." return 1 fi updateDNS "pihole" "manual" isSuccessful "/etc/resolv.conf updated to use Pi-hole as the host DNS resolver." # Split-horizon: make app subdomains resolve to the box on the LAN. declare -F setupLocalDnsRewrites >/dev/null 2>&1 && setupLocalDnsRewrites }