Create update-dns.sh
This commit is contained in:
7
update-dns.sh
Executable file
7
update-dns.sh
Executable 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
|
||||
Reference in New Issue
Block a user