nextcloud / nextcloud/nextcloudpi

spDYN must use "checkip4.spdyn.de" in its script

Open
#1,804 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

has-updates
Dominant language
Shell
Stars
2.9k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

Bug and solution

Running in a dual-stack environement (IPv4 and IPv6) lead to failures in the script /usr/local/etc/spdnsupdater/spdnsUpdater.sh. This is because http://checkip.spdyn.de than returns the IPv6 address. Instead http://checkip4.spdyn.de must be called to get the IPv4 address in any case.

You need to detect a change of the IPv4 address to initiate the dynDNS update, which also works for private address ranges according to the docs of spdyn.de. Maybe (not yet tested) some additional handling for the IPv6 address has to be added to the script, but my IPv6 address changes not that often.

Important

A possible sign of a dynDNS problem is the loss of connection to the HPB service, which stops working in the default configuration when the IPv4 address changes and is not updated. For this services it should be considered to use localhost instead of the Nextcloud DNS name...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open /usr/local/etc/spdnsupdater/spdnsUpdater.sh and trace how it obtains the address and decides whether to update. Verify the script uses checkip4.spdyn.de and detects IPv4 changes, including private address ranges described by spdyn.de. The issue also raises possible IPv6 handling, which should be clarified before considering the work complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.