From 1ab84d0051b4d94f48af57c5db112a1f262298d8 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 6 Jun 2021 12:01:23 -0500 Subject: [PATCH] Update update-dns.sh --- update-dns.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update-dns.sh b/update-dns.sh index 996e707..0a7551f 100755 --- a/update-dns.sh +++ b/update-dns.sh @@ -1,7 +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.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 -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 +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