Richard Hansen
0ffffb1400
Delete unnecessary force_update => undef
lines
2024-07-26 17:21:11 -04:00
Richard Hansen
5a8bee1e4d
Delete unnecessary nic_dyndns2_force_update
...
The `nic_updateable` function already checks the variables to see if
they have changed, so this function is redundant.
2024-07-26 17:06:09 -04:00
Richard Hansen
2a9abc9d4c
Delete unused nic_easydns_force_update
function
2024-07-26 17:04:12 -04:00
Richard Hansen
59ff497c1b
Merge pull request #717 from jameskimmel/patch-1
...
delete unused zoneedit force update
2024-07-24 13:53:42 -04:00
jameskimmel
bcfdf70c34
delete unused zoneedit force update
...
I think this sub is never used.
2024-07-23 18:53:27 +02:00
Richard Hansen
482be5ce46
Merge pull request #716 from rhansen/defunct
...
Delete defunct services
2024-07-23 00:12:49 -04:00
Richard Hansen
9996c1b7d4
googledomains: Remove support for defunct service
2024-07-22 23:28:33 -04:00
Richard Hansen
ddfa8663ad
woima: Remove support for defunct service
2024-07-22 23:26:41 -04:00
Richard Hansen
cf078017c2
Merge pull request #713 from rhansen/easydns
...
easydns: Multiple fixes and cleanups
2024-07-21 23:18:49 -04:00
Richard Hansen
3c68abe551
easydns: Fix incorrect status value on success
2024-07-20 03:44:05 -04:00
Richard Hansen
a7feb95091
easydns: Add missing OK
and NO_AUTH
result codes
2024-07-20 03:44:05 -04:00
Richard Hansen
d8c74169ee
easydns: Include the full ILLEGAL INPUT
result code in log messages
2024-07-20 03:44:05 -04:00
Richard Hansen
a724084114
easydns: Fix extraction of result code from response body
...
The server returns a full HTML document, not just the result code.
Change equality check to a regex match that is resilient to
server-side changes.
2024-07-20 03:44:05 -04:00
Richard Hansen
435357ac50
easydns: Invert condition to improve readability
2024-07-20 03:44:04 -04:00
Richard Hansen
da26fe76e0
easydns: Update IPv4 and IPv6 separately
...
https://kb.easydns.com/knowledge/dynamic-dns/ doesn't say anything
about repeating the `myip` parameter, or that both IPv4 and IPv6
addresses can be included in the same `myip` parameter.
Unfortunately it also doesn't say whether updating the IPv4 address
alone will nuke the IPv6 AAAA record, or whether updating the IPv6
address alone will nuke the IPv4 A record (like Google Domains used to
do). Here's hoping that the A and AAAA records are truly independent.
2024-07-20 03:44:04 -04:00
Richard Hansen
7a4b96e04e
easydns: Delete incorrect handling of TOOSOON
error
...
Before:
* `$scale` was ignored causing it to set `wtime` to 5s in the
future, which is too brief. Fortunately, `min-error-interval`
applied which prevented overly aggressive retries.
* The lack of call to `failed` meant that `$result` was not set to
"FAILED" and thus `mail-failure` recipients were not emailed.
Now `TOOSOON` is treated like any other error and will result in a
retry after `min-error-interval` (default: 5m).
2024-07-20 03:35:56 -04:00
Richard Hansen
fb990208b3
easydns: Consolidate lines for readability
2024-07-20 03:35:56 -04:00
Richard Hansen
6992a34028
easydns: Simplify response processing
2024-07-20 03:35:56 -04:00
Richard Hansen
7a2625b7a7
easydns: Refine log messages
...
* Consistently use just the hostname as the log message prefix.
* Delete redundant verbose log message.
* Log IPv4 and IPv6 separately in case `$ipv4` or `$ipv6` is
`undef`.
* Don't log the full line when a known error result is returned.
* For unknown results, don't wrap the line in parentheses.
* Use string interpolation for readability.
2024-07-20 03:35:56 -04:00
Richard Hansen
94c304601e
easydns: Increase default min-interval
to 10m
2024-07-20 03:35:56 -04:00
Richard Hansen
e7ad0e8e6e
easydns: Whitespace fixes
2024-07-20 03:35:46 -04:00
Richard Hansen
c57f4b0d56
ChangeLog.md: Fix PR URL
2024-07-20 03:35:45 -04:00
Richard Hansen
2792689c35
ChangeLog.md: Fix PR URLs
2024-07-20 03:06:52 -04:00
Richard Hansen
e142d6a5ac
Merge pull request #712 from rhansen/geturl
...
Delete `--geturl` command-line argument and `geturl` option
2024-07-19 18:10:19 -04:00
Richard Hansen
3a57ca1374
Delete --geturl
command-line argument and geturl
option
...
They are not used in any tests, and `curl` is a better choice anyway.
2024-07-19 18:06:28 -04:00
Richard Hansen
dab67eae69
README.md: Revise troubleshooting section
...
* Use a bulleted list instead of a numbered list
* Fix indentation
* Fix formatting
* Replace `fw` with `fwv4`
* Suggest `curl` instead of `ddclient --geturl`
* etc.
2024-07-19 18:06:28 -04:00
Richard Hansen
dfef6b2e99
Merge pull request #711 from rhansen/godaddy
...
godaddy: readability improvements
2024-07-19 16:36:24 -04:00
Richard Hansen
12b2c0d03d
godaddy: Inline some unnecessary variables
2024-07-19 16:21:37 -04:00
Richard Hansen
bdc69d879f
geturl: Accept an arrayref for headers
2024-07-19 16:21:37 -04:00
Richard Hansen
b9144c01c2
godaddy: Use eq
for string equality
...
`==` is for numeric equality.
2024-07-19 16:21:37 -04:00
Richard Hansen
4b2155a43c
godaddy: Combine URL lines to improve readability
...
Also drop unnecessary curly braces for consistency.
2024-07-19 16:18:14 -04:00
Richard Hansen
6e98c0cdb2
godaddy: Invert conditional to improve readability
2024-07-19 16:17:50 -04:00
Richard Hansen
b1c0029604
godaddy: Simplify for
loop
2024-07-19 16:17:49 -04:00
Richard Hansen
3258ea34c0
godaddy: Shorten variables for brevity and consistency
2024-07-19 16:17:19 -04:00
Richard Hansen
56f4a2afe2
godaddy: Don't bother setting status on error
...
It's initialized to a non-'good' value before the function is called,
and ddclient doesn't distinguish between different non-good values, so
it is sufficient to leave it alone.
2024-07-19 16:16:44 -04:00
Richard Hansen
e01ed55a58
godaddy: Simplify and improve error messages
2024-07-19 16:16:21 -04:00
Richard Hansen
c63eb0f060
godaddy: Fix dubious response body check
...
It doesn't make sense to continue processing if the response body
can't be parsed. Maybe GoDaddy returned 200 and there's a bug in the
body parsing logic, in which case the `bad` result should actually be
`good`. But it's better to assume that the update wasn't saved, in
case the server returns 200 with a JSON object that semantically means
"failed to update".
2024-07-19 16:15:37 -04:00
Richard Hansen
f82d2af0f2
godaddy: Whitespace fixes
2024-07-19 16:15:30 -04:00
Richard Hansen
53b373fc9e
godaddy: Delete unnecessary comments
2024-07-19 16:08:41 -04:00
Richard Hansen
5ab15b1d53
Merge pull request #690 from Starkstromkonsument/add_INWX_support
...
Add new protocol inwx
2024-07-19 02:28:30 -04:00
Starkstromkonsument
83ef1fa99a
Add new protocol inwx
...
Adoption of protocol dyndns2 to support their custom URL:
'https://dyndns.inwx.com/nic/update?myip= <ipaddr>&myipv6=<ip6addr>'
2024-07-19 02:26:25 -04:00
Richard Hansen
f6e13f8003
Merge pull request #709 from rhansen/dyndns2
...
`dyndns2` readability improvements, take 2
2024-07-19 02:25:08 -04:00
Richard Hansen
30a7c5ad78
dyndns2: Delete obsolete custom
and static
options
...
<https://help.dyn.com/remote-access-api/perform-update/ > says:
> We will accept these parameters without generating error messages:
>
> * `system`, previously used to identify update type
2024-07-19 02:12:53 -04:00
Richard Hansen
26f57bf36a
dyndns2: Delete obsolete(?) "wait" response handling
2024-07-19 01:33:02 -04:00
Richard Hansen
adfd68d5e0
dyndns2: Refine log messages
2024-07-18 05:42:49 -04:00
Richard Hansen
1e73f4a51a
dyndns2: Wrap long list of group by attributes
2024-07-18 05:42:49 -04:00
Richard Hansen
90de2f9606
dyndns2: Improve readability of status parsing
2024-07-18 05:42:49 -04:00
Richard Hansen
88f140d470
dyndns2: Invert condition to improve readability
2024-07-18 05:42:48 -04:00
Richard Hansen
8a667e3f57
dyndns2: Treat nochg
as good
to eliminate duplicate code
2024-07-18 05:42:30 -04:00
Richard Hansen
db3472a7ce
dyndns2: Simplify response parsing
2024-07-18 05:42:29 -04:00