]> git.ipfire.org Git - people/stevee/ddns.git/commitdiff
Add support for dy.fi
authorMauno Pirnes <mauno.pirnes@kotinet.com>
Thu, 28 Jun 2018 11:01:53 +0000 (12:01 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 May 2019 05:28:07 +0000 (06:28 +0100)
DyFi is a provider from Finland that only allows to point dynamic
DNS records to IP addresses that are registered in Finland.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
README
src/ddns/providers.py

diff --git a/README b/README
index d1708584cb14ee080bd77fb8b5385dc51dfe2f90..02ac926762ce43c8448d4ef2af87ceceedba4ffa 100644 (file)
--- a/README
+++ b/README
@@ -60,6 +60,7 @@ SUPPORTED PROVIDERS:
        domopoli.de
        dtdns.com
        duckdns.org
+       dy.fi
        dyndns.org
        dyns.cx|net
        dynu.com
index ea723e591667e926907e3536d10a751fb7521b2a..828787872c185f50dd4766f17c7f1a41dfc3f91b 100644 (file)
@@ -400,6 +400,8 @@ class DDNSProtocolDynDNS2(object):
                        raise DDNSInternalServerError(_("DNS error encountered"))
                elif output == "badagent":
                        raise DDNSBlockedError
+               elif output == "badip":
+                       raise DDNSBlockedError
 
                # If we got here, some other update error happened.
                raise DDNSUpdateError(_("Server response: %s") % output)
@@ -828,6 +830,24 @@ class DDNSProviderDuckDNS(DDNSProtocolDynDNS2, DDNSProvider):
        url = "https://www.duckdns.org/nic/update"
 
 
+class DDNSProviderDyFi(DDNSProtocolDynDNS2, DDNSProvider):
+       handle    = "dy.fi"
+       name      = "dy.fi"
+       website   = "https://www.dy.fi/"
+       protocols = ("ipv4",)
+
+       # Information about the format of the request is to be found
+       # https://www.dy.fi/page/clients?lang=en
+       # https://www.dy.fi/page/specification?lang=en
+
+       url = "http://www.dy.fi/nic/update"
+
+       # Please only send automatic updates when your IP address changes,
+       # or once per 5 to 6 days to refresh the address mapping (they will
+       # expire if not refreshed within 7 days).
+       holdoff_days = 6
+
+
 class DDNSProviderDynDNS(DDNSProtocolDynDNS2, DDNSProvider):
        handle    = "dyndns.org"
        name      = "Dyn"