Commit graph

207 commits

Author SHA1 Message Date
jortkoopmans
9913e0ec29 DNSExit update for ipv6.
- Support wantipv4 and wantipv6 configs automatically
- Remove manual record type setting
- Add support for hosts on your zone (subdomain)
- Update config examples
- Code/logic improvements
2023-10-21 20:36:48 +01:00
Reuben Thomas
ef496d108f Revert URLs to canonical repo 2023-07-19 22:27:44 +03:00
Lenard Hess
1715bd3a17 Fixed hosts trying to update if IP acquisition failed 2023-07-19 17:11:45 +03:00
Lenard Hess
7869acb266 easydns, porkbun: Set status-ipv4 and status-ipv6 instead of status
This fixes caching issues when using the 'usev4' or 'usev6' parameters.
Without this, the "min-interval" and "warned-min-interval" limits will
not work.

For the legacy 'use' parameter, the wrapping code takes care of
translating 'status-ipv*' to 'status'.
2023-07-19 17:11:45 +03:00
Lenard Hess
17fd6ec083 Added preliminary explanation for provider functions 2023-07-19 17:11:45 +03:00
Lenard Hess
6c1f9632fa Fixed caching behaviour for new providers with legacy 'use' logic 2023-07-19 17:11:45 +03:00
Reuben Thomas
541e7f350c Update error message to reflect that curl is always used 2023-07-19 17:11:45 +03:00
Lenard Hess
379b1832de ddclient.in: Update Maintainers 2023-07-19 17:11:45 +03:00
Reuben Thomas
b8bed7112f Remove defunct dnsexit protocol 2023-07-19 17:11:45 +03:00
Reuben Thomas
a9c1e545fb Require curl
Use command-line curl, and remove alternative Perl and Curl-via-Perl
implementations of network code.
2023-07-19 17:11:45 +03:00
Reuben Thomas
211404b5d1 ddclient.in: update maintainer details 2023-07-19 17:11:45 +03:00
Lenard Hess
52b5eea6f4 Implemented _env suffix for configuration
With this change, any config value may be set through an environment
variable by appending '_env' to the keyword (i.e. 'password_env' instead
of 'password') and setting the value to the name of the environment
variable that contains the actual configuration value.

This allows keeping sensitive info (i.e. login and password)
out of the configuration file.

Example configuration snippet:
	protocol=namecheap,                       \
	server=dynamicdns.park-your-domain.com,   \
	login_env=DD_LOGIN,                       \
	password_env=DD_PASSWORD                  \
	@
With this configuration snippet, ddclient will use the contents of
DD_LOGIN as the login value and the contents of DD_PASSWORD as the
password value.
These can in turn be supplied via the command line, .env files or any
other mechanism to safeguard sensitive information.
2023-07-19 17:11:45 +03:00
Lenard Hess
2af841acdb Changed password config regex
The password regex searches for password assignments, extracts the
password and replaces it with a dummy value to prevent it being logged.

This change adjusts the password regex to no longer accept trailing
characters behind the password string
2023-07-19 17:11:45 +03:00
jortkoopmans
ec4d83bc3f Add support for new DNSExit API (adding protocol dnsexit2). 2023-07-19 17:11:45 +03:00
Sandro
2536a5e37a
Merge pull request #480 from michal-josef-spacek/fix_inet6
Rewrite deprecated use of IO::Socket::INET6 to new solution with IO::Socket::IP
2023-06-28 22:54:26 +02:00
Ziemowit Łąski
d3d7bda8ca Extend ZoneEdit polling interval to 10min 2023-06-03 00:42:28 -07:00
Ziemowit Łąski
218e1a9974 Squelch 'postscript' warning 2023-06-03 00:42:28 -07:00
Ziemowit Łąski
bbed067864 Fix script failures on ZoneEdit 2023-06-03 00:35:51 -07:00
Timothée Andres
82af20f8d4
Add infomaniak protocol (#537) 2023-06-01 13:47:53 +02:00
Franco Fichtner
1c91a5aa84
dyndns2: fix multiline parsing and multiple host handling (#542) 2023-06-01 10:46:04 +02:00
rolltack
aedf6f866b
Fix bug #501: (Keysystems) removed wrong parameter
Looks like there is a bug in line 542 in ddclient.in. The syntax of how the server URL is being set is different to all the other dynamic DNS services. To be precise there is one additional parameter. Instead of handing over the URL, the server variable receives the second "1" in the code below.
2023-04-15 23:53:06 +01:00
{16/7}
e92c54f6f9 Allow postscript to take args
$globals{postscript} can now contain a full command string including
arguments. In order to facilitate this, the file executability check
(-x) has been modified such that the first substring up to the first
space (if it exists) is what is checked, rather than the whole string.
2023-04-04 14:58:39 -07:00
Thomas Hebb
c436a34ede Add support for Digital Ocean 2023-03-14 11:49:10 -04:00
Sandro
b49bd9eda9
Merge pull request #519 from tchebb/fix-whitespace
Fix a few whitespace issues and a typo
2023-03-14 14:35:23 +01:00
Thomas Hebb
07fbbeb5bb Fix a few whitespace issues and a typo 2023-02-25 23:28:45 -05:00
Thomas du Boÿs
611b41e7a6
Merge configs for the same hosts instead of using the last one 2023-02-21 21:00:23 +01:00
Jontron123
c5a956e386
Add support for Enom (#508)
* Add support for Enom

* Add support for Enom

* Add support for Enom
2023-02-08 13:59:52 +01:00
Naoya Niwa
65a1bcc7d9
Add support for Porkbun (#490)
* Add support for Porkbun

* Add IPv6 support for porkbun
2023-02-08 13:56:08 +01:00
Sandro
9fccfde9e5
Merge pull request #505 from tduboys/usev4_local_config 2023-01-31 20:43:44 +01:00
Sandro
76e441c542
Merge pull request #504 from tduboys/usev4_disable_use 2023-01-29 17:43:35 +01:00
Sandro
8bbafa5988
Merge pull request #506 from drinn/devel 2023-01-29 17:41:53 +01:00
Thomas du Boÿs
5596ee83d1
set use to disabled if usev4 or usev6 is set 2023-01-28 18:49:59 +01:00
drinn
dbc40557d2 removed empty space 2023-01-28 09:59:58 -06:00
drinn
d35d62f3e7 updated nic_duckdns_update to account for extra lines in duckdns reply 2023-01-28 09:48:51 -06:00
Thomas du Boÿs
11a5bd5e7e
define usev4, usev6 and dependancies as per-host config 2023-01-28 11:34:41 +01:00
Thomas du Boÿs
cca4291360
fix ipv4 address on message log when address already set 2023-01-28 10:46:43 +01:00
Thomas du Boÿs
fa6c95f511
Update dyndns2 client to use new IPv4/IPv6 logic
Signed-off-by: Thomas du Boÿs <thomas@duboys.info>
2023-01-27 18:24:39 +01:00
Reuben Thomas
e910204b3d
Add support for Mythic Beasts Dynamic DNS (#312)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-01-14 02:24:03 +01:00
Luca Schöneberg
8d3a383587
Revert "fix hetzner zone problem", add zone_id to filter (Hetzner) (#491) 2023-01-13 22:30:06 +01:00
Sandro
5fcf4b37f2
Merge pull request #494 from mjbrowns/master 2023-01-13 18:51:27 +01:00
Sandro
63a78a7f46
Merge pull request #488 from ThinkChaos/fix/ovh-multiline-response 2023-01-13 18:51:16 +01:00
Sandro
086093839d
Merge pull request #487 from pekkanikander/master 2023-01-13 18:51:05 +01:00
Mitch Brown
ff48a0ccb9 add IPV6 support to duckdns protocol 2023-01-04 22:27:21 -05:00
bernhardfrenking
3149171aa7
Add DDNS API domeneshop.no (#478)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-12-30 03:23:30 +01:00
ThinkChaos
fcd3ef8b5a
fix: nic_ovh_update not ignoring extra data
Example bodies I've seen:

```
0013
good 127.0.0.1

0
```

```
0013
nochg 127.0.0.1
0
```

```
007
nohost

0
```

Seems like the trailing zero was not there before as the code relied
on `pop`. Instead, we find the first line that matches `good`/`nochg`.
2022-12-28 17:32:14 -05:00
Pekka Nikander
10041d225c Add IPv6 support for EasyDNS 2022-12-28 20:29:01 +02:00
Michal Josef Špaček
c4ff6c12bd Remove setting of MultiHomed, which is default in IO::Socket::IP
From doc in IO::Socket::IP in "IO::Socket::INET" INCOMPATIBILITES
section:
-----
The behaviour enabled by "MultiHomed" is in fact implemented by
"IO::Socket::IP" as it is required to correctly support searching for a
useable address from the results of the getaddrinfo(3) call. The
constructor will ignore the value of this argument, except if it is
defined but false. An exception is thrown in this case, because that
would request it disable the getaddrinfo(3) search behaviour in the
first place.
-----
2022-12-08 14:04:33 +01:00
Michal Josef Špaček
c747f2737a Rewrite deprecated use of IO::Socket::INET6 to new solution
Module IO::Socket::INET6 is deprecated.
There is common IO::Socket::IP module, which is working with ipv4 and
ipv6 in same way. There is backward compatibility with IO::Socket::INET6
2022-12-08 13:58:21 +01:00
Luca Schöneberg
89e30d0aa8 fix hetzner zone problem 2022-11-21 16:17:08 +01:00
gertfriend
f01110aedb
Add regfish (#471) 2022-11-18 08:43:47 +01:00
Sandro Jäckel
3dffe5372a
Format 2022-10-31 00:07:05 +01:00
Sandro Jäckel
e8cc636474
Use https in more places 2022-10-31 00:06:56 +01:00
Sandro Jäckel
36744e5b20
set version number via autoconf 2022-10-25 15:46:33 +02:00
Sandro Jäckel
3e2cb0a0dc
Cut 3.10.0 release 2022-10-20 20:06:35 +02:00
satrapes
c9754a125c
Add support for njal.la (#459)
Co-authored-by: Dimitris Paraskevopoulos <dpparaskevopoulos@gmail.com>
2022-09-30 14:49:57 +02:00
Thomas Hebb
8a6b9d0862 cloudflare: Remove unused $hostname variable
This is no longer used since commit 6c951a0395 ("Add files via
upload"), which updated to the Cloudflare API v4. The new API does not
require any preprocessing of the domain name.
2022-09-25 10:22:38 -07:00
pesenise
36b8db950f
Add support for domaindiscount24.com (#436)
* Update ddclient.in

add Row 526 - 529
add Row 869 - 877
add Row 6992 - 7066

* Update ChangeLog.md

* Update ChangeLog.md

* Update ddclient.in

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

* Update ChangeLog.md

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

* Update ChangeLog.md

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

* Update ddclient.in

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

* Update ddclient.in

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

* Update ddclient.in

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

* Update ddclient.in

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

* Update ddclient.in

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-07-30 17:07:10 +02:00
Sandro Jäckel
4201bf3b03
Fix version parsing for real, cut 3.10.0_2 2022-05-16 02:07:49 +02:00
Sandro Jäckel
ca4ce91497
Use numeric only version to fix tests 2022-05-15 23:08:03 +02:00
Sandro Jäckel
6be775dc10
Bump version to 3.10.0rc1 2022-05-15 22:44:51 +02:00
Richard Hansen
251b167d41
New -list-devices option
This will make it possible for the Debian package to fetch the list of
supported firewall/router devices and prompt the user to choose one
upon installation.
2022-05-15 22:28:38 +02:00
Richard Hansen
0ea681645b
New -list-protocols option
This will make it possible for the Debian package to fetch the list of
supported protocols and prompt the user to choose one upon
installation.
2022-05-15 22:28:33 +02:00
Richard Hansen
f5932d8be3
New -list-web-services option
This will make it possible for the Debian package to fetch the list of
supported built-in web-based IP discovery services and prompt the user
to choose one upon installation.
2022-05-15 22:28:26 +02:00
Sandro
833828334e
Merge pull request #413 from oddlama/develop
Improve warnings about ddclient.conf permissions. (fixes #348)
2022-05-15 22:10:17 +02:00
oddlama
327d999ca2
Improve warnings about ddclient.conf permissions. (fixes #348)
The new code will always warn if ddclient.conf is accessible by others,
warn if it is owned by ddclient and accessible by the group,
and otherwise warn if it is writable but not owned by ddclient.

This primarily allows two permission modes for ddclient.conf:
First, the classic `ddclient:ddclient mode 0600` as well as the
more restrictive `root:ddclient mode 0640` which previously
warned unnecessarily.
2022-05-12 20:34:06 +02:00
Joerg Werner
4a01678030 Add support for hetzner dns console 2022-04-23 17:46:10 +02:00
Awalon
beb7147a39
Added support for GoDaddy DNS zone updates. (#398) 2022-04-17 02:35:07 +02:00
Sandro
215d4679e4
Merge pull request #374 from so-lar-is/add-support-for-1984-is 2022-01-24 00:02:33 +01:00
Sandro Jäckel
4f5f0e0efc
Update all http endpoints which support https to that 2022-01-23 23:59:16 +01:00
me@so.lar.is
30778c5451 Add support for 1984.is 2022-01-19 01:48:54 +01:00
Sandro
17160fb016
Merge pull request #343 from zraexy/patch-1 2022-01-13 17:11:34 +01:00
Austin H
3e952e6892 Cloudflare Fix
Cloudflare was returning values not being matched properly by the regex expression.
Numbers that were not Headers.
This fix or patch should resolve that issue, by only collecting one match to JSON relevant data.
2021-08-17 11:44:37 -04:00
David Mell
9631575ab4
Update easyDNS endpoint URL
Fixes #340
2021-06-29 12:49:12 -08:00
David Mell
ed128a0b99
Fix CloudFlare zone ID endpoint URL
Fixes #339
2021-06-29 12:44:59 -08:00
Reuben Thomas
f0270e4940
Add dnsexit support (based on #52) (#311)
* Patch in dnsexit support

Based on patch from here https://sourceforge.net/p/ddclient/discussion/399428/thread/04e23ee6/ hacked back in.

* dnsexit: check for valid responses that mean 'failure' (from @truesalo)

Co-authored-by: sreknob <sreknob@hotmail.com>
2021-05-12 14:45:28 -05:00
David Kerr
b84f2334e4
Redact login and password when printing out internal hash values (#274)
* Redact login and password when printing out internal hash values

* Remove from debug message in geturl()  parameters sent as part of a URL

* Update comment with password redaction

Making it clearer that all parameters are redacted, not just password related ones.

Co-authored-by: DaveSophoServices <dave@sophoservices.com>
2021-05-11 20:26:02 -05:00
David Kerr
24ba945949
IPv6 framework + Cloudflare + FreeDNS (#291)
* Add basic framework to support IPv6

* Update cloudflare to use new IPv6 framework

* Update FreeDNS to use new IPv6 framework
2021-05-11 20:16:19 -05:00
Mike Chester
9fb2aee4d0
Fix geturl function call for Gandi (#314)
* Fix geturl function call

The function should be called without the brackets

* Update ci.yml

Removed Cento6 & 8

Co-authored-by: DaveSophoServices <dave@sophoservices.com>
2021-05-11 10:48:44 -05:00
DaveSophoServices
29cfc55581
Merge pull request #324 from krerkkiat/doc-cloudflare-token
modify Cloudflare documentation
2021-05-11 10:01:36 -05:00
Sandro Jäckel
9a44eeb826
Use HTTP/1.0, fix #332 2021-05-11 11:47:10 +02:00
Krerkkiat Chusap
db8b6baca9 modify Cloudflare documentation
It seems that ddclient check if the login field is equal to "token" to
use the correct header for the API token.
2021-04-05 12:36:45 -04:00
David Kerr
4c76274ba6 Add missing comment block 2020-09-21 15:16:48 -04:00
David Kerr
1b2f45cc59 Add get_default_interface 2020-09-21 15:16:48 -04:00
David Kerr
213cf6ad09 Add get_ip_from_interface function 2020-09-21 15:16:11 -04:00
David Kerr
d1d7548e09 So the bug was actually in the escape_curl_param function, not that the data should not be escaped 2020-08-22 21:32:27 -04:00
David Kerr
6ae64e6cfb bug fix... segfault when using WWW::Curl::Easy->pushopt() replace with setopt() 2020-08-21 17:28:57 -04:00
David Kerr
4c79c6b607 must not escape the 'data' field sent to servers. 2020-08-21 17:01:13 -04:00
David Kerr
3a73e5e6b4 header_ok() function must accept HTTP versions other than just '1' 2020-08-21 16:59:07 -04:00
David Kerr
cde60432dd Remove from debug message in geturl() parameters sent as part of a URL 2020-08-12 12:53:59 -04:00
David Kerr
8106b3025f Add support to use WWW::Curl::Easy if it exists 2020-08-07 11:17:44 -04:00
David Kerr
d24b75960d Add support for curl and option to not validate SSL certificates for getip from web or firewall
Check exists not just length
2020-08-07 11:17:44 -04:00
Richard Hansen
2de6a02f14 New %builtinweb entries for nsupdate.info 2020-08-04 13:58:51 -04:00
Richard Hansen
c9b6c8b3bf New %builtinweb entries for whatismyv6.com 2020-08-04 13:57:07 -04:00
Richard Hansen
ae89dbdfa3 New %builtinweb entry for Hurricane Electric 2020-08-04 13:54:49 -04:00
Richard Hansen
fb42a50318 New %builtinweb entry for ZoneEdit 2020-08-04 13:51:26 -04:00
Richard Hansen
460cf2f465 New %builtinweb entry for FreeDNS 2020-08-04 13:51:26 -04:00
Richard Hansen
1a8bfafb3d New %builtinweb entry for Google Domains 2020-08-04 13:51:26 -04:00
Richard Hansen
ad81aa43d2 New %builtinweb entries for noip.com 2020-08-04 13:51:26 -04:00
Richard Hansen
295ba387aa Rename ipifyipv{4,6} to ipify-ipv{4,6}
The added dash makes it easier to read.
2020-08-04 13:51:26 -04:00
Richard Hansen
f3a92fbe63 Delete trailing commas 2020-08-04 13:46:21 -04:00