From: Stefan Schantl Date: Mon, 16 Jun 2014 15:56:52 +0000 (+0200) Subject: Add OVH as new provider. X-Git-Tag: 001~42 X-Git-Url: http://git.ipfire.org/?p=oddments%2Fddns.git;a=commitdiff_plain;h=a508bda63c27976d3a7e6065ac1c6233a0af79b5 Add OVH as new provider. --- diff --git a/ddns.conf.sample b/ddns.conf.sample index 3d08267..bc41f83 100644 --- a/ddns.conf.sample +++ b/ddns.conf.sample @@ -44,6 +44,11 @@ # username = user # password = pass +# [test.ovh.com] +# provider = ovh.com +# username = user +# password = pass + # [test.selfhost.de] # provider = selfhost.de # username = user diff --git a/src/ddns/__init__.py b/src/ddns/__init__.py index f731887..30a1b8a 100644 --- a/src/ddns/__init__.py +++ b/src/ddns/__init__.py @@ -98,6 +98,7 @@ class DDNSCore(object): DDNSProviderFreeDNSAfraidOrg, DDNSProviderNOIP, DDNSProviderLightningWireLabs, + DDNSProviderOVH, DDNSProviderSelfhost, DDNSProviderSPDNS, DDNSProviderVariomedia, diff --git a/src/ddns/providers.py b/src/ddns/providers.py index 9eea16d..e936d72 100644 --- a/src/ddns/providers.py +++ b/src/ddns/providers.py @@ -486,6 +486,30 @@ class DDNSProviderNOIP(DDNSProviderDynDNS): return data +class DDNSProviderOVH(DDNSProviderDynDNS): + INFO = { + "handle" : "ovh.com", + "name" : "OVH", + "website" : "http://www.ovh.com/", + "protocols" : ["ipv4",] + } + + # OVH only provides very limited information about how to + # update a DynDNS host. They only provide the update url + # on the their german subpage. + # + # http://hilfe.ovh.de/DomainDynHost + + url = "https://www.ovh.com/nic/update" + + def _prepare_request_data(self): + data = { + "hostname" : self.hostname, + "myip" : self.get_address("ipv4"), + "system" : "dyndns", + } + + class DDNSProviderSelfhost(DDNSProvider): INFO = { "handle" : "selfhost.de",