X-Git-Url: http://git.ipfire.org/?p=ddns.git;a=blobdiff_plain;f=src%2Fddns%2Fproviders.py;h=3927808b19cb494b279623e9022ad973295323ac;hp=512d663480361c58c05fe45f72957e26213c7c18;hb=90663439cb088d3cfa49c20e39f1aed37c913b07;hpb=4ab83cf9bb512d4064e52afebb2e3cf9897e45b3;ds=sidebyside diff --git a/src/ddns/providers.py b/src/ddns/providers.py index 512d663..3927808 100644 --- a/src/ddns/providers.py +++ b/src/ddns/providers.py @@ -772,6 +772,30 @@ class DDNSProviderNsupdateINFO(DDNSProtocolDynDNS2, DDNSProvider): return data +class DDNSProviderOpenDNS(DDNSProtocolDynDNS2, DDNSProvider): + handle = "opendns.com" + name = "OpenDNS" + website = "http://www.opendns.com" + + # Detailed information about the update request and possible + # response codes can be obtained from here: + # https://support.opendns.com/entries/23891440 + + url = "https://updates.opendns.com/nic/update" + + @property + def proto(self): + return self.get("proto") + + def _prepare_request_data(self): + data = { + "hostname" : self.hostname, + "myip" : self.get_address(self.proto) + } + + return data + + class DDNSProviderOVH(DDNSProtocolDynDNS2, DDNSProvider): handle = "ovh.com" name = "OVH"