Create update-dns.sh

This commit is contained in:
2021-06-06 11:58:27 -05:00
parent 0bbcb5bb5b
commit ed9d43e10d

7
update-dns.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
sed -i '/10.10.10.10 10.5.10.5/c\10.10.10.10 10.10.10.11' /etc/network/interfaces
sed -i '/10.5.10.5 10.10.10.10/c\10.10.10.10 10.10.10.11' /etc/network/interfaces
sed -i '/[10.5.10.5,10.10.10.10]/c\[10.10.10.10,10.10.10.11]' /etc/netplan/eth0.yaml
sed -i '/[10.10.10.10,10.5.10.5]/c\[10.10.10.10,10.10.10.11]' /etc/netplan/eth0.yaml