Update update-dns.sh

This commit is contained in:
2023-06-04 21:55:35 -05:00
parent a83ec2f4d6
commit 6474d57b43

View File

@@ -8,8 +8,12 @@ fi
echo
read -n 1 -p "Do you wish to continue changing the DNS? (Y/n) " choice
echo
case "$choice" in
[Nn]) exit 0; ;;
[Nn])
echo -e "${Green}The DNS servers have NOT been updated${Color_Off}"
exit 0
;;
* ) if [ -f /etc/netplan/eth0.yaml ]; then
sed -i 's/10.5.10.5,10.10.10.10/10.10.10.10,10.10.10.11/g' /etc/netplan/eth0.yaml
@@ -31,7 +35,9 @@ case "$choice" in
/usr/sbin/service networking restart
cat /etc/network/interfaces
fi;;
fi
echo -e "${Green}The DNS servers have been updated${Color_Off}"
;;
esac
echo