diff --git a/update-dns.sh b/update-dns.sh index 3fc185b..6bf3c99 100755 --- a/update-dns.sh +++ b/update-dns.sh @@ -16,10 +16,10 @@ case "$choice" in sed -i '/10.10.10.10,10.10.10.11/c\ addresses: [10.20.20.20,10.10.10.10,10.10.10.11]' /etc/netplan/eth0.yaml /usr/sbin/netplan apply else - sed -i '/10.10.10.10 10.5.10.5/c\ dns-nameservers 10.20.20.20 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.20.20.20 10.10.10.10 10.10.10.11' /etc/network/interfaces - sed -i '/10.10.10.2 10.10.10.3/c\ dns-nameservers 10.20.20.20 10.10.10.10 10.10.10.11' /etc/network/interfaces - sed -i '/10.10.10.10 10.10.10.11/c\ dns-nameservers 10.20.20.20 10.10.10.10 10.10.10.11' /etc/network/interfaces + sed -i '/10.10.10.10 10.5.10.5/c\dns-nameservers 10.20.20.20 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.20.20.20 10.10.10.10 10.10.10.11' /etc/network/interfaces + sed -i '/10.10.10.2 10.10.10.3/c\dns-nameservers 10.20.20.20 10.10.10.10 10.10.10.11' /etc/network/interfaces + sed -i '/10.10.10.10 10.10.10.11/c\dns-nameservers 10.20.20.20 10.10.10.10 10.10.10.11' /etc/network/interfaces /usr/sbin/service networking restart fi;; esac