From d71beb0f7f19ec7a365f17e5ba139ee5cb241d81 Mon Sep 17 00:00:00 2001 From: xlammertink Date: Fri, 3 Jan 2020 10:17:04 +0100 Subject: [PATCH] Added OVH DynHost support --- README.md | 51 ++++++++++++------------ RELEASENOTE | 1 + ddclient | 86 ++++++++++++++++++++++++++++++++++++++++ sample-etc_ddclient.conf | 9 +++++ 4 files changed, 122 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 324a955..b156f2e 100644 --- a/README.md +++ b/README.md @@ -8,32 +8,33 @@ on many dynamic DNS services. Dynamic DNS services currently supported include: - DynDNS.com - See http://www.dyndns.com for details on obtaining a free account. - Hammernode - See http://www.hn.org for details on obtaining a free account. - Zoneedit - See http://www.zoneedit.com for details. - EasyDNS - See http://www.easydns.com for details. - NameCheap - See http://www.namecheap.com for details - ConCont - See http://www.dydns.za.net for details - DnsPark - See http://www.dnspark.com for details - DslReports - See http://www.dslreports.com for details - Sitelutions - See http://www.sitelutions.com for details - Loopia - See http://www.loopia.se for details - Noip - See http://www.noip.com/ for details - Freedns - See http://freedns.afraid.org/ for details - ChangeIP - See http://www.changeip.com/ for details - dtdns - See http://www.dtdns.com/ for details - 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 - Freemyip - See https://freemyip.com for details - woima.fi - See https://woima.fi/ for details - Yandex - See https://domain.yandex.com/ for details - DNS Made Easy - See https://dnsmadeeasy.com/ for details - DonDominio - See https://www.dondominio.com for details + DynDNS.com - See http://www.dyndns.com for details on obtaining a free account. + Hammernode - See http://www.hn.org for details on obtaining a free account. + Zoneedit - See http://www.zoneedit.com for details. + EasyDNS - See http://www.easydns.com for details. + NameCheap - See http://www.namecheap.com for details + ConCont - See http://www.dydns.za.net for details + DnsPark - See http://www.dnspark.com for details + DslReports - See http://www.dslreports.com for details + Sitelutions - See http://www.sitelutions.com for details + Loopia - See http://www.loopia.se for details + Noip - See http://www.noip.com/ for details + Freedns - See http://freedns.afraid.org/ for details + ChangeIP - See http://www.changeip.com/ for details + dtdns - See http://www.dtdns.com/ for details + 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 + Freemyip - See https://freemyip.com for details + woima.fi - See https://woima.fi/ for details + Yandex - See https://domain.yandex.com/ for details + 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 - dnsexit - See https://dnsexit.com/ for details + MyDNS.JP - See https://www.mydns.jp/ for details + dnsexit - See https://dnsexit.com/ for details + OVH - See https://www.ovh.com for details DDclient now supports many of cable/dsl broadband routers. diff --git a/RELEASENOTE b/RELEASENOTE index 560d4e2..9d621e1 100644 --- a/RELEASENOTE +++ b/RELEASENOTE @@ -7,6 +7,7 @@ A detailed overview can be found in ChangeLog but here's a quick overview: * adding configurable TTL to Cloudflare * added support for woima.fi dyndns service * added support for google domain + * added support for OVH DynHost A very big thank you for everyone who created a pull request on github and for everyone who helped to fix the little issues caused by the new providers. diff --git a/ddclient b/ddclient index c3e1de9..0582bd2 100755 --- a/ddclient +++ b/ddclient @@ -533,6 +533,12 @@ my %variables = ( 'server' => setv(T_FQDNP, 0, 1, 1, 'update.dnsexit.com', undef), 'script' => setv(T_STRING, 0, 1, 1, '/RemoteUpdate.sv', undef), }, + 'ovh-common-defaults' => { + 'server' => setv(T_FQDNP, 1, 0, 1, 'www.ovh.com', undef), + 'script' => setv(T_STRING, 1, 1, 1, '/nic/update', undef), + 'login' => setv(T_LOGIN, 1, 0, 1, '', undef), + 'password' => setv(T_PASSWD, 1, 0, 1, '', undef), + }, ); my %services = ( 'dyndns1' => { @@ -793,6 +799,15 @@ my %services = ( $variables{'service-common-defaults'}, ), }, + 'ovh' => { + 'updateable' => undef, + 'update' => \&nic_ovh_update, + 'examples' => \&nic_ovh_examples, + 'variables' => merge( + $variables{'ovh-common-defaults'}, + $variables{'service-common-defaults'}, + ), + }, ); $variables{'merged'} = merge($variables{'global-defaults'}, $variables{'service-common-defaults'}, @@ -5772,6 +5787,77 @@ sub nic_dnsexit_update { } } +###################################################################### +## nic_ovh_examples +###################################################################### +sub nic_ovh_examples { + return <