diff options
-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 |