mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-01 03:02:35 +00:00
Update AdGuard default public DNS addresses
- Since September 2020, AdGuard public DNS servers have moved to new address. See here - https://adguard.com/en/blog/adguard-dns-new-addresses.html
This commit is contained in:
parent
af935850cd
commit
78c019f2cf
@ -99,10 +99,10 @@ function installQuestions() {
|
|||||||
|
|
||||||
# Adguard DNS by default
|
# Adguard DNS by default
|
||||||
until [[ ${CLIENT_DNS_1} =~ ^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ ]]; do
|
until [[ ${CLIENT_DNS_1} =~ ^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ ]]; do
|
||||||
read -rp "First DNS resolver to use for the clients: " -e -i 176.103.130.130 CLIENT_DNS_1
|
read -rp "First DNS resolver to use for the clients: " -e -i 94.140.14.14 CLIENT_DNS_1
|
||||||
done
|
done
|
||||||
until [[ ${CLIENT_DNS_2} =~ ^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ ]]; do
|
until [[ ${CLIENT_DNS_2} =~ ^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ ]]; do
|
||||||
read -rp "Second DNS resolver to use for the clients (optional): " -e -i 176.103.130.131 CLIENT_DNS_2
|
read -rp "Second DNS resolver to use for the clients (optional): " -e -i 94.140.15.15 CLIENT_DNS_2
|
||||||
if [[ ${CLIENT_DNS_2} == "" ]]; then
|
if [[ ${CLIENT_DNS_2} == "" ]]; then
|
||||||
CLIENT_DNS_2="${CLIENT_DNS_1}"
|
CLIENT_DNS_2="${CLIENT_DNS_1}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user