mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
remove elaborate dns config, simply delete resolv.conf symlink
This commit is contained in:
parent
640751b606
commit
0f80d071db
@ -1,2 +0,0 @@
|
|||||||
[main]
|
|
||||||
dns=unbound
|
|
@ -323,15 +323,13 @@ apt_install unbound python3-unbound bind9-dnsutils
|
|||||||
# Configure unbound
|
# Configure unbound
|
||||||
cp -f conf/unbound.conf /etc/unbound/unbound.conf.d/miabunbound.conf
|
cp -f conf/unbound.conf /etc/unbound/unbound.conf.d/miabunbound.conf
|
||||||
|
|
||||||
# Configure network manager
|
|
||||||
mkdir /etc/NetworkManager/conf.d
|
|
||||||
cp -f conf/NetworkManager.conf /etc/NetworkManager/conf.d/unbound.conf
|
|
||||||
|
|
||||||
# Modify systemd settings
|
# Modify systemd settings
|
||||||
tools/editconf.py /etc/systemd/resolv.conf \
|
rm -f /etc/resolv.conf
|
||||||
|
tools/editconf.py /etc/systemd/resolved.conf \
|
||||||
DNS=127.0.0.1 \
|
DNS=127.0.0.1 \
|
||||||
DNSSEC=yes \
|
DNSSEC=yes \
|
||||||
DNSStubListener=no
|
DNSStubListener=no
|
||||||
|
echo "nameserver 127.0.0.1" > /etc/resolv.conf
|
||||||
|
|
||||||
# Restart the DNS services.
|
# Restart the DNS services.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user