Update update-dns.sh

This commit is contained in:
2021-06-06 12:04:52 -05:00
parent 6427c64e58
commit 191d207700

View File

@@ -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