#!/bin/bash appAdguardApplyDnsUpdater() { isHeader "Apply DNS Updater (AdGuard)" if ! declare -F updateDNS >/dev/null 2>&1; then isError "updateDNS function not loaded — cannot apply." return 1 fi updateDNS "adguard" "manual" isSuccessful "/etc/resolv.conf updated to use AdGuard 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 }