aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislas Lange <git@slange.me>2023-01-22 12:12:06 +0100
committerStanislas Lange <git@slange.me>2023-01-22 12:12:06 +0100
commit3c7c8535d0ba791c6ec2ef3517ca771513b00dc1 (patch)
treec91112dd4e2611b38ece7c4b197efbdf45e37d73
parentd02b75367792f63f71fb1bceca467245649f6da3 (diff)
Set Cloudflare as default DNS
Might help https://github.com/angristan/wireguard-install/issues/377
-rw-r--r--wireguard-install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/wireguard-install.sh b/wireguard-install.sh
index 7b4ffe8..f13b88e 100644
--- a/wireguard-install.sh
+++ b/wireguard-install.sh
@@ -142,10 +142,10 @@ function installQuestions() {
# 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
- read -rp "First DNS resolver to use for the clients: " -e -i 94.140.14.14 CLIENT_DNS_1
+ read -rp "First DNS resolver to use for the clients: " -e -i 1.1.1.1 CLIENT_DNS_1
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
- read -rp "Second DNS resolver to use for the clients (optional): " -e -i 94.140.15.15 CLIENT_DNS_2
+ read -rp "Second DNS resolver to use for the clients (optional): " -e -i 1.0.0.1 CLIENT_DNS_2
if [[ ${CLIENT_DNS_2} == "" ]]; then
CLIENT_DNS_2="${CLIENT_DNS_1}"
fi