diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-05-19 21:18:24 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-05-19 21:18:24 -0700 |
commit | 510939d063e212a0114fa2b374c1396994ecfd0f (patch) | |
tree | d2ae7088b26323b5ffe6b963b52d709b27a0d683 | |
parent | fc734a42e6a29774e47f74445e0ebc3cf376efc2 (diff) | |
download | vyatta-cfg-quagga-510939d063e212a0114fa2b374c1396994ecfd0f.tar.gz vyatta-cfg-quagga-510939d063e212a0114fa2b374c1396994ecfd0f.zip |
Fix Bug 4416 Add the ability to configure a specific server for DynDNS
-rw-r--r-- | scripts/dynamic-dns/vyatta-dynamic-dns.pl | 4 | ||||
-rw-r--r-- | templates/service/dns/dynamic/interface/node.tag/service/node.tag/server/node.def | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/dynamic-dns/vyatta-dynamic-dns.pl b/scripts/dynamic-dns/vyatta-dynamic-dns.pl index 30512bae..1d8511c5 100644 --- a/scripts/dynamic-dns/vyatta-dynamic-dns.pl +++ b/scripts/dynamic-dns/vyatta-dynamic-dns.pl @@ -124,8 +124,12 @@ sub dynamicdns_get_values { my $login = $config->returnValue("login"); my $password = $config->returnValue("password"); my @hostnames = $config->returnValues("host-name"); + my $server = $config->returnValue("server"); foreach my $hostname (@hostnames) { $output .= "protocol=$service\n"; + if (defined $server) { + $output .= "server=$server\n"; + } $output .= "max-interval=28d\n"; $output .= "login=$login\n"; $output .= "password='$password'\n"; diff --git a/templates/service/dns/dynamic/interface/node.tag/service/node.tag/server/node.def b/templates/service/dns/dynamic/interface/node.tag/service/node.tag/server/node.def new file mode 100644 index 00000000..b9f195c4 --- /dev/null +++ b/templates/service/dns/dynamic/interface/node.tag/service/node.tag/server/node.def @@ -0,0 +1,2 @@ +help: Set server to send DDNS update to (IP address|hostname) +type: txt |