mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-22 00:39:03 +01:00
Add new DNS option: NextDNS
This commit is contained in:
parent
006167b3c7
commit
7a4f9278e7
@ -294,7 +294,8 @@ function installQuestions () {
|
|||||||
echo " 9) Google (Anycast: worldwide)"
|
echo " 9) Google (Anycast: worldwide)"
|
||||||
echo " 10) Yandex Basic (Russia)"
|
echo " 10) Yandex Basic (Russia)"
|
||||||
echo " 11) AdGuard DNS (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
|
until [[ "$DNS" =~ ^[0-9]+$ ]] && [ "$DNS" -ge 1 ] && [ "$DNS" -le 12 ]; do
|
||||||
read -rp "DNS [1-12]: " -e -i 3 DNS
|
read -rp "DNS [1-12]: " -e -i 3 DNS
|
||||||
if [[ $DNS == 2 ]] && [[ -e /etc/unbound/unbound.conf ]]; then
|
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.130"' >> /etc/openvpn/server.conf
|
||||||
echo 'push "dhcp-option DNS 176.103.130.131"' >> /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
|
echo "push \"dhcp-option DNS $DNS1\"" >> /etc/openvpn/server.conf
|
||||||
if [[ "$DNS2" != "" ]]; then
|
if [[ "$DNS2" != "" ]]; then
|
||||||
echo "push \"dhcp-option DNS $DNS2\"" >> /etc/openvpn/server.conf
|
echo "push \"dhcp-option DNS $DNS2\"" >> /etc/openvpn/server.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user