]> git.ipfire.org Git - ddns.git/blobdiff - src/ddns/providers.py
Merge remote-tracking branch 'stevee/spdns.org'
[ddns.git] / src / ddns / providers.py
index 919642fb0022d4dedb90458d0022835f44e1f198..3422cd074cd45f501f7d72aa3ab776cd84df1f1e 100644 (file)
@@ -527,3 +527,21 @@ class DDNSProviderSelfhost(DDNSProvider):
                match = re.search("status=20(0|4)", response.read())
                if not match:
                        raise DDNSUpdateError
+
+
+class DDNSProviderSPDNS(DDNSProviderDynDNS):
+       INFO = {
+               "handle"    : "spdns.org",
+               "name"      : "SPDNS",
+               "website"   : "http://spdns.org/",
+               "protocols" : ["ipv4",]
+       }
+
+       # Detailed information about request and response codes are provided
+       # by the vendor. They are using almost the same mechanism and status
+       # codes as dyndns.org so we can inherit all those stuff.
+       #
+       # http://wiki.securepoint.de/index.php/SPDNS_FAQ
+       # http://wiki.securepoint.de/index.php/SPDNS_Update-Tokens
+
+       url = "https://update.spdns.de/nic/update"