From a2d875b869d01bdc67c9b3af1ac69aa37712a091 Mon Sep 17 00:00:00 2001 From: omgbox Date: Sat, 15 Aug 2015 21:27:38 +0100 Subject: [PATCH] Comodo Secure DNS add https://www.comodo.com/secure-dns/ 8.26.56.26 8.20.247.20 --- openvpn-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 5e8ed1b..1fc1fc6 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -251,7 +251,7 @@ else # DNS case $DNS in 1) - # Obtain the resolvers from resolv.conf and use them for OpenVPN + # Obtain the resolvers from resolv.conf and use them for OpenVPN grep -v '#' /etc/resolv.conf | grep 'nameserver' | grep -E -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | while read line; do sed -i "/;push \"dhcp-option DNS 208.67.220.220\"/a\push \"dhcp-option DNS $line\"" server.conf done @@ -275,6 +275,10 @@ else sed -i 's|;push "dhcp-option DNS 208.67.222.222"|push "dhcp-option DNS 8.8.8.8"|' server.conf sed -i 's|;push "dhcp-option DNS 208.67.220.220"|push "dhcp-option DNS 8.8.4.4"|' server.conf ;; + 7) + sed -i 's|;push "dhcp-option DNS 208.67.222.222"|push "dhcp-option DNS 8.26.56.26"|' server.conf + sed -i 's|;push "dhcp-option DNS 208.67.220.220"|push "dhcp-option DNS 8.20.247.20"|' server.conf + ;; esac # Listen at port 53 too if user wants that if [[ "$ALTPORT" = 'y' ]]; then