From d2e601bc60d090c569f459c883819c97448d4e7d Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 14 Dec 2021 16:01:09 +0100 Subject: [PATCH] Add another DNS --- arch-config/scripts/pieces/wireguard-add-route-dns.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch-config/scripts/pieces/wireguard-add-route-dns.sh b/arch-config/scripts/pieces/wireguard-add-route-dns.sh index db81bd83..b1f902c7 100755 --- a/arch-config/scripts/pieces/wireguard-add-route-dns.sh +++ b/arch-config/scripts/pieces/wireguard-add-route-dns.sh @@ -36,10 +36,13 @@ for file in "${conffiles[@]}"; do # TODO tables do not work as intended #awk 'NR==5{print "PostUp = ip route add 192.168.1.0/24 via 192.168.86.1 metric 10 table 7"}NR==5{print "PreDown = ip route flush table 7"}1' "$file" > "${file}.tmp" # NOTE adds a dns to all configs - awk 'NR==4{print "DNS = 172.16.52.5"}1' "$file" > "${file}.tmp" + awk 'NR==4{print "DNS = 172.16.16.5"}1' "$file" > "${file}.tmp" mv "${file}.tmp" "$file" # NOTE adds a dns to all configs - awk 'NR==5{print "DNS = 172.16.16.1"}1' "$file" > "${file}.tmp" + awk 'NR==5{print "DNS = 172.16.52.5"}1' "$file" > "${file}.tmp" + mv "${file}.tmp" "$file" + # NOTE adds a dns to all configs + awk 'NR==6{print "DNS = 172.16.16.1"}1' "$file" > "${file}.tmp" mv "${file}.tmp" "$file" # wifi #awk 'NR==6{print "PostUp = ip route add 192.168.1.0/24 via 172.16.52.1 metric 20 table 7"}1' "$file" > "${file}.tmp"