From 0f80d071db7f4727cec7d9652422101c70693f05 Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Sun, 20 Mar 2022 22:12:02 +0100 Subject: [PATCH] remove elaborate dns config, simply delete resolv.conf symlink --- conf/NetworkManager.conf | 2 -- setup/system.sh | 8 +++----- 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 conf/NetworkManager.conf diff --git a/conf/NetworkManager.conf b/conf/NetworkManager.conf deleted file mode 100644 index 72c85bcf..00000000 --- a/conf/NetworkManager.conf +++ /dev/null @@ -1,2 +0,0 @@ -[main] -dns=unbound diff --git a/setup/system.sh b/setup/system.sh index 0d433463..2470c19e 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -323,15 +323,13 @@ apt_install unbound python3-unbound bind9-dnsutils # Configure unbound 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 -tools/editconf.py /etc/systemd/resolv.conf \ +rm -f /etc/resolv.conf +tools/editconf.py /etc/systemd/resolved.conf \ DNS=127.0.0.1 \ DNSSEC=yes \ DNSStubListener=no +echo "nameserver 127.0.0.1" > /etc/resolv.conf # Restart the DNS services.