Add domains.google.com as provider.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 18 Feb 2015 17:44:27 +0000 (18:44 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 18 Feb 2015 17:44:27 +0000 (18:44 +0100)
Fixes #10720.

README
ddns.conf.sample
src/ddns/providers.py

diff --git a/README b/README
index 68a5159..5636133 100644 (file)
--- a/README
+++ b/README
@@ -54,6 +54,7 @@ SUPPORTED PROVIDERS:
        dhs.org
        dns.lightningwirelabs.com
        dnspark.com
+       domains.google.com
        domopoli.de
        dtdns.com
        dyndns.org
index 96d0a9c..7a19c9c 100644 (file)
 # provider = freedns.afraid.org
 # token = token
 
+# [test.google.com]
+# provider = domains.google.com
+# username = user
+# password = pass
+
 # [test.loopia.se]
 # provider = loopia.se
 # username = user
index 2005a62..9cec15a 100644 (file)
@@ -1048,6 +1048,18 @@ class DDNSProviderFreeDNSAfraidOrg(DDNSProvider):
                raise DDNSUpdateError
 
 
+class DDNSProviderGoogle(DDNSProtocolDynDNS2, DDNSProvider):
+        handle    = "domains.google.com"
+        name      = "Google Domains"
+        website   = "https://domains.google.com/"
+        protocols = ("ipv4",)
+
+        # Information about the format of the HTTP request is to be found
+        # here: https://support.google.com/domains/answer/6147083?hl=en
+
+        url = "https://domains.google.com/nic/update"
+
+
 class DDNSProviderLightningWireLabs(DDNSProvider):
        handle    = "dns.lightningwirelabs.com"
        name      = "Lightning Wire Labs DNS Service"