Interactively pick a domain name service
This commit is contained in:
parent
9787e95171
commit
de028e0278
|
@ -571,6 +571,84 @@ function interactive_configuration {
|
|||
esac
|
||||
save_configuration_file
|
||||
|
||||
data=$(tempfile 2>/dev/null)
|
||||
trap "rm -f $data" 0 1 2 5 15
|
||||
dialog --backtitle "Freedombone Configuration" \
|
||||
--radiolist "Pick a domain name service (DNS):" 15 40 16 \
|
||||
1 "Digital Courage" on \
|
||||
2 "German Privacy Foundation 1" off \
|
||||
3 "German Privacy Foundation 2" off \
|
||||
4 "Chaos Computer Club" off \
|
||||
5 "ClaraNet" off \
|
||||
6 "OpenNIC 1" off \
|
||||
7 "OpenNIC 2" off \
|
||||
8 "OpenNIC 3" off \
|
||||
9 "OpenNIC 3" off \
|
||||
10 "OpenNIC 4" off \
|
||||
11 "OpenNIC 5" off \
|
||||
12 "OpenNIC 6" off \
|
||||
13 "PowerNS" off \
|
||||
14 "ValiDOM" off \
|
||||
15 "Freie Unzensierte" off \
|
||||
16 "Google" off 2> $data
|
||||
sel=$?
|
||||
case $sel in
|
||||
1) exit 0;;
|
||||
255) exit 0;;
|
||||
esac
|
||||
case $(cat $data) in
|
||||
1) NAMESERVER1='85.214.73.63'
|
||||
NAMESERVER2='213.73.91.35'
|
||||
;;
|
||||
2) NAMESERVER1='87.118.100.175'
|
||||
NAMESERVER2='94.75.228.29'
|
||||
;;
|
||||
3) NAMESERVER1='85.25.251.254'
|
||||
NAMESERVER2='2.141.58.13'
|
||||
;;
|
||||
4) NAMESERVER1='213.73.91.35'
|
||||
NAMESERVER2='85.214.73.63'
|
||||
;;
|
||||
5) NAMESERVER1='212.82.225.7'
|
||||
NAMESERVER2='212.82.226.212'
|
||||
;;
|
||||
6) NAMESERVER1='58.6.115.42'
|
||||
NAMESERVER2='58.6.115.43'
|
||||
;;
|
||||
7) NAMESERVER1='119.31.230.42'
|
||||
NAMESERVER2='200.252.98.162'
|
||||
;;
|
||||
8) NAMESERVER1='217.79.186.148'
|
||||
NAMESERVER2='81.89.98.6'
|
||||
;;
|
||||
9) NAMESERVER1='78.159.101.37'
|
||||
NAMESERVER2='203.167.220.153'
|
||||
;;
|
||||
10) NAMESERVER1='82.229.244.191'
|
||||
NAMESERVER2='82.229.244.191'
|
||||
;;
|
||||
11) NAMESERVER1='216.87.84.211'
|
||||
NAMESERVER2='66.244.95.20'
|
||||
;;
|
||||
12) NAMESERVER1='207.192.69.155'
|
||||
NAMESERVER2='72.14.189.120'
|
||||
;;
|
||||
13) NAMESERVER1='194.145.226.26'
|
||||
NAMESERVER2='77.220.232.44'
|
||||
;;
|
||||
14) NAMESERVER1='78.46.89.147'
|
||||
NAMESERVER2='88.198.75.145'
|
||||
;;
|
||||
15) NAMESERVER1='85.25.149.144'
|
||||
NAMESERVER2='87.106.37.196'
|
||||
;;
|
||||
16) NAMESERVER1='8.8.8.8'
|
||||
NAMESERVER2='4.4.4.4'
|
||||
;;
|
||||
255) exit 0;;
|
||||
esac
|
||||
save_configuration_file
|
||||
|
||||
data=$(tempfile 2>/dev/null)
|
||||
trap "rm -f $data" 0 1 2 5 15
|
||||
dialog --backtitle "Freedombone Configuration" \
|
||||
|
|
Loading…
Reference in New Issue