Skip to content

ddns-scripts: fix updating IPv6 for netcup - #30516

Open
beedaddy wants to merge 1 commit into
openwrt:masterfrom
beedaddy:fix_ipv6_ddns-update-netcup-com_improved
Open

beedaddy wants to merge 1 commit into
openwrt:masterfrom
beedaddy:fix_ipv6_ddns-update-netcup-com_improved

Conversation

@beedaddy

@beedaddy beedaddy commented Sep 13, 2026

Copy link
Copy Markdown

Fixes #30387
Uses suggested fix from #30387 (comment)

📦 Package Details

Maintainer: @feckert
(You can find this by checking the history of the package Makefile.)

Description:

Fixes #30387
Uses suggested fix from #30387 (comment)

🧪 Run Testing Details

  • OpenWrt Version: 25.12.5
  • OpenWrt Target/Subtarget:
  • OpenWrt Device: GL.iNet Flint 2

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am
  • It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/<your-package>/refresh V=s
  • It is structured in a way that it is potentially upstreamable
    (e.g., subject line, commit description, etc.)
    We must try to upstream patches to reduce maintenance burden.

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit.


Generated by Claude Code

Comment thread net/ddns-scripts/files/usr/lib/ddns/update_netcup_com.sh Outdated
Comment thread net/ddns-scripts/files/usr/lib/ddns/update_netcup_com.sh Outdated
@beedaddy
beedaddy force-pushed the fix_ipv6_ddns-update-netcup-com_improved branch from e9fc205 to b6adc1a Compare September 14, 2026 17:49
@beedaddy beedaddy changed the title Fix updating IPv6 for netcup ddns-scripts: Fix updating IPv6 for netcup Sep 14, 2026
@beedaddy
beedaddy force-pushed the fix_ipv6_ddns-update-netcup-com_improved branch from b6adc1a to f73c532 Compare September 14, 2026 18:03
@beedaddy beedaddy changed the title ddns-scripts: Fix updating IPv6 for netcup ddns-scripts: fix updating IPv6 for netcup Sep 14, 2026

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit checks

  • 4eb2e6f "ddns-scripts: apply suggestion from @openwrt-ai" — subject describes the review workflow, not the change. Say what it does (e.g. ddns-scripts: fix typo in netcup comment), or fold it into ac80481.
  • f73c532 "ddns-scripts: apply suggestion from @openwrt-ai" — same; this one changes the record-match comparison to the new IP, which is the substance of ac80481 and belongs squashed into it rather than as a follow-up with an unrelated subject.

Generated by Claude Code

Comment thread net/ddns-scripts/files/usr/lib/ddns/update_netcup_com.sh
@beedaddy
beedaddy force-pushed the fix_ipv6_ddns-update-netcup-com_improved branch 2 times, most recently from cd4b82e to ea36bdf Compare September 15, 2026 17:21
@beedaddy
beedaddy force-pushed the fix_ipv6_ddns-update-netcup-com_improved branch from 48e49fd to 00d4316 Compare September 15, 2026 17:31
@beedaddy
beedaddy force-pushed the fix_ipv6_ddns-update-netcup-com_improved branch from 00d4316 to d497e69 Compare September 15, 2026 17:46
@beedaddy
beedaddy force-pushed the fix_ipv6_ddns-update-netcup-com_improved branch from d497e69 to 40c2e68 Compare September 15, 2026 17:49
@beedaddy

Copy link
Copy Markdown
Author

Sorry—getting my first PR formally correct was a bit of a struggle. But I think it's ok now.
@feckert What do you think?

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit checks

  • 40c2e68 "ddns-scripts: fix updating IPv6 for netcup: update to 2.8.5" — subject stacks two scopes behind two colons. Precedent in this package splits them into a fix commit plus a bump commit (3aca374 + 774c01b "ddns-scripts: update to 2.8.4"); the body should also state what the fix does instead of only linking the issue comment.

Generated by Claude Code

@nmeyerhans nmeyerhans left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable to me.

@BKPepe
BKPepe force-pushed the fix_ipv6_ddns-update-netcup-com_improved branch from 40c2e68 to bf9b771 Compare September 21, 2026 20:13

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commits; no new issues found.


Generated by Claude Code

@feckert

feckert commented Sep 22, 2026

Copy link
Copy Markdown
Member

Be careful not to exceed the 80-character limit in the commit message.
Please update the commit with:

ddns-scripts: fix updating IPv6 for netcup

Fix the netcup DDNS updater when comparing an existing
IPv6 record to the current address.

The previous logic relied on REGISTERED_IP and required it
to be set, but that value is not always available or reliable for
IPv6 records. As a result, the updater could wrongly skip or
fail to update AAAA entries.

This change:

-     Removes the hard dependency on REGISTERED_IP
-     Compares record type and hostname before evaluating the IP
-     Normalizes IPv6 addresses before comparison
-     Exits early when no update is required

Fixes #30387

Signed-off-by: Martin Brodbeck <martin@brodbeck-online.de>

In this commit, please increase only the PKG_RELEASE by one, not the PKG_VERSION. This is a change made in a provider and not a change to the core of the ddns-scripts.

@beedaddy Everything else looks good. If you make that change, I'd merge it as soon as possible.

@beedaddy
beedaddy force-pushed the fix_ipv6_ddns-update-netcup-com_improved branch from bf9b771 to 33e5d54 Compare September 22, 2026 16:05
Fix the netcup DDNS updater when comparing an existing
IPv6 record to the current address.

The previous logic relied on REGISTERED_IP and required it
to be set, but that value is not always available or reliable for
IPv6 records. As a result, the updater could wrongly skip or
fail to update AAAA entries.

This change:

-     Removes the hard dependency on REGISTERED_IP
-     Compares record type and hostname before evaluating the IP
-     Normalizes IPv6 addresses before comparison
-     Exits early when no update is required

Fixes openwrt#30387

Signed-off-by: Martin Brodbeck <martin@brodbeck-online.de>
@beedaddy
beedaddy force-pushed the fix_ipv6_ddns-update-netcup-com_improved branch from 33e5d54 to 237bb01 Compare September 22, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ddns-scripts: ddns-update-netcup-com.sh is never updating ...

4 participants