From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Krieger To: development@lists.ipfire.org Subject: [PATCH v6 1/1] ddns: Add provider Feste-IP.Net Date: Tue, 18 May 2021 18:49:35 +0000 Message-ID: <54e378f2-ad73-9395-88ea-9436008fc6b7@posteo.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6836984309650797594==" List-Id: --===============6836984309650797594== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit From 37fb0237932fb12bdd635e9cb5e01b0bf9f03dda Mon Sep 17 00:00:00 2001 From: Martin Krieger Date: Tue, 18 May 2021 19:42:44 +0200 Subject: [PATCH v6 1/1] ddns: Add provider Feste-IP.Net Comments: Provider supports IPv4, IPv6 & DS (Dual-Stack) Changelog: 18.05.2021 Improved failure handling. IPv6 & DS still not checked, because my network connection is pure IPv4. 17.05.2021 5th attempt ([PATCH v5 1/1]) 16.05.2021 4th attempt ([PATCH v4 1/1]) 08.05.2021 3rd attempt ([PATCH v3 1/1]) 06.05.2021 2nd attempt ([PATCH v2 1/1]) 05.05.2021 1st attempt ([PATCH v1 1/1]) Signed-off-by: Martin Krieger .. --- README | 1 + src/ddns/providers.py | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 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..b7e14482a0b1 100644 --- a/src/ddns/providers.py +++ b/src/ddns/providers.py @@ -1179,6 +1179,37 @@ 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 + + if self.myips[0] in data: + self.send_request(data) + return + + raise DDNSUpdateError + + class DDNSProviderFreeDNSAfraidOrg(DDNSProvider): handle = "freedns.afraid.org" name = "freedns.afraid.org" -- 2.31.0 --===============6836984309650797594== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="OpenPGP_signature.sig" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUVCQ2dBZEZpRUVuV0tqZ2ZoSXBr anh4Tm1BRWV2RUVOYVpqR01GQW1Da0REOEFDZ2tRRWV2RUVOYVoKakdQS21RLzZBbFg5bVhoeSto aE1iT01RR1JlQ0IzT2V5MmdTR0dRWEJzV1E1TFc3bGk2K0E0aU4yZWNxN091ZApTT0NtZEg0Ykk0 U2dFTjU3emc3bm5PWGdOQmJlWk12TDVodnp2S2VXalFwUG9lM0RxL3hENUU2L29NSUZpV2hzCnR4 NXRwanNNU3Z2SUNLV1BOOWI3MU1GYVN0bTVFamJKb3hLTWx4VGFlbnh5OEdpWkUrY3U1UnVNbkUz OS9vQVgKRUhPSklzQlB4YmEzK3p5R2VLSHRLRXh6YVN6K2FXWTAwUGRPVTdNZWthSDVZY2ZsTkZQ UHJUY1VaNE9rbW5RSwpXM3M2RWFsSFlRa1VqK2NERlo0N0dKN1RjZS9KWmI1aVpMT0k0V3RGbnhL ci9hUXBZbTR4VkIyV2R0aDFwVUYwCkhTbnVJZk9KZ1VOZTcxcTN5OVpUOWxxTlBJZ0dQTGVSWjM1 R0V4WTFtOEZqeGNpWHJIaGxEN1FJUlRYK1JkQXoKeGdHUjdHaWVpVXRBRTFGU1dXMmRlOGJYS0s3 VHpuSXVKam9kT0Q4Tj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