From 571bd5460a53363e9711481327f1a238a8db587f Mon Sep 17 00:00:00 2001 From: epgdatacapbon Date: Sun, 10 Jan 2016 18:19:31 +0900 Subject: [PATCH] Added MyDNS.JP --- README.md | 3 +- ddclient | 76 ++++++++++++++++++++++++++++++++++++++++ sample-etc_ddclient.conf | 8 +++++ 3 files changed, 86 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4560eeb..0cfb76a 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,9 @@ Dynamic DNS services currently supported include: nsupdate - See nsupdate(1) and ddns-confgen(8) for details CloudFlare - See https://www.cloudflare.com/ for details Google - See http://www.google.com/domains for details - Duckdns - See https://duckdns.org/ for details + Duckdns - See https://duckdns.org/ for details woima.fi - See https://woima.fi/ for details + MyDNS.JP - See http://www.mydns.jp/ for details DDclient now supports many of cable/dsl broadband routers. diff --git a/ddclient b/ddclient index a2805e8..419cce3 100755 --- a/ddclient +++ b/ddclient @@ -477,6 +477,11 @@ my %variables = ( 'warned-min-interval' => setv(T_ANY, 0, 1, 0, 0, undef), 'warned-min-error-interval' => setv(T_ANY, 0, 1, 0, 0, undef), }, + 'mydns-common-defaults' => { + 'min-interval' => setv(T_DELAY, 0, 0, 1, interval('30s'), 0), + 'max-interval' => setv(T_DELAY, 0, 0, 1, interval('6d'), 0), + 'server' => setv(T_FQDNP, 1, 0, 1, 'www.mydns.jp', undef), + }, ); my %services = ( 'dyndns1' => { @@ -670,6 +675,18 @@ my %services = ( $variables{'woima-service-common-defaults'}, ), }, + 'mydns' => { + 'updateable' => undef, + 'update' => \&nic_mydns_update, + 'examples' => \&nic_mydns_examples, + 'variables' => merge( + { 'server' => setv(T_FQDNP, 1, 0, 1, 'www.mydns.jp', undef), }, + ), + 'variables' => merge( + $variables{'mydns-common-defaults'}, + $variables{'service-common-defaults'}, + ), + }, ); $variables{'merged'} = merge($variables{'global-defaults'}, $variables{'service-common-defaults'}, @@ -4480,6 +4497,65 @@ sub nic_woima_update { } } +###################################################################### +## nic_mydns_examples +###################################################################### +sub nic_mydns_examples { + return <