From 361e058dd4a267434933cabdb34c9b48639347fb Mon Sep 17 00:00:00 2001 From: AiutoPcAmico <98831402+AiutoPcAmico@users.noreply.github.com> Date: Sat, 30 Dec 2023 20:48:07 +0100 Subject: [PATCH] Removed systemd-resolved package installation. It seems that Debian don't uses systemd-resolved by default, so I don't need to install. We need only to modify the resolv.conf file. --- setup/system.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/setup/system.sh b/setup/system.sh index 7d46b6ba..d437150a 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -321,18 +321,23 @@ fi # installing bind9 or else apt won't be able to resolve a server to # download bind9 from. -# START AiutoPcAmico modification -apt_install systemd-resolved rm -f /etc/resolv.conf tools/editconf.py /etc/systemd/resolved.conf DNSStubListener=no echo "nameserver 127.0.0.1" > /etc/resolv.conf -# END AiutoPcAmico modification # Restart the DNS services. restart_service bind9 +# START AiutoPcAmico modification +# because i haven't it in Debian 12, I don't restart it. +# Removed systemd-resolved package installation. +# It seems that Debian don't uses systemd-resolved by default, so I don't need to install. +# We need only to modify the resolv.conf file. + # systemctl restart systemd-resolved +# END AiutoPcAmico modification + # ### Fail2Ban Service # Configure the Fail2Ban installation to prevent dumb bruce-force attacks against dovecot, postfix, ssh, etc.