From e5bf3b99d39bac5390bd780b08585f2897caf86d Mon Sep 17 00:00:00 2001 From: doc Date: Sun, 29 Jun 2025 07:20:14 +0000 Subject: initial commit --- convert.sh | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100755 convert.sh (limited to 'convert.sh') diff --git a/convert.sh b/convert.sh new file mode 100755 index 0000000..f325d0c --- /dev/null +++ b/convert.sh @@ -0,0 +1,62 @@ +#!/bin/bash +set -e + +echo "๐Ÿงน Stopping and disabling AdGuardHome..." +systemctl stop AdGuardHome || true +systemctl disable AdGuardHome || true +rm -f /etc/systemd/system/AdGuardHome.service +rm -rf /opt/AdGuardHome +rm -f /usr/bin/AdGuardHome + +echo "๐Ÿ“ฆ Installing Unbound..." +apt update +apt install -y unbound curl + +echo "๐ŸŒ Fetching root hints..." +curl -o /var/lib/unbound/root.hints https://www.internic.net/domain/named.cache + +echo "๐Ÿ” Setting up hardened Unbound config..." +cat >/etc/unbound/unbound.conf <