Another dns resolver

This commit is contained in:
Bob Mottram 2017-10-15 10:51:49 +01:00
parent 45acf8738a
commit f5ddd9ce48
1 changed files with 7 additions and 3 deletions

View File

@ -135,7 +135,7 @@ function pihole_change_upstream_dns {
data=$(tempfile 2>/dev/null) data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15 trap "rm -f $data" 0 1 2 5 15
dialog --backtitle $"Ad Blocker Upstream DNS" \ dialog --backtitle $"Ad Blocker Upstream DNS" \
--radiolist $"Pick a domain name service (DNS):" 27 50 18 \ --radiolist $"Pick a domain name service (DNS):" 28 50 19 \
1 $"Digital Courage" on \ 1 $"Digital Courage" on \
2 $"German Privacy Foundation 1" off \ 2 $"German Privacy Foundation 1" off \
3 $"German Privacy Foundation 2" off \ 3 $"German Privacy Foundation 2" off \
@ -153,7 +153,8 @@ function pihole_change_upstream_dns {
15 $"Freie Unzensierte" off \ 15 $"Freie Unzensierte" off \
16 $"DNS.Watch" off \ 16 $"DNS.Watch" off \
17 $"uncensoreddns.org" off \ 17 $"uncensoreddns.org" off \
18 $"Google" off 2> $data 18 $"Lorraine Data Network" off \
19 $"Google" off 2> $data
sel=$? sel=$?
case $sel in case $sel in
1) exit 1;; 1) exit 1;;
@ -211,7 +212,10 @@ function pihole_change_upstream_dns {
17) PIHOLE_DNS1='91.239.100.100' 17) PIHOLE_DNS1='91.239.100.100'
PIHOLE_DNS2='89.233.43.71' PIHOLE_DNS2='89.233.43.71'
;; ;;
18) PIHOLE_DNS1='8.8.8.8' 18) PIHOLE_DNS1='80.67.188.188'
PIHOLE_DNS2='89.234.141.66'
;;
19) PIHOLE_DNS1='8.8.8.8'
PIHOLE_DNS2='4.4.4.4' PIHOLE_DNS2='4.4.4.4'
dialog --title $"WARNING" \ dialog --title $"WARNING" \
--msgbox $"\nGoogle's main purpose for providing DNS resolvers is to spy upon people and know which sites they are visiting.\n\nThis is something to consider, and you should only really be using Google DNS as a last resort if other resolvers are unavailable." 12 60 --msgbox $"\nGoogle's main purpose for providing DNS resolvers is to spy upon people and know which sites they are visiting.\n\nThis is something to consider, and you should only really be using Google DNS as a last resort if other resolvers are unavailable." 12 60