]> git.ipfire.org Git - ddns.git/commitdiff
Add support for he.net
authorJhon Crowley <jcrowley@biznetix.net>
Sun, 11 Jul 2021 09:36:37 +0000 (11:36 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 11 Jul 2021 09:36:37 +0000 (11:36 +0200)
Signed-off-by: Jhon Crowley <jcrowley@biznetix.net>
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/ddns/providers.py

index 56e6620c78ab3d9de1c945147f86e70a8d8614d7..2f1804bc7b095e9820019fd66d17a9be774d2aa4 100644 (file)
@@ -1218,6 +1218,22 @@ class DDNSProviderFreeDNSAfraidOrg(DDNSProvider):
                raise DDNSUpdateError
 
 
+class DDNSProviderHENet(DDNSProtocolDynDNS2, DDNSProvider):
+                handle    = "he.net"
+                name      = "he.net"
+                website   = "https://he.net"
+                protocols = ("ipv6", "ipv4",)
+
+                # Detailed information about the update api can be found here.
+                # http://dns.he.net/docs.html
+
+                url = "https://dyn.dns.he.net/nic/update"
+                @property
+                def username(self):
+                        return self.get("hostname")
+
+               
+
 class DDNSProviderItsdns(DDNSProtocolDynDNS2, DDNSProvider):
                handle    = "inwx.com"
                name      = "INWX"