From patchwork Tue May 1 01:33:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?St=C3=B6ckl?= X-Patchwork-Id: 1737 Return-Path: Received: from mail01.ipfire.org (mail01.ipfire.org [IPv6:2001:470:7183:25::1]) by web02.i.ipfire.org (Postfix) with ESMTP id 168BC60726 for ; Mon, 30 Apr 2018 17:33:27 +0200 (CEST) ARC-Authentication-Results: i=2; mail01.ipfire.org; arc=reject (signature check failed: fail, {[1] = sig:ipfire.org:reject}) ARC-Seal: i=2; s=201801; d=ipfire.org; t=1525102406; a=rsa-sha256; cv=fail; b=CYQhK66pIpFH8qZ3W2HpEpHixT38jm0Fu1RAOKXLUr7GpLHuqiUHqQUfy4OmTAmj/ZAd0Jdv+WN991w0rmCZZrZg/cxLOxBmaAzUnJ3gyUo7FRHMzYxPLTRCWLPjowWMXxwUA/3gk+NJU7bSHZzv+E0W0xzcEGQOdU8UQgmbKZflXOYZjomMq3L79wd/v0xoowcE7Cc89UOl6SdYDkaNGj3V8vXvf7W+6XhwFb2OAQhiZaHYNJxN0cG859fuiJLWhvuNgD2WVdq7WpKh0BgoT0SqZhqbQXpeX7e2SiJTzBltV3aKTAzwGJY6B1JvHWCHnpuqD28DxhdDSlMh0lcrbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1525102406; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:list-id:list-unsubscribe:list-subscribe:list-post; bh=pwtbsiEO/Q/Zq/8kfZkop68Vlig82K/R3Ge50zFCegM=; b=Arls0q2Cqjb73suqEz2IPqwQVMrbOed4bvFi7D4Z4KH5ThODCQMYwWEYcJ5QHg2MrmHEcs 5om/5fCwKEfEaxUyUMugWL1tKknOvJ8a6gzua7/F4/4Iu5/OoqsiKv0zhf0abckc6KFNb0 ZvEBmI9b780klW5MDlSAx6DwmIdnGh99O+xTSoK7lEihxlKH/UccZhtsdkWREQegQ+lGli N8i5w0YQwaROb6UWgi9mL+7q3eyqpq74AAX7qmsV0X3sl3BltiQJgtbNTL6RqwqeFBy1gK z1lVROoO1X6A91BBHJlpKRX7lGJYYpAkxBCFWZEWfk6zhjhdgeHUWZGKDEXJCg== Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 666A41109330; Mon, 30 Apr 2018 16:33:26 +0100 (BST) Authentication-Results: mail01.ipfire.org ARC-Authentication-Results: i=1; mail01.ipfire.org ARC-Seal: i=1; s=201801; d=ipfire.org; t=1525102403; a=rsa-sha256; cv=none; b=ygrAoj4izbLZpCwaBOlVmCh/k9mAeP0/Bkx0u7u7mAQTzrooxZP8u8Fuw1m3Fp8eeF/rE+NZvoDEEHjqqQGS3Ye+aQsYFib7Iml7/d+J/wYIBJ/ORcBKtaE9UoYlAgypSgkLAQkjH8Ls6H7c5QrLvxit/V5lK/64FXM5oplOzkiAIiRySI3lalT2cjJRddR8ZDKcY/YopegavYJan5R/3P1UV3QQ0Ak6nWOY9ih8OS7M7eBqlEJoGZe/dsZNFYZvbu1w4Q1cULOxSQRAmU9cHs3tiaYnmu2nkGwrM6IL0t/kJIiUjhsAplsKlGF1rBeFHHHCvjCfKWO+Zu7x+kH6WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1525102403; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=BZG5pwfxwM5RIBn3+dqwJ/iwsm8QU7uYy03AW6AMvWc=; b=eIHGo99/b6HqMK1EI7uj/3I1fbysVwgx5rK+dNMzoQGCLsa9zjo9BBWleKyhcnvi3092pn vxGvOZBx4+rtWL+x+bgDxF1Y3eG6x79OB9oGefokx6NNKt1jYuzkl0/5eh6xeEJpg6jNw2 IMm8zLZPp8o90W72U6ctGjzllZo1O+khEj8CJYfSY+WddIfhQ9ArIb71y2Zlr0lsjPDyna GyTReXqDpil18611ZuzKXO8inUp0EiZsj4JeOGC3OmsvJj/mTNFdCOVv87h2GEWndHUoq3 yGJvIBb6hib+tBVoG7VLEVzlB8CaHQl0q3cC7JwG2IL3YQK+D3R4/ka2yoClSQ== Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 935221109330 for ; Mon, 30 Apr 2018 16:33:23 +0100 (BST) Received: from fwd10.aul.t-online.de (fwd10.aul.t-online.de [172.20.26.152]) by mailout08.t-online.de (Postfix) with SMTP id C896441DA6EC for ; Mon, 30 Apr 2018 17:33:22 +0200 (CEST) Received: from [192.168.11.67] (bLj+aQZrwhcVPy6IWO0YqGwHfrdHABVqj8zSOmF3qn+ZEKzSjGB5RWP-MRm6BU3w9L@[62.224.39.40]) by fwd10.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1fDAnq-3V1A5Q0; Mon, 30 Apr 2018 17:33:22 +0200 From: =?utf-8?q?St=C3=B6ckl?= Subject: new nrovider: dynup.de To: ddns@lists.ipfire.org Message-ID: Date: Mon, 30 Apr 2018 17:33:22 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 X-ID: bLj+aQZrwhcVPy6IWO0YqGwHfrdHABVqj8zSOmF3qn+ZEKzSjGB5RWP-MRm6BU3w9L X-TOI-MSGID: 4403a1ed-335f-4dfd-bca2-c51b51b24959 X-Spamd-Result: default: False [0.87 / 11.00]; RWL_MAILSPIKE_GOOD(0.00)[20.134.25.194.rep.mailspike.net : 127.0.0.18]; DMARC_NA(0.00)[t-online.de]; R_SPF_NA(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_SIGNED(0.00)[i=1]; R_DKIM_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[20.134.25.194.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[mx03.t-online.de]; RBL_SORBS_SAFE(1.00)[20.134.25.194.safe.dnsbl.sorbs.net]; BAYES_HAM(-3.00)[100.00%]; AUTH_NA(1.00)[]; IP_SCORE(-0.02)[country: DE(-0.09)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RECEIVED_SPAMHAUS(0.00)[40.39.224.62.zen.spamhaus.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:3320, ipnet:194.25.0.0/16, country:DE]; RBL_SPAMCOP(2.00)[20.134.25.194.bl.spamcop.net]; RCVD_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[ddns@lists.ipfire.org]; RCVD_TLS_LAST(0.00)[] X-Spam-Status: No, score=0.87 X-Rspamd-Server: mail01.i.ipfire.org X-BeenThere: ddns@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List for the IPFire dynamic DNS client List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ddns-bounces@lists.ipfire.org Sender: "ddns" name = "EasyDNS" diff --git a/README b/README index d8027a4..f45d128 100755 --- a/README +++ b/README @@ -62,6 +62,7 @@ SUPPORTED PROVIDERS: dyndns.org dyns.cx|net dynu.com + dynup.de easydns.com enom.com entrydns.net diff --git a/src/ddns/providers.py b/src/ddns/providers.py index 6b25cb6..75e6c4c 100755 --- a/src/ddns/providers.py +++ b/src/ddns/providers.py @@ -868,6 +868,43 @@ class DDNSProviderDynU(DDNSProtocolDynDNS2, DDNSProvider): self.send_request(data) +class DDNSProviderDynUp(DDNSProvider): + handle = "dynup.de" + name = "DynUp.DE" + website = "http://dynup.de/" + protocols = ("ipv4",) + + # Information about the format of the HTTPS request is to be found + # https://dyndnsfree.de/user/hilfe.php + + url = "https://dynup.de/dyn.php" + can_remove_records = False + + def update_protocol(self, proto): + data = { + "username" : self.username, + "password" : self.password, + "hostname" : self.hostname, + "print" : '1', + } + + # 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 output.startswith("I:OK") : + return + + # If we got here, some other update error happened. + raise DDNSUpdateError + + class DDNSProviderEasyDNS(DDNSProvider): handle = "easydns.com"