From bc55e087f0b7d504de9127f79f5b921f9c74c18f Mon Sep 17 00:00:00 2001 From: epgdatacapbon Date: Sat, 26 Oct 2019 18:52:11 +0900 Subject: [PATCH] Added MyDNS.JP Added support for https://www.mydns.jp --- README.md | 1 + README.ssl | 1 + ddclient | 84 ++++++++++++++++++++++++++++++++++++++++ sample-etc_ddclient.conf | 8 ++++ 4 files changed, 94 insertions(+) diff --git a/README.md b/README.md index d162251..54db189 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Dynamic DNS services currently supported include: DNS Made Easy - See https://dnsmadeeasy.com/ for details DonDominio - See https://www.dondominio.com for details NearlyFreeSpeech.net - See https://www.nearlyfreespeech.net/services/dns for details + MyDNS.JP - See https://www.mydns.jp/ for details DDclient now supports many of cable/dsl broadband routers. diff --git a/README.ssl b/README.ssl index 3aa579b..ef149cc 100644 --- a/README.ssl +++ b/README.ssl @@ -11,3 +11,4 @@ ssl support is tested on folowing dynamic dns providers: - freemyip.com - DNS Made Easy - dondominio.com +- www.mydns.jp diff --git a/ddclient b/ddclient index de186ef..c702930 100755 --- a/ddclient +++ b/ddclient @@ -493,6 +493,10 @@ my %variables = ( 'dondominio-common-defaults' => { 'server' => setv(T_FQDNP, 1, 0, 1, 'dondns.dondominio.com', undef), }, + 'mydns-common-defaults' => { + 'server' => setv(T_FQDNP, 1, 0, 1, 'www.mydns.jp', undef), + 'max-interval' => setv(T_DELAY, 0, 0, 1, interval('6d'), 0), + }, ); my %services = ( 'dyndns1' => { @@ -735,6 +739,15 @@ my %services = ( $variables{'service-common-defaults'}, ), }, + 'mydns' => { + 'updateable' => undef, + 'update' => \&nic_mydns_update, + 'examples' => \&nic_mydns_examples, + 'variables' => merge( + $variables{'mydns-common-defaults'}, + $variables{'service-common-defaults'}, + ), + }, ); $variables{'merged'} = merge($variables{'global-defaults'}, $variables{'service-common-defaults'}, @@ -5264,6 +5277,77 @@ sub nic_dnsmadeeasy_update { } } +###################################################################### +## nic_mydns_examples +###################################################################### +sub nic_mydns_examples { + return </i) { + warning("REPLIED: %s", $1); + } + failed("updating %s: Invalid reply.", $h); + } + } +} + ###################################################################### # vim: ai ts=4 sw=4 tw=78 : diff --git a/sample-etc_ddclient.conf b/sample-etc_ddclient.conf index da2619f..55fe1ad 100644 --- a/sample-etc_ddclient.conf +++ b/sample-etc_ddclient.conf @@ -285,3 +285,11 @@ ssl=yes # use ssl-support. Works with # login=your-account-email-address # password=your-generated-password # your-numeric-record-id-1,your-numeric-record-id-2,... + +## +## MyDNS.JP (https://www.mydns.jp/) +## +# protocol=mydns, +# login=my-mydns.jp-login, +# password=my-mydns.jp-password +# myhost.mydns.jp