From 0f7b76630d1c5e065fa94bf47b06a237d84b983d Mon Sep 17 00:00:00 2001 From: George Kranis Date: Sun, 27 Apr 2014 00:44:44 +0300 Subject: [PATCH] Added Duck DNS --- ddclient | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/ddclient b/ddclient index 8c2d527..a8e8bd4 100755 --- a/ddclient +++ b/ddclient @@ -448,6 +448,10 @@ my %variables = ( 'mx' => setv(T_OFQDN, 0, 1, 1, '', undef), 'backupmx' => setv(T_BOOL, 0, 1, 1, 0, undef), }, + 'duckdns-common-defaults' => { + 'server' => setv(T_FQDNP, 1, 0, 1, 'www.duckdns.org', undef), + 'login' => setv(T_LOGIN, 0, 0, 0, 'unused', undef), + }, ); my %services = ( 'dyndns1' => { @@ -613,6 +617,15 @@ my %services = ( $variables{'service-common-defaults'}, ), }, + 'duckdns' => { + 'updateable' => undef, + 'update' => \&nic_duckdns_update, + 'examples' => \&nic_duckdns_examples, + 'variables' => merge( + $variables{'duckdns-common-defaults'}, + $variables{'service-common-defaults'}, + ), + }, ); $variables{'merged'} = merge($variables{'global-defaults'}, $variables{'service-common-defaults'}, @@ -4030,6 +4043,83 @@ sub nic_cloudflare_update { } } +###################################################################### +## nic_duckdns_examples +###################################################################### +sub nic_duckdns_examples { + return <