Support new range of dynamic dns services

This commit is contained in:
Bob Mottram 2017-05-16 17:34:44 +01:00
parent a4956289ec
commit d0bdcc54df
1 changed files with 66 additions and 30 deletions

View File

@ -253,43 +253,79 @@ function choose_dynamic_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 $"Freedombone Configuration" \ dialog --backtitle $"Freedombone Configuration" \
--radiolist $"Choose Dynamic DNS provider:" 23 40 23 \ --radiolist $"Choose Dynamic DNS provider:" 40 40 40 \
1 dyndns off \ 1 dyn.com off \
2 freedns on \ 2 freedns.afraid.org on \
3 zoneedit off \ 3 zoneedit.com off \
4 no-ip off \ 4 no-ip.com off \
5 easydns off \ 5 easydns.com off \
6 tzo off \ 6 tzo.com off \
7 3322 off \ 7 3322.org off \
8 dnsomatic off \ 8 dnsomatic.com off \
9 tunnelbroker off \ 9 dns.he.net off \
10 dns.he.net off \ 10 tunnelbroker.net off \
11 dynsip off \ 11 dynsip.org off \
12 sitelutions off \ 12 sitelutions.com off \
13 dnsexit off \ 13 dnsexit.com off \
14 changeip off \ 14 changeip.com off \
15 none off 2> $data 15 zerigo.com off \
16 dhis.org off \
17 nsupdate.info off \
18 duckdns.org off \
19 loopia.com off \
20 namecheap.com off \
21 domains.google.com off \
22 ovh.com off \
23 dtdns.com off \
24 giradns.com off \
25 duiadns.net off \
26 ddnss.de off \
27 dynv6.com off \
28 ipv4.dynv6.com off \
29 default@spdyn.de off \
30 strato.com off \
31 freemyip.com off \
32 cloudxns.net off \
33 none off 2> $data
sel=$? sel=$?
case $sel in case $sel in
1) exit 1;; 1) exit 1;;
255) exit 1;; 255) exit 1;;
esac esac
case $(cat $data) in case $(cat $data) in
1) DDNS_PROVIDER="default@dyndns.org";; 1) DDNS_PROVIDER="default@www.dyn.com";;
2) DDNS_PROVIDER="default@freedns.afraid.org";; 2) DDNS_PROVIDER="default@freedns.afraid.org";;
3) DDNS_PROVIDER="default@zoneedit.com";; 3) DDNS_PROVIDER="default@www.zoneedit.com";;
4) DDNS_PROVIDER="default@no-ip.com";; 4) DDNS_PROVIDER="default@www.no-ip.com";;
5) DDNS_PROVIDER="default@easydns.com";; 5) DDNS_PROVIDER="default@www.easydns.com";;
6) DDNS_PROVIDER="default@tzo.com";; 6) DDNS_PROVIDER="default@www.tzo.com";;
7) DDNS_PROVIDER="dyndns@3322.org";; 7) DDNS_PROVIDER="default@www.3322.org";;
8) DDNS_PROVIDER="default@dnsomatic.com";; 8) DDNS_PROVIDER="default@www.dnsomatic.com";;
9) DDNS_PROVIDER="ipv6tb@he.net";; 9) DDNS_PROVIDER="default@dns.he.net";;
10) DDNS_PROVIDER="dyndns@he.net";; 10) DDNS_PROVIDER="default@www.tunnelbroker.net";;
11) DDNS_PROVIDER="default@dynsip.org";; 11) DDNS_PROVIDER="default@www.dynsip.org";;
12) DDNS_PROVIDER="default@sitelutions.com";; 12) DDNS_PROVIDER="default@www.sitelutions.com";;
13) DDNS_PROVIDER="default@dnsexit.com";; 13) DDNS_PROVIDER="default@www.dnsexit.com";;
14) DDNS_PROVIDER="default@changeip.com";; 14) DDNS_PROVIDER="default@www.changeip.com";;
15) DDNS_PROVIDER="none";; 15) DDNS_PROVIDER="default@www.zerigo.com";;
16) DDNS_PROVIDER="default@www.dhis.org";;
17) DDNS_PROVIDER="default@nsupdate.info";;
18) DDNS_PROVIDER="default@duckdns.org";;
19) DDNS_PROVIDER="default@www.loopia.com";;
20) DDNS_PROVIDER="default@www.namecheap.com";;
21) DDNS_PROVIDER="default@domains.google.com";;
22) DDNS_PROVIDER="default@www.ovh.com";;
23) DDNS_PROVIDER="default@www.dtdns.com";;
24) DDNS_PROVIDER="default@giradns.com";;
25) DDNS_PROVIDER="default@www.duiadns.net";;
26) DDNS_PROVIDER="default@ddnss.de";;
27) DDNS_PROVIDER="default@dynv6.com";;
28) DDNS_PROVIDER="default@ipv4.dynv6.com";;
29) DDNS_PROVIDER="default@spdyn.de";;
30) DDNS_PROVIDER="default@www.strato.com";;
31) DDNS_PROVIDER="default@freemyip.com";;
32) DDNS_PROVIDER="default@www.cloudxns.net";;
33) DDNS_PROVIDER="none";;
255) exit 1;; 255) exit 1;;
esac esac
save_configuration_values save_configuration_values