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>
This commit is contained in:
Christian Schoenebeck
2015-01-17 00:11:09 +01:00
parent 9ec167918d
commit 317740f2f2
10 changed files with 141 additions and 126 deletions

View File

@@ -1,28 +1,28 @@
#444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
#4
#4 This file contains the update urls for various dynamic dns services.
#4 Column one contains the service name, column two contains the update url.
#4 within the update url there are 4 variables you can use: [USERNAME],
#4 [PASSWORD], [DOMAIN] and [IP]. These are substituted for the username,
#4 password, and domain name specified in the /etc/config/ddns file when an
#4 update is performed. The IP is substituted for the current ip address of the
#4 router. These variables are case sensitive, while urls generally are not, so
#4 if you need to enter the same text in the url (which seems very unlikely) put
#4 that text in lowercase, while the variables should remain in uppercase
#4
#4 There are TONS of dynamic dns services out there. There's a huge list of them at:
#4 http://www.dmoz.org/Computers/Software/Internet/Servers/Address_Management/Dynamic_DNS_Services/
#4 If anyone has time they could update this file to be compatible with a bunch of them
#4
#4 !!! Since ddns-scripts Version 2.x the update of IPv6 addresses is also supported
#4 !!! This file is used for update of IPv4 adresses only. For IPv6 use services_ipv6
#4
#4 !!! Since ddns-scripts Version 2.x the update via provider specific update scripts is supported.
#4 !!! This scripts must be located at /usr/lib/ddns directory if defined inside this file.
#4 !!! Use only the script name (without path). Sample:
#4 !!! "example.com" "update_sample.sh"
#4
#444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
# 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
#
# This file contains the update urls for various dynamic dns services.
# Column one contains the service name, column two contains the update url.
# within the update url there are 4 variables you can use: [USERNAME],
# [PASSWORD], [DOMAIN] and [IP]. These are substituted for the username,
# password, and domain name specified in the /etc/config/ddns file when an
# update is performed. The IP is substituted for the current ip address of the
# router. These variables are case sensitive, while urls generally are not, so
# if you need to enter the same text in the url (which seems very unlikely) put
# that text in lowercase, while the variables should remain in uppercase
#
# There are TONS of dynamic dns services out there. There's a huge list of them at:
# http://www.dmoz.org/Computers/Software/Internet/Servers/Address_Management/Dynamic_DNS_Services/
# If anyone has time they could update this file to be compatible with a bunch of them
#
# !!! Since ddns-scripts Version 2.x the update of IPv6 addresses is also supported
# !!! This file is used for update of IPv4 adresses only. For IPv6 use services_ipv6
#
# !!! Since ddns-scripts Version 2.x the update via provider specific update scripts is supported.
# !!! This scripts must be located at /usr/lib/ddns directory if defined inside this file.
# !!! Use only the script name (without path). Sample:
# !!! "example.com" "update_sample.sh"
#
# 44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
"dyndns.org" "http://[USERNAME]:[PASSWORD]@members.dyndns.org/nic/update?hostname=[DOMAIN]&myip=[IP]"
"changeip.com" "http://[USERNAME]:[PASSWORD]@nic.changeip.com/nic/update?u=[USERNAME]&p=[PASSWORD]&cmd=update&hostname=[DOMAIN]&ip=[IP]"
@@ -34,7 +34,7 @@
"no-ip.com" "update_no-ip.sh"
"noip.com" "update_no-ip.sh"
#freedns.afraid.org is weird, you just need an update code, for which we use the password variable
# freedns.afraid.org is weird, you just need an update code, for which we use the password variable
"freedns.afraid.org" "http://freedns.afraid.org/dynamic/update.php?[PASSWORD]&address=[IP]"
# DNS Max and resellers' update urls