From 191d207700a64f0c7b87cabff5ed54bc63f31b4c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 6 Jun 2021 12:04:52 -0500 Subject: [PATCH] Update update-dns.sh --- update-dns.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update-dns.sh b/update-dns.sh index 451c582..8d94d01 100755 --- a/update-dns.sh +++ b/update-dns.sh @@ -2,6 +2,8 @@ sed -i '/10.10.10.10 10.5.10.5/c\ dns-nameservers 10.10.10.10 10.10.10.11' /etc/network/interfaces sed -i '/10.5.10.5 10.10.10.10/c\ dns-nameservers 10.10.10.10 10.10.10.11' /etc/network/interfaces +/usr/sbin/service networking restart sed -i '/10.5.10.5,10.10.10.10/c\ addresses: [10.10.10.10,10.10.10.11]' /etc/netplan/eth0.yaml sed -i '/10.10.10.10,10.5.10.5/c\ addresses: [10.10.10.10,10.10.10.11]' /etc/netplan/eth0.yaml +/usr/sbin/netplan apply