From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Krieger To: development@lists.ipfire.org Subject: [PATCH] ddns: Add provider Feste-IP.Net From: Martin Krieger Date: Sun, 16 May 2021 16:53:57 +0000 Message-ID: <20210516165357.31862-1-makrie@posteo.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7535708884656249851==" List-Id: --===============7535708884656249851== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Add support for provider Feste-IP.Net to ipfire ddns system. Signed-off-by: Martin Krieger --- IPv6 support included based on API description but not tested. Test system is= connected by VDSL and internet provider connection is pure IPv4 (No dualstac= k). --- README | 1 + src/ddns/providers.py | 22 ++++++++++++++++++++++ 2 files changed, 23 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..c8be31622c3a 100644 --- a/src/ddns/providers.py +++ b/src/ddns/providers.py @@ -1178,6 +1178,28 @@ class DDNSProviderEntryDNS(DDNSProvider): # If we got here, some other update error happened. raise DDNSUpdateError =20 +class DDNSProviderFesteIPNet(DDNSProtocolDynDNS2, DDNSProvider): + handle =3D "feste-ip.net" + name =3D "Feste-IP.Net" + website =3D "https://www.feste-ip.net/" + + # Information about the format of the request is to be found + # https://forum.feste-ip.net/viewtopic.php?f=3D13&t=3D469=20 + + url =3D "https://members.feste-ip.net/nic/update/" + + def update(self): + data =3D DDNSProtocolDynDNS2.prepare_request_data(self, "ipv= 4") + + # This one supports IPv6 + myipv6 =3D self.get_address("ipv6") + + # Add update information if we have an IPv6 address. + if myipv6: + data["myip2"] =3D myipv6 + + self.send_request(data) + =20 class DDNSProviderFreeDNSAfraidOrg(DDNSProvider): handle =3D "freedns.afraid.org" --=20 2.31.0 --===============7535708884656249851==--