From 7a4f9278e7535f1272ea3c87b444effea70049bc Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Tue, 3 Mar 2020 23:04:18 +0100 Subject: [PATCH] Add new DNS option: NextDNS --- openvpn-install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 90ea433..4e7c2a1 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -294,7 +294,8 @@ function installQuestions () { echo " 9) Google (Anycast: worldwide)" echo " 10) Yandex Basic (Russia)" echo " 11) AdGuard DNS (Russia)" - echo " 12) Custom" + echo " 12) NextDNS (Worldwide)" + echo " 13) Custom" until [[ "$DNS" =~ ^[0-9]+$ ]] && [ "$DNS" -ge 1 ] && [ "$DNS" -le 12 ]; do read -rp "DNS [1-12]: " -e -i 3 DNS if [[ $DNS == 2 ]] && [[ -e /etc/unbound/unbound.conf ]]; then @@ -780,7 +781,11 @@ ifconfig-pool-persist ipp.txt" >> /etc/openvpn/server.conf echo 'push "dhcp-option DNS 176.103.130.130"' >> /etc/openvpn/server.conf echo 'push "dhcp-option DNS 176.103.130.131"' >> /etc/openvpn/server.conf ;; - 12) # Custom DNS + 12) # NextDNS + echo 'push "dhcp-option DNS 45.90.28.167"' >> /etc/openvpn/server.conf + echo 'push "dhcp-option DNS 45.90.30.167"' >> /etc/openvpn/server.conf + ;; + 13) # Custom DNS echo "push \"dhcp-option DNS $DNS1\"" >> /etc/openvpn/server.conf if [[ "$DNS2" != "" ]]; then echo "push \"dhcp-option DNS $DNS2\"" >> /etc/openvpn/server.conf