public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] ddns: Add provider Feste-IP.Net Signed-off-by: Martin Krieger <makrie@posteo.de> --- *IPv6 support included based on API description but not tested. *Test system is connected by VDSL with pure IPv4 (No IPv6 or dual stack). *Setup can handle IPv4, IPv6 or dual stack updates
@ 2021-05-17 14:18 Martin Krieger
  2021-05-17 19:31 ` Peter Müller
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Krieger @ 2021-05-17 14:18 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1638 bytes --]

---
 README                |  1 +
 src/ddns/providers.py | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/README b/README
index b6decb35c338..fa6ce5e598b8 100644
--- a/README
+++ b/README
@@ -68,6 +68,7 @@ SUPPORTED PROVIDERS:
 	easydns.com
 	enom.com
 	entrydns.net
+	feste-ip.net
 	freedns.afraid.org
 	inwx.com|de|at|ch|es
 	itsdns.de
diff --git a/src/ddns/providers.py b/src/ddns/providers.py
index 56e6620c78ab..009e2c9e337d 100644
--- a/src/ddns/providers.py
+++ b/src/ddns/providers.py
@@ -1179,6 +1179,33 @@ class DDNSProviderEntryDNS(DDNSProvider):
 		raise DDNSUpdateError
 
 
+class DDNSProviderFesteIPNet(DDNSProtocolDynDNS2, DDNSProvider):
+        handle    = "feste-ip.net"
+        name      = "Feste-IP.Net"
+        website   = "https://www.feste-ip.net/"
+
+        # Information about the format of the request is to be found
+        # https://forum.feste-ip.net/viewtopic.php?f=13&t=469
+
+        myips = ("myip","myip2")
+
+        url = "https://members.feste-ip.net/nic/update/"
+
+        def update(self):
+                data = {
+                        "hostname" : self.hostname
+                }
+
+                for proto in DDNSProvider.protocols:
+                        idx = 0
+                        tmpip = self.get_address(proto)
+                        if tmpip:
+                                data[self.myips[idx]] = tmpip
+                                idx += 1
+
+                        self.send_request(data)
+
+
 class DDNSProviderFreeDNSAfraidOrg(DDNSProvider):
 	handle    = "freedns.afraid.org"
 	name      = "freedns.afraid.org"
-- 
2.31.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-19 13:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <569B3659-E76C-484C-8A05-98A3A41AF2A2@posteo.de>
2021-05-18 21:39 ` [PATCH] ddns: Add provider Feste-IP.Net Signed-off-by: Martin Krieger <makrie@posteo.de> --- *IPv6 support included based on API description but not tested. *Test system is connected by VDSL with pure IPv4 (No IPv6 or dual stack). *Setup can handle IPv4, IPv6 or dual stack updates Peter Müller
2021-05-19 13:44   ` [PATCH] ddns: Add provider Feste-IP.Net Martin Krieger
2021-05-17 14:18 [PATCH] ddns: Add provider Feste-IP.Net Signed-off-by: Martin Krieger <makrie@posteo.de> --- *IPv6 support included based on API description but not tested. *Test system is connected by VDSL with pure IPv4 (No IPv6 or dual stack). *Setup can handle IPv4, IPv6 or dual stack updates Martin Krieger
2021-05-17 19:31 ` Peter Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox