aboutsummaryrefslogtreecommitdiff
path: root/net/ddns-scripts/files/usr/lib
Commit message (Collapse)AuthorAge
* ddns-scripts: add support for LuaDNSJihoon Han2023-01-09
| | | | Signed-off-by: Jihoon Han <rapid_renard@renard.ga>
* ddns-scripts: Allow setting root record for pdns scriptCristian Le2022-12-31
| | | | Signed-off-by: Cristian Le <git@lecris.me>
* Merge pull request #19982 from golddranks/masterTianling Shen2022-12-13
|\ | | | | ddns-scripts: update_gandi_net: improve logging & add timeout
| * ddns-scripts: update_gandi_net: improve logging & add timeoutPyry Kontio2022-12-10
| | | | | | | | | | | | | | | | | | - Improved logging - Log the executed curl command to be able to rerun and test it manually - Log the curl exit status - Added 30 second timeout timeout for clear-cut detection of flaky connections. Signed-off-by: Pyry Kontio <pyry.kontio@drasa.eu>
* | ddns-scripts: add support for Google Cloud DNSChris Barrick2022-12-08
|/ | | | | | | | | | | | | The implementation uses a GCP service account. The user is expected to create and secure a service account and generate a private key. The "password" field can contain the key inline or be a file path pointing to the key file on the router. The GCP project name and Cloud DNS ManagedZone must also be provided. These are taken as form-urlencoded key-value pairs in param_enc. The TTL can optionally be supplied in param_opt. Signed-off-by: Chris Barrick <chrisbarrick@google.com>
* ddns-scripts: add explicit "-d" switch for Dry RunRafał Miłecki2022-09-28
| | | | | | | | It was a bit confusing to use *verbosity* level for Dry Run mode. Add explicity switch for it and designed DRY_RUN variable to make code easier to understand. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ddns-scripts: rename variable: s/ERR_UPDATE/RETRY_COUNT/Rafał Miłecki2022-09-27
| | | | | | | | | | | Rename variable to make code easier to understand. This variable specifies how many times in row ddns script tried to update IP without a success. Previous name ("ERR_UPDATE") didn't suggest it was for counting anything. It also didn't specify was error was it related to. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ddns-scripts: replace IP type (name) "local" with "current"Rafał Miłecki2022-09-27
| | | | | | | | | Local suggests something related to the local network or available locally only. All that code related to the "local" IP was actually dealing with *current* device external IP address. Using name "current" should make code a bit easier to understand. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ddns-scripts: rename variable: s/retry_count/retry_max_count/Rafał Miłecki2022-09-27
| | | | | | | | | Rename variable to make code easier to understand. This variable specifies how many times ddns script should try to send a request. Previous name ("retry_count") suggested it was for *counting* attempts. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ddns-scripts: add one.com providerLuca Conte2022-01-27
| | | | Signed-off-by: Luca Conte <main@lugico.de>
* Merge pull request #17617 from hgl/ddns-cloudflareFlorian Eckert2022-01-15
|\ | | | | ddns-scripts-cloudflare: fix shell conditional
| * ddns-scripts-cloudflare: fix shell conditionalGlen Huang2022-01-15
| | | | | | | | Signed-off-by: Glen Huang <heyhgl@gmail.com>
* | ddns-scripts: pass user agent stringClaudio Marelli2022-01-15
|/ | | | | | | | This adds a user agent string to the wget request. Fixes #17507 Signed-off-by: Claudio Marelli <camarelli@gmx.net>
* ddns-scripts-cloudflare: allow explicit zone_idGlen Huang2022-01-10
| | | | | | When zone id is explicitly provided, there is no need for the API token to have read permission. Inspired by acme.sh's cloudflare logic. Signed-off-by: Glen Huang <heyhgl@gmail.com>
* ddns-scripts: add ns1.com providerRichard Yu2021-12-15
| | | | Signed-off-by: Richard Yu <yurichard3839@gmail.com>
* ddns-scripts: Add script for TransIP.nlMartijn Atema2021-11-30
| | | | | | Signed-off-by: Martijn Atema <martijn@atema.one> Signed-off-by: Florian Eckert <fe@dev.tdt.de> - PKG_RELEASE number updated
* ddns-scripts: Fix DigitalOcean JSON payloadGeorge Giannou2021-11-29
| | | | Signed-off-by: George Giannou <giannoug@gmail.com>
* Merge pull request #17120 from giannoug/ddns-scripts-digitaloceanFlorian Eckert2021-11-17
|\ | | | | ddns-scripts: Rework DigitalOcean update script
| * ddns-scripts: Rework DigitalOcean update scriptGeorge Giannou2021-11-15
| | | | | | | | Signed-off-by: George Giannou <giannoug@gmail.com>
* | ddns-scripts: Fix typo in route53 update scriptMartijn Atema2021-11-15
|/ | | | Signed-off-by: Martijn Atema <martijn@atema.one>
* ddns-scripts: Add dnspod.cnJun Zhu2021-09-30
| | | | Signed-off-by: Jun Zhu <zhujunsan@gmail.com>
* ddns-script-gandi: Better error managementCristian Le2021-08-31
| | | | | | | - Changed DNS endpoint to LiveDNS - Now using `jshn.sh` - Better handle errors and ouput Signed-off-by: Cristian Le <git@lecris.me>
* ddns-scripts-pdns: Add packageCristian Le2021-08-31
| | | Signed-off-by: Cristian Le <git@lecris.me>
* ddns-scripts: get l3 device for bind network using curlFlorian Eckert2021-06-22
| | | | | | | | | | | | | | | | If pppoe is used for wan access. script set 'eth1' as interface for curl call. The correct interface is however 'pppoe-wan'. The script uses 'network_get_physdev' function to get real device for bind_network but this is wrong. We need instead the l3_device of the the logical interface. In case if we don't use pppoe connection - 'l3_device' is equal to real device. This was reported by the github user `welderpb` with P/R: https://github.com/openwrt/packages/pull/14431 Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: Fix for domains with dashWenli Looi2021-05-19
| | | | Signed-off-by: Wenli Looi <wlooi@ucalgary.ca>
* ddns-scripts: Fix for wildcard subdomainWenli Looi2021-05-18
| | | | Signed-off-by: Wenli Looi <wlooi@ucalgary.ca>
* ddns-scripts: make WGET_SSL executableEdi Turn2021-01-27
| | | | Signed-off-by: Edi Turn <yyxstter@gmail.com>
* ddns-scripts: fix wget-ssl pathHuangbin Zhan2021-01-17
| | | | Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
* ddns-scripts: add gandi.net providerFlorian Eckert2020-11-28
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: use ip_source as bind_network defaultJoel Johnson2020-10-21
| | | | | | Fixes: #13182 on https://github.com/openwrt/packages Signed-off-by: Joel Johnson <mrjoel@lixil.net>
* ddns-scripts: add ipv6 capability for no-ip.comJohnathan Arsenault2020-10-05
| | | | | Signed-off-by: Johnathan Arsenault <johnathan.arsenault@gmail.com> Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
* ddns-scripts: also read providers from custom directoryFlorian Eckert2020-09-28
| | | | | | | | | The provider could also be read from the custom directory. To get always the latest version of the provider config json file, we read first the custom directory and after that we also check the default directory, if we could not find the provider file Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: move all json files to defaultFlorian Eckert2020-09-28
| | | | | | | | Since we can also install custom ddns services, the name for the default services is not optimally chosen. To emphasize this the folder with the standard services for the package feed will be renamed to default. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: update dynamic_dns_*.sh installationFlorian Eckert2020-09-21
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: update cnkuai.cn to jsonFlorian Eckert2020-09-21
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: update route53-v1 to jsonFlorian Eckert2020-09-21
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: update bind-nsupdate to jsonFlorian Eckert2020-09-21
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: update no-ip.com to jsonFlorian Eckert2020-09-21
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: update digitalocean.com-v2 to jsonFlorian Eckert2020-09-21
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: update godaddy.com-v1 to jsonFlorian Eckert2020-09-21
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: update freedns.42.pl to jsonFlorian Eckert2020-09-21
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: update cloudflare.com-v4 to jsonFlorian Eckert2020-09-21
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* ddns-scripts: Update to version 2.2.0-1Christian Schoenebeck2015-02-05
| | | | | | | | | | | | | | 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>
* ddns-scripts: Update to Version 2.1.0-5Christian Schoenebeck2015-01-17
| | | | | | | | | | | | | | | | 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>
* ddns-scripts: update to version 2.1.0-4Christian Schoenebeck2015-01-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* ddns-scripts: Update to version 2.1.0-3Christian Schoenebeck2014-12-07
| | | | | | | | | | | | | | | | | | - 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>
* ddns-scripts: new Version 2.1.0-2Christian Schoenebeck2014-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | - 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>
* ddns-scripts: Update to Version 2.1.0-1 see descriptionChristian Schoenebeck2014-11-09
| | | | | | | | | | | | | | | | | | | | | | | - 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>
* ddns-scripts: add retry loop to verify dns and proxyChristian Schoenebeck2014-10-11
| | | | | | | | 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>
* ddns-scripts: Add MyDNS.JPepgdatacapbon2014-10-11
| | | | | | | MyDNS.JP, a dynamic DNS service, is added to ddns-scripts. http://www.mydns.jp/ Signed-off-by: sstream <sstream00@yahoo.co.jp>