public inbox for ddns@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] Drop DtDNS
@ 2018-07-19 13:16 Michael Tremer
  0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2018-07-19 13:16 UTC (permalink / raw)
  To: ddns

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

The provider is shutting down by Aug 1st 2018 for an unknown reason

Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
 README                |  1 -
 ddns.conf.sample      |  4 ----
 src/ddns/providers.py | 55 -------------------------------------------
 3 files changed, 60 deletions(-)

diff --git a/README b/README
index d170858..cf1ac9e 100644
--- a/README
+++ b/README
@@ -58,7 +58,6 @@ SUPPORTED PROVIDERS:
 	do.de
 	domains.google.com
 	domopoli.de
-	dtdns.com
 	duckdns.org
 	dyndns.org
 	dyns.cx|net
diff --git a/ddns.conf.sample b/ddns.conf.sample
index 5b3b845..eaa2cc4 100644
--- a/ddns.conf.sample
+++ b/ddns.conf.sample
@@ -58,10 +58,6 @@
 # username = user
 # password = pass
 
-# [test.dtdns.org]
-# provider = dtdns.org
-# password = pass
-
 # [test.dyndns.org]
 # provider = dnydns.org
 # username = user
diff --git a/src/ddns/providers.py b/src/ddns/providers.py
index ea723e5..4b2b1ef 100644
--- a/src/ddns/providers.py
+++ b/src/ddns/providers.py
@@ -761,61 +761,6 @@ class DDNSProviderDNSpark(DDNSProvider):
 		raise DDNSUpdateError
 
 
-class DDNSProviderDtDNS(DDNSProvider):
-	handle    = "dtdns.com"
-	name      = "DtDNS"
-	website   = "http://dtdns.com/"
-	protocols = ("ipv4",)
-
-	# Information about the format of the HTTPS request is to be found
-	# http://www.dtdns.com/dtsite/updatespec
-
-	url = "https://www.dtdns.com/api/autodns.cfm"
-	can_remove_records = False
-
-	def update_protocol(self, proto):
-		data = {
-			"ip" : self.get_address(proto),
-			"id" : self.hostname,
-			"pw" : self.password
-		}
-
-		# Send update to the server.
-		response = self.send_request(self.url, data=data)
-
-		# Get the full response message.
-		output = response.read()
-
-		# Remove all leading and trailing whitespace.
-		output = output.strip()
-
-		# Handle success messages.
-		if "now points to" in output:
-			return
-
-		# Handle error codes.
-		if output == "No hostname to update was supplied.":
-			raise DDNSRequestError(_("No hostname specified"))
-
-		elif output == "The hostname you supplied is not valid.":
-			raise DDNSRequestError(_("Invalid hostname specified"))
-
-		elif output == "The password you supplied is not valid.":
-			raise DDNSAuthenticationError
-
-		elif output == "Administration has disabled this account.":
-			raise DDNSRequestError(_("Account has been disabled"))
-
-		elif output == "Illegal character in IP.":
-			raise DDNSRequestError(_("Invalid IP address has been sent"))
-
-		elif output == "Too many failed requests.":
-			raise DDNSRequestError(_("Too many failed requests"))
-
-		# If we got here, some other update error happened.
-		raise DDNSUpdateError
-
-
 class DDNSProviderDuckDNS(DDNSProtocolDynDNS2, DDNSProvider):
 	handle    = "duckdns.org"
 	name      = "Duck DNS"
-- 
2.17.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-19 13:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-19 13:16 [PATCH] Drop DtDNS Michael Tremer

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