summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rwxr-xr-xscripts/dynamic-dns/vyatta-dynamic-dns.pl8
2 files changed, 10 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index ab8230ea..40916f0b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+vyatta-cfg-system (0.19.128) unstable; urgency=low
+
+ * Fix dyndns failure caused by commit:
+ 5d27f2ef302dc600ea737e9af4151041aa11a2e0
+
+ -- John Southworth <john.southworth@vyatta.com> Mon, 21 Nov 2011 08:19:57 -0800
+
vyatta-cfg-system (0.19.127) unstable; urgency=low
* Adding CLI option for domain overrides for DNS forwarding, bug id
diff --git a/scripts/dynamic-dns/vyatta-dynamic-dns.pl b/scripts/dynamic-dns/vyatta-dynamic-dns.pl
index 290b0543..69592593 100755
--- a/scripts/dynamic-dns/vyatta-dynamic-dns.pl
+++ b/scripts/dynamic-dns/vyatta-dynamic-dns.pl
@@ -107,11 +107,9 @@ sub dynamicdns_get_values {
my @services = $config->listNodes("service");
foreach my $service (@services) {
$config->setLevel("service dns dynamic interface $interface service $service");
- switch ($service) {
- case "dslreports" {$service="dslreports1";}
- case "dyndns" {$service="dyndns2";}
- case "zoneedit" {$service="zoneedit1";}
- }
+ $service="dslreports1" if ($service eq "dslreports");
+ $service="dyndns2" if ($service eq "dyndns");
+ $service="zoneedit1" if ($service eq "zoneedit");
my $login = $config->returnValue("login");
my $password = $config->returnValue("password");
my @hostnames = $config->returnValues("host-name");