From 1b4c31b82e7af6bff2fcf7dd627ba35ad28269cc Mon Sep 17 00:00:00 2001 From: wimpunk Date: Thu, 19 May 2011 20:31:20 +0000 Subject: [PATCH] Added patch for dtdns-support (#39) git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@125 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- ddclient | 96 ++++++++++++++++++++++++++++++++++++++++ sample-etc_ddclient.conf | 8 ++++ 2 files changed, 104 insertions(+) diff --git a/ddclient b/ddclient index 9771d99..e666ab4 100755 --- a/ddclient +++ b/ddclient @@ -420,6 +420,10 @@ my %variables = ( 'zoneedit-service-common-defaults' => { 'zone' => setv(T_OFQDN, 0, 0, 1, undef, undef), }, + 'dtdns-common-defaults' => { + 'login' => setv(T_LOGIN, 0, 0, 0, 'unused', undef), + 'client' => setv(T_STRING, 0, 1, 1, $program, undef), + }, ); my %services = ( 'dyndns1' => { @@ -545,6 +549,15 @@ my %services = ( $variables{'service-common-defaults'}, ), }, + 'dtdns' => { + 'updateable' => undef, + 'update' => \&nic_dtdns_update, + 'examples' => \&nic_dtdns_examples, + 'variables' => merge( + $variables{'dtdns-common-defaults'}, + $variables{'service-common-defaults'}, + ), + }, ); $variables{'merged'} = merge($variables{'global-defaults'}, $variables{'service-common-defaults'}, @@ -3559,6 +3572,89 @@ sub nic_freedns_update { } } +###################################################################### + +###################################################################### +## nic_dtdns_examples +###################################################################### +sub nic_dtdns_examples { + return <