From d22b2ac1db7ca5d93de87e2b02363857e9503a7e Mon Sep 17 00:00:00 2001 From: JMCC Date: Fri, 16 Oct 2020 17:04:31 +0200 Subject: [PATCH] Add Keysystems protocol --- README.md | 1 + ddclient.in | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/README.md b/README.md index bd0cf62..35301a5 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Dynamic DNS services currently supported include: ClouDNS - See https://www.cloudns.net dinahosting - See https://dinahosting.com Gandi - See https://gandi.net + Keysystems - See https://www.domaindiscount24.com/faq/en/dynamic-dns DDclient now supports many of cable/dsl broadband routers. diff --git a/ddclient.in b/ddclient.in index 4ddd505..0f6fea7 100755 --- a/ddclient.in +++ b/ddclient.in @@ -461,6 +461,10 @@ my %variables = ( 'static' => setv(T_BOOL, 0, 1, 0, undef), 'wildcard' => setv(T_BOOL, 0, 1, 0, undef), }, + 'keysystems-common-defaults' => { + 'server' => setv(T_FQDNP, 1, 0, 1, 'dynamicdns.key-systems.net', undef), + 'login' => setv(T_LOGIN, 0, 0, 0, 'unused', undef), + }, ); my %services = ( 'changeip' => { @@ -758,6 +762,15 @@ my %services = ( 'zone' => setv(T_OFQDN, 0, 0, undef, undef), }, }, + 'keysystems' => { + 'updateable' => undef, + 'update' => \&nic_keysystems_update, + 'examples' => \&nic_keysystems_examples, + 'variables' => merge( + $variables{'keysystems-common-defaults'}, + $variables{'service-common-defaults'}, + ), + }, ); $variables{'merged'} = { map({ %{$services{$_}{'variables'}} } keys(%services)), @@ -5787,6 +5800,83 @@ sub nic_gandi_update { } } +###################################################################### +## nic_keysystems_examples +###################################################################### +sub nic_keysystems_examples { + return <