diff --git a/update-dns.sh b/update-dns.sh index 010ac44..5a5267f 100755 --- a/update-dns.sh +++ b/update-dns.sh @@ -36,7 +36,8 @@ case "$choice" in sed -i 's/10.2.1.2,10.10.10.5/10.2.1.5,10.2.1.6,10.10.10.5/g' ${netfile} sed -i 's/127.0.0.1,10.10.10.10/10.2.1.5,10.2.1.6,10.10.10.5/g' ${netfile} else - sed -i 's/10.10.10.10,10.10.10.11/10.10.10.10,10.10.10.11,10.2.1.2/g' ${netfile} + sed -i 's/10.10.10.10,10.10.10.11/10.10.10.5,10.2.1.2/g' ${netfile} + sed -i 's/10.10.10.10,10.10.10.11,10.2.1.2/10.10.10.5,10.2.1.2/g' ${netfile} fi /usr/sbin/netplan apply @@ -46,7 +47,8 @@ case "$choice" in if [ "${1}" = "offsite" ]; then sed -i 's/10.10.10.10 10.10.10.11/10.10.10.10 10.10.10.11 10.2.1.2/g' ${netfile} else - sed -i 's/10.10.10.10 10.10.10.11/10.10.10.10 10.10.10.11 10.2.1.2/g' ${netfile} + sed -i 's/10.10.10.10 10.10.10.11/10.10.10.5 10.2.1.2/g' ${netfile} + sed -i 's/10.10.10.10 10.10.10.11 10.2.1.2/10.10.10.5 10.2.1.2/g' ${netfile} fi /usr/sbin/service networking restart