From 0a3c47fbbc1c6971fe3c714e1d222f405ac4c28d Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 11 Jul 2020 13:49:44 +0530 Subject: [PATCH] updated ubuntu installer to disable systemd-resolved to help novice users. --- DnsServerApp.NETCore/install-ubuntu.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DnsServerApp.NETCore/install-ubuntu.sh b/DnsServerApp.NETCore/install-ubuntu.sh index f084e838..557220e0 100644 --- a/DnsServerApp.NETCore/install-ubuntu.sh +++ b/DnsServerApp.NETCore/install-ubuntu.sh @@ -58,7 +58,14 @@ then echo "Configuring systemd service..." cp $dnsDir/systemd.service /etc/systemd/system/dns.service systemctl enable dns.service >> $installLog 2>&1 + + systemctl disable systemd-resolved >> $installLog 2>&1 + systemctl stop systemd-resolved >> $installLog 2>&1 + systemctl start dns.service >> $installLog 2>&1 + + rm /etc/resolv.conf + echo "nameserver 127.0.0.1" > /etc/resolv.conf fi else if [ -f "/etc/supervisor/conf.d/dns.conf" ]