From eaf6f1fed4d7bc85c42a9b567fd95dbd31c0aacc Mon Sep 17 00:00:00 2001 From: Nyr Date: Sun, 14 Feb 2016 22:26:10 +0100 Subject: [PATCH] Removed Level 3 DNS For some countries, Level 3 is now hijacking NXDOMAIN responses, so removed. --- openvpn-install.sh | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 49f7617..a95dbac 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -186,11 +186,10 @@ else echo "" echo "What DNS do you want to use with the VPN?" echo " 1) Current system resolvers" - echo " 2) OpenDNS" - echo " 3) Level 3" + echo " 2) Google" + echo " 3) OpenDNS" echo " 4) NTT" echo " 5) Hurricane Electric" - echo " 6) Google" read -p "DNS [1-6]: " -e -i 1 DNS echo "" echo "Finally, tell me your name for the client cert" @@ -250,14 +249,14 @@ ifconfig-pool-persist ipp.txt" > /etc/openvpn/server.conf echo "push \"dhcp-option DNS $line\"" >> /etc/openvpn/server.conf done ;; - 2) + 2) + echo 'push "dhcp-option DNS 8.8.8.8"' >> /etc/openvpn/server.conf + echo 'push "dhcp-option DNS 8.8.4.4"' >> /etc/openvpn/server.conf + ;; + 3) echo 'push "dhcp-option DNS 208.67.222.222"' >> /etc/openvpn/server.conf echo 'push "dhcp-option DNS 208.67.220.220"' >> /etc/openvpn/server.conf ;; - 3) - echo 'push "dhcp-option DNS 4.2.2.2"' >> /etc/openvpn/server.conf - echo 'push "dhcp-option DNS 4.2.2.4"' >> /etc/openvpn/server.conf - ;; 4) echo 'push "dhcp-option DNS 129.250.35.250"' >> /etc/openvpn/server.conf echo 'push "dhcp-option DNS 129.250.35.251"' >> /etc/openvpn/server.conf @@ -265,10 +264,6 @@ ifconfig-pool-persist ipp.txt" > /etc/openvpn/server.conf 5) echo 'push "dhcp-option DNS 74.82.42.42"' >> /etc/openvpn/server.conf ;; - 6) - echo 'push "dhcp-option DNS 8.8.8.8"' >> /etc/openvpn/server.conf - echo 'push "dhcp-option DNS 8.8.4.4"' >> /etc/openvpn/server.conf - ;; esac echo "keepalive 10 120 comp-lzo