Commit graph

44 commits

Author SHA1 Message Date
Christian Schoenebeck
befb3e65c1 [for-15.05] ddns-scripts: New update url for service duiadns.net
- new update url for service "duiadns.net" #3969
- updated public_suffix_list.dat

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-02-09 21:49:05 +01:00
Christian Schoenebeck
1fd8ad1f6f [for-15.05] ddns-scripts: backport of 2.7.6-12
- fix detecting local ip from ip command #3834 and https://forum.lede-project.org/t/bugs-in-ddns-scripts/1000
- updated public_suffix_list.dat
- minor fixes to services files

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-01-18 21:54:55 +01:00
Christian Schoenebeck
76b15db6c3 [for-15.05] ddns-scripts: backport of 2.7.6-11
fix problem with detecting ip from nslookup

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-01-12 19:26:33 +01:00
Christian Schoenebeck
728f37ad15 [for-15.05] ddns-scripts: backport of 2.7.6-10
Backport of current version 2.7.6-10
- more services
- more functionality
- be prepared for next versions

compiled ipk-packages available at
https://github.com/chris5560/OpenWrt-Backports/tree/master/for-CC15.05.01/ddns-scripts_2.7.6-10

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-01-11 17:05:05 +01:00
Leonardo Brondani Schenkel
163252fcec ddns-scripts: bump 2.4.3 to release 2 2016-01-08 20:10:58 +01:00
Leonardo Brondani Schenkel
57ba3be8e0 ddns-scripts: allow setting CloudFlare 'rec_id' in the config
This is necessary when there are multiple records for the same domain,
otherwise the script will overwrite the first one returned by the API.
It has the secondary benefit of allowing faster updates by performing
only one API call instead of two.

In case 'rec_id' is not set the script behaves exactly as before.

Signed-off-by: Leonardo Brondani Schenkel <leonardo@schenkel.net>
(grafted from 019ba13d01e93c18d0ed35b0aeb3399f28108e0e)
2016-01-08 19:47:57 +01:00
Christian Schoenebeck
ce2b260ca5 [for-15.05] ddns-scripts: fix/update to version 2.4.3-1
fixed sed when filtering IP address from nslookup output
because "Server:" block might have multiple address lines.
Thanks to Arjen de Korte

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-06-27 10:37:50 +02:00
Christian Schoenebeck
3843e8459a ddns-scripts: update to version 2.4.2-1
* fix Makefile to force compression of tld_names.dat reported in OpenWrt Ticket 19597
* change default of retry_count to "0" (retry endless) suggested by Henning Schild
* updated tld_names.dat include changes until 07.05.2015

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-05-18 10:10:31 +02:00
Christian Schoenebeck
f5334528a7 ddns-scripts: bugfixes/update to version 2.4.1-1
* fix problem with lucihelper script reported in OpenWrt Ticket 19419
* rewritten split_FQDN fixing detection errors and using zcat
* updated tld_names.dat and .gz compressed to save space
* add LoopiaDNS (loopia.se) to services_ipv6

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-04-12 10:47:38 +02:00
Christian Schoenebeck
fad616a4cc ddns-scripts: implements usage of nsupdate to direct update DNS servers
* new service "bind-nsupdate" using nsupdate to directly updates a PowerDNS or Bind server via nsupdate.
  suggested by Jan Riechers (Pull #957) many thanks!
* updated tld-names.dat

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-02-28 16:43:02 +01:00
Christian Schoenebeck
5731d0e52d ddns-scripts: update to version 2.3.0-1
new option "use_curl" to force the use of curl if GNU Wget and curl are installed
fix initscript reload(): reload and not restart if killall -1 fails
BusyBox nc not support -v in every compiled version

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-02-10 22:06:02 +01:00
Christian Schoenebeck
5b26382273 ddns-scripts: Update to version 2.2.0-1
modified source directory structure
  - files for production files
  - samples for sample files (not installed in final build)
modified Makefile
  - separate options for additional provider scripts
  - remove comments and empty lines from final build
add IPv4 100.64/10 (RFC 6598) and 169.254/16 (RFC 5735) to the range of default blocked IP's.
new option "bind_network" to force GNU Wget or cURL to use specific network/interface for communication
new "domains.google.com" as IPv4 DDNS provider #822

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-02-05 21:33:02 +01:00
Christian Schoenebeck
317740f2f2 ddns-scripts: Update to Version 2.1.0-5
restructure startup of dnymaic_dns_updater.sh
 - first run load_all_config_options (it returns 1 if SECTION_ID not found) #779
 - set all defaults if necessary
 - verify if username and/or password is needed inside update_url #779
 - remove wait - will be done by retry_interval and retry_count if communication fails
provider specific update scripts
 - verify if username/password are needed
services_ipv6
 - added freedns.afraid.org
 - IPv6 should work due to their documentation
minor fixes

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-01-17 00:11:09 +01:00
Christian Schoenebeck
64250aebc7 ddns-scripts: update to version 2.1.0-4
* remove CHANGELOG from distribution
* fix syslog output printing "\n" or other formating chars
* ddns configuration
    - new UCI-config value ddns.global.allow_local_ip "0" or "1"
(default "0") - (OpenWrt Ticket 18642)
* dynamic_dns_functions.sh
- new function split_FQDN() splits a given FQDN into host,
(registerable) domainname, and TLD using
https://publicsuffix.org/list/effective_tld_names.dat
- verify_host_port() use BIND host, if installed
- verify_host_port() not detecting ip, if already given
- fixed regexp for IP detection from nslookup's answer - (OpenWrt
Ticket 16363)
- support ddns.global.allow_local_ip to allow sending non public IP's
to DDNS provider like 127.x, 192.168.x.x or fxxx - (OpenWrt Ticket
18642)
* new file tld_names.dat
- used by dynamic_dns_functions.sh inside split_FQDN() function to
find valid TLD's
* update_cloudflare.sh
- modified subdomain/domain splitting using split_FQDN()
- modified support for AA12.09 (json_get_keys())
- minor fixes and cleanup
- many thanks to Aaron Tanner for testing

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-01-11 15:39:47 +01:00
Christian Schoenebeck
5e8123eb3b ddns-scripts: Update to version 2.1.0-3
- removed special handling for dynamic_dns_helper.sh and url_escape.sed in Makefile/postinst
- minor fixes in logging
- allow retry_count of "0" to run infinite retrys on error
	-- https://dev.openwrt.org/ticket/18382
- changed naming of .dat and .err file to have one per section, not one per process
- defer hotplug helper from 25-ddns to 95-ddns (according initscript START=95)
	-- https://github.com/openwrt/packages/issues/568 (#568)
- fix commandline for busybox wget
	-- https://dev.openwrt.org/ticket/18411
	-- https://dev.openwrt.org/ticket/18437
	-- https://github.com/openwrt/packages/issues/605 (#605)
- remove checking answer from ddns provider because there are to many different.
	Some providers do not follow API from dyndns.com

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-12-07 14:45:31 +01:00
Christian Schoenebeck
ab2b229ad6 ddns-scripts: new Version 2.1.0-2
- moved /usr/lib/ddns/dynamic_dns_lucihelper.sh from luci-app-ddns into this package
	(Github openwrt/luci issue 251)
	(OpenWrt Trac tickets 18326 18347)
- fix: dynamic_dns_update.sh did not loop
	(OpenWrt Trac ticket 18336)
- add provider cloudflare.com IPv4 and IPv6 (Thanks to Paul for support and testing)
	(OpenWrt Trac ticket 12500)
- modified detection, if dynamic_dns_fuctions are used by dynamic_dns_lucihelper.sh
- redirect stdout of wget,curl,host,nslookup,nc etc to /tmp/ddns_$$.dat and *.err instead of variables
- extended error detection in get_local_ip function
- modified verify of option ip_script to allow parameters, when calling
- add provider selfhost.de IPv4
- add provider no-ip.pl (nothing to do with no-ip.com)
	(Github openwrt/packages issue #542)
	IPv4 (tested) and also added for
	IPv6 (NOT tested) because client IP is autodetected be provider
- add getlocalip_sample.sh as sample script for usage of
	option ip_source 'script'  together with
	option ip_script '/usr/lib/ddns/getlocalip.sh -4'
- cleanup whitespaces at line ends

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-11-15 21:28:01 +01:00
Christian Schoenebeck
4192651448 ddns-scripts: Update to Version 2.1.0-1 see description
- fixed postinst and prerm in Makefile
- implementation of provider specific update scripts into services and
services_ipv6 file.
	first Provider "no-ip.com"	- Thanks to DarkStarXxX for
request and testing
- finished uci/ddns wiki at http://wiki.openwrt.org/doc/uci/ddns
- rewritten retry management
- rewritten logging including following Issue 469
	https://github.com/openwrt/packages/issues/469
- stop running sections on hotplug ifdown event (like start on ifup)
- implement trap detection
	also kill "sleep" child processes
	SIGHUP to reload configuration (not really reloading, simply
starting a new process)
	/etc/init.d/ddns reload implemented
- code optimization
- new provider LoopiaDNS.se	Issue 494
	https://github.com/openwrt/packages/issues/494

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-11-09 16:37:11 +01:00
Christian Schoenebeck
8a9124dfc0 ddns-scripts: add retry loop to verify dns and proxy
Changed the verify of DNS server and proxy at script start to retry the
verify if there are connection problems during verify
plus some minor changes.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-10-11 11:00:19 +02:00
epgdatacapbon
bb59066b10 ddns-scripts: Add MyDNS.JP
MyDNS.JP, a dynamic DNS service, is added to ddns-scripts.
http://www.mydns.jp/

Signed-off-by: sstream <sstream00@yahoo.co.jp>
2014-10-11 09:30:00 +09:00
Christian Schoenebeck
bc175726cd ddns-scripts: fix problem during startup
fixes problem CRITICAL ERROR - custom update_script not found
when extracting url and script from services / services_ipv6 file

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-10-06 21:49:47 +02:00
Steven Barth
6ab4a265a2 ddns-scripts: Added support for custom update scripts
Squashed commit of the following:

commit 2701c8868e1ef4949db57e53b27958edba6abb59
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Oct 5 11:01:57 2014 +0200

    ddns-scripts: Added support for custom update scripts

    Sample script
    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

commit e07ecb90fa2c7404a97cf64024e89bd9d88aacd4
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Oct 5 11:00:11 2014 +0200

    ddns-scripts: Added support for custom update scripts

    Added support for custom update scripts with new option update_script.
    function get_service_url() renamed to get_service_data() and extended to detect scripts inside service / service_ipv6 for later use
    function send_update() modified to support custom update scripts.
    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

commit 39e41b2151a79a7ace71a9d40b87cd4d6ce09503
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Oct 5 10:52:44 2014 +0200

    ddns-scripts: Added support for custom update scripts

    Added support for custom update scripts with new option update_script
    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

commit 33f264768e37d8a6fe564faaafa51a7b45a0ee19
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Oct 5 10:48:21 2014 +0200

    ddns-scripts: Insert description for NEW option update_script

    Insert description for NEW option update_script
    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

commit 6f6a60244df53e0556f5c75845c69aa832f97e4c
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Oct 5 10:43:52 2014 +0200

    ddns-scripts: Update PKG_RELEASE

    Update_PKG_RELEASE to reflect changes
    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-10-06 08:39:59 +02:00
Christian Schoenebeck
42263ca865 ddns_scripts: url encode USERNAME and PASSWORD
New function __urlencode() to remove special chars used in send_update() for username and password.
username might have email address and password might have special chars for security reasons.
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-10-01 18:45:29 +02:00
Christian Schoenebeck
0f9ac53fae ddns-scripts: Increment PKG_RELEASE
Increment PKG_RELEASE to reflect changes
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-10-01 18:35:46 +02:00
Christian Schoenebeck
178510d421 ddns-scripts: send_update() detection private IPv4
correction of excluding private IPv4 in send_update() function.
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-09-30 08:22:21 +02:00
Christian Schoenebeck
5deddd2ed3 ddns-scripts: increment PKG_RELEASE
Increment PKG_RELEASE to reflect updates
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-09-30 08:14:04 +02:00
Christian Schoenebeck
d470bafa90 ddns-scripts: increment PKG_RELEASE
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-09-29 20:31:28 +02:00
Christian Schoenebeck
c26946e487 ddns-scripts: fix ticket #17998: wrongly detect ipv4 start with 10x.x.x.x
Thanks to "eqsun" for report and offer of fix.
Otherwise the ip address starts with 100~109 will be treated as invalid.
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-09-29 20:29:46 +02:00
Christian Schoenebeck
9a883a38bd ddns-scripts: Increment PKG_RELEASE
Increment PKG_RELEASE to reflect latest changes
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-09-29 13:44:30 +02:00
Christian Schoenebeck
e67960d88c ddns-scripts: add service two-dns.de
Requested by: Martin Röcker <roecker@empty-v.de>
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-09-29 13:42:43 +02:00
etmatrix
bb38611166 With DSL connection ifconfig hasn't broadcast address but P-t-P so awk don't match nothing 2014-09-28 09:59:52 +02:00
Christian Schoenebeck
6522ff5e31 ddns-scripts: fix issue (#337) current/registered ip never match
Increase PKG_RELEASE to reflect changes

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-09-22 16:34:20 +02:00
Christian Schoenebeck
99264f2527 ddns-scripts: fix issue (#337) current/registered ip never match
new extraction of IP inside function get_registered_ip for host and nslookup
thanks to jow for the sed

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-09-22 16:32:56 +02:00
Steven Barth
07d3672d46 ddns-scripts: Update to Version 2.0.1-1
Squashed commit of the following:

commit fc1d42f069ff930180c5f067c2eb88c9e9df7003
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Sep 21 18:01:43 2014 +0200

    [ddns-scripts] Update to Version 2.0.1-1

commit 731f9b4df00a8f29df2c17f102356c4d6980918a
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Sep 21 17:59:25 2014 +0200

    [ddns-scripts] Update to Version 2.0.1-1

    personal helper script to create hashes for CA-Certificates for Wget and cURL using https protocol without errors.

    Sorry GitHub web interface only supports single commits that will be summarized into one pull request.
    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

commit df8f6c9d5d31fde24fe1d673949d272d887505e1
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Sep 21 17:56:05 2014 +0200

    [ddns-scripts] Update to Version 2.0.1-1

    rewritten

    Sorry GitHub web interface only supports single commits that will be summarized into one pull request.
    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

commit 50cdf5acb9caecfd9b65ab79696c40fb2bc7037b
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Sep 21 17:54:40 2014 +0200

    [ddns-scripts] Update to Version 2.0.1-1

    rewritten

    Sorry GitHub web interface only supports single commits that will be summarized into one pull request.
    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

commit b1d650a345fb06402c1eac01138cbafcca123a8c
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Sep 21 17:52:52 2014 +0200

    [ddns-scripts] Update to Version 2.0.1-1

    not needed in this version

    Sorry GitHub web interface only supports single commits that will be summarized into one pull request.
    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

commit 9532114b03d428a3162b16e06706d3aa50e601bb
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Sep 21 17:51:39 2014 +0200

    [ddns-scripts] Update to Version 2.0.1-1

    same function as existing services file but used for IPv6

    Sorry GitHub web interface only supports single commits that will be summarized into one pull request.
    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

commit a636bc25c62e23694c009886c13253c9cecc548c
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Sep 21 17:46:56 2014 +0200

    [ddns-scripts] Update to Version 2.0.1-1

    New file explaining availible parameters.

    Sorry GitHub web interface only supports single commits that will be summarized into one pull request.
    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

commit 52332354fc245861e17c898aa6b806f6c174e9a5
Author: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Date:   Sun Sep 21 17:44:45 2014 +0200

    [ddns-scripts] Update to Version 2.0.1-1

    Sorry GitHub web interface only supports single commits that will be summarized into one pull request.

    Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-09-22 08:00:53 +02:00
Liviu Pislaru
aab79c8377 ddns-scripts: duiadns.net service support added
Signed-off-by: Liviu Pislaru <liviu@duiadns.net>
2014-09-03 18:04:15 +03:00
Jonathan McCrohan
4b90ad6770 Merge pull request #193 from chris5560/master
ddns-scripts: Set PKG_LICENSE
2014-08-12 00:18:32 +01:00
Christian Schoenebeck
353dd935d6 ddns-scripts: Set PKG_LICENSE
Set PKG_LICENSE as written inside dynamic_dns_updater.sh and dynamic_dns_functions.sh.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-08-11 21:18:48 +02:00
sbyx
ab11a89555 Merge pull request #144 from chris5560/master
ddns-scripts: set myself as maintainer
2014-07-30 14:05:19 +02:00
Christian Schoenebeck
bda67cc2cc ddns-scripts: set myself as maintainer
and increase PKG_RELEASE to reflect latest updates.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-07-30 14:01:00 +02:00
Jonathan McCrohan
ce93ec8e40 ddns-scripts: remove erroneously committed backup file
Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
2014-07-30 11:08:29 +01:00
Christian Schoenebeck
1227a896e4 ddns-scripts: new service "spdns.de"
Service provided by Securepoint GmbH, 21335 Lüneburg, Germany
Info at http://www.spdns.de

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-07-27 16:14:28 +02:00
Christian Schoenebeck
f1faf5f2e1 ddns-scripts: start via hotplug only if enabled
To be consistent with other services only start via hotplug if enabled.
Now full functionality of /etc/init.d/ddns enable/disable start/stop

Optimization: Include script only if needed

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-07-27 16:06:24 +02:00
Christian Schoenebeck
e5613b306f ddns-scripts: only start via hotplug not via boot
Hotplug script will start service for each interface.
To prevent duplicates and in general must not start on boot.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2014-07-27 15:52:13 +02:00
Nikos Mavrogiannopoulos
f7d0b83aef ddns: Allow running ddns using the /etc/init.d/ddns script
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2014-06-08 14:05:23 +02:00
Nikos Mavrogiannopoulos
ced8b84f1c ddns-scripts: Copied from previous repository
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2014-06-08 14:03:36 +02:00