mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-02-22 15:57:10 +00:00
updated ubuntu installer to disable systemd-resolved to help novice users.
This commit is contained in:
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user