1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-01 23:57:05 +00:00

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.
This commit is contained in:
AiutoPcAmico 2023-12-30 20:48:07 +01:00
parent 73174d5979
commit 361e058dd4

View File

@ -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.