Skip to content

Commit

Permalink
Experimental support for German DDNS provider SPDYN
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Nilsson <[email protected]>
  • Loading branch information
troglobit committed Jun 22, 2016
1 parent ec56ffa commit d8d87eb
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ examples.
* <https://ddnss.de>
* <http://dynv6.com>
* <http://ipv4.dynv6.com>
* <https://spdyn.de>

In-A-Dyn supports HTTPS for DDNS providers that support this, which you
must check yourself. So far DynDNS, FreeDNS, nsupdate.info, and Loopia
have been verified to support HTTPS.
must check yourself. So far DynDNS, FreeDNS, nsupdate.info, Loopia, and
SPDYN, have been verified to support HTTPS.

*HTTPS is strongly recommended* since it protects your credentials from
being snooped and reduces the risk of someone hijacking your account.
Expand Down
2 changes: 2 additions & 0 deletions man/inadyn.8
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ a.k.a.
.Aq http://.dynv6.com
.It
.Aq http://ipv4.dynv6.com
.It
.Aq https://spdyn.de
.El
.Pp
DDNS providers not listed here, like
Expand Down
10 changes: 10 additions & 0 deletions man/inadyn.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ by Hurricane Electric.
.Aq https://www.loopia.com
.It Cm [email protected]
.Aq https://www.duiadns.net
.It Cm [email protected]
.Aq https://spdyn.de
.El
.It Cm custom some@identifier {}
Specific to the custom provider section are the following settings:
Expand Down Expand Up @@ -321,6 +323,14 @@ provider [email protected] {
hostname = your_host.ddnss.de
}

# spdyn.de
provider [email protected] {
ssl = true
username = your_username
password = your_password
hostname = your_host.spdyn.de
}

# dynv6.com
provider [email protected] {
username = your_token
Expand Down
21 changes: 20 additions & 1 deletion plugins/dyndns.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
* - Loopia, and
* - nsupdate.info
* - Google Domains
* - SPDYN
*
* Copyright (C) 2003-2004 Narcis Ilisei <[email protected]>
* Copyright (C) 2006 Steve Horbachuk
* Copyright (C) 2010-2014 Joachim Nilsson <[email protected]>
* Copyright (C) 2010-2016 Joachim Nilsson <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -134,6 +135,22 @@ static ddns_system_t tunnelbroker = {
.server_url = "/nic/update"
};

/*
* Securepoint DDNS service (SPDYN)
* http://wiki.securepoint.de/index.php/SPDNS_FAQ
*/
static ddns_system_t spdyn = {
.name = "[email protected]",

.request = (req_fn_t)request,
.response = (rsp_fn_t)response,

.checkip_name = "checkip4.spdyn.de",
.checkip_url = "/",

.server_name = "update.spdyn.de",
.server_url = "/nic/update"
};

/* Note: below is IPv4 only. ipv6.nsupdate.info would work IPv6 only. */
static ddns_system_t nsupdate_info_ipv4 = {
Expand Down Expand Up @@ -198,6 +215,7 @@ PLUGIN_INIT(plugin_init)
plugin_register(&_3322);
plugin_register(&henet);
plugin_register(&tunnelbroker);
plugin_register(&spdyn);
plugin_register(&nsupdate_info_ipv4);
plugin_register(&loopia);
plugin_register(&googledomains);
Expand All @@ -212,6 +230,7 @@ PLUGIN_EXIT(plugin_exit)
plugin_unregister(&_3322);
plugin_unregister(&henet);
plugin_unregister(&tunnelbroker);
plugin_unregister(&spdyn);
plugin_unregister(&nsupdate_info_ipv4);
plugin_unregister(&loopia);
plugin_unregister(&googledomains);
Expand Down

0 comments on commit d8d87eb

Please sign in to comment.