summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2015-01-02 18:39:51 +0000
committerAlex Harpin <development@landsofshadow.co.uk>2015-01-02 18:39:51 +0000
commit8a8ab4fb31e75fba4018b8310d7c13de1baff572 (patch)
treeb20c1acaba4748ff5fe6b18164facc1a35fa9e05
parentafeb1675790e34e23b0e08005620873be3867ef6 (diff)
downloadvyatta-cfg-system-8a8ab4fb31e75fba4018b8310d7c13de1baff572.tar.gz
vyatta-cfg-system-8a8ab4fb31e75fba4018b8310d7c13de1baff572.zip
vyatta-cfg-system: add dynamic dns support for afraid.org/freedns
Add support for using the afraid.org dynamic DNS service with VyOS. This requires the updated ddclient package built for VyOS to work correctly as the version currently in squeeze lacks support for the freedns protocol. Bug #287 http://bugzilla.vyos.net/show_bug.cgi?id=287
-rwxr-xr-xscripts/dynamic-dns/vyatta-dynamic-dns.pl1
-rw-r--r--templates/service/dns/dynamic/interface/node.tag/service/node.def4
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/dynamic-dns/vyatta-dynamic-dns.pl b/scripts/dynamic-dns/vyatta-dynamic-dns.pl
index 59495f99..8788730f 100755
--- a/scripts/dynamic-dns/vyatta-dynamic-dns.pl
+++ b/scripts/dynamic-dns/vyatta-dynamic-dns.pl
@@ -109,6 +109,7 @@ sub dynamicdns_get_values {
my @services = $config->listNodes("service");
foreach my $service (@services) {
$config->setLevel("service dns dynamic interface $interface service $service");
+ $service="freedns" if ($service eq "afraid");
$service="dslreports1" if ($service eq "dslreports");
$service="dyndns2" if ($service eq "dyndns");
$service="zoneedit1" if ($service eq "zoneedit");
diff --git a/templates/service/dns/dynamic/interface/node.tag/service/node.def b/templates/service/dns/dynamic/interface/node.tag/service/node.def
index 2bdb796a..0795ceac 100644
--- a/templates/service/dns/dynamic/interface/node.tag/service/node.def
+++ b/templates/service/dns/dynamic/interface/node.tag/service/node.def
@@ -2,7 +2,7 @@ tag:
help: Service being used for Dynamic DNS [REQUIRED]
type: txt
syntax:expression: exec "
- service_array=(dnspark dslreports dyndns easydns namecheap sitelutions zoneedit)
+ service_array=(afraid dnspark dslreports dyndns easydns namecheap sitelutions zoneedit)
service_array_len=${#service_array[*]}
i=0
while [ $i -lt $service_array_len ]; do
@@ -15,7 +15,7 @@ syntax:expression: exec "
exit 1 "
allowed: local -a array ;
- array=(dnspark dslreports dyndns easydns namecheap sitelutions zoneedit);
+ array=(afraid dnspark dslreports dyndns easydns namecheap sitelutions zoneedit);
echo -n ${array[@]}
commit:expression: $VAR(./@/login) != ""; "Set login for service $VAR(./@) to send DDNS updates for interface $VAR(../@)"