<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/net/ddns-scripts/files/usr/lib/ddns, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git-03.infra.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/'/>
<updated>2026-11-17T06:46:31Z</updated>
<entry>
<title>ddns-scripts: add support for query type in busybox nslookup</title>
<updated>2026-11-17T06:46:31Z</updated>
<author>
<name>Jorge Gallegos</name>
</author>
<published>2026-06-10T17:33:34Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=80980cdb5d5c3dca95cba022664d8bc866ad49ec'/>
<id>urn:sha1:80980cdb5d5c3dca95cba022664d8bc866ad49ec</id>
<content type='text'>
Busybox's nslookup supports query type since:

    commit 4b6091f92c1c5abfe4597af4f3f6fa266ac46a5a
    Author: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
    Date:   Sun Apr 15 12:57:32 2018 +0200

https://github.com/vda-linux/busybox_mirror/commit/4b6091f92c1c5abfe4597af4f3f6fa266ac46a5a

Signed-off-by: Jorge Gallegos &lt;kad@blegh.net&gt;
</content>
</entry>
<entry>
<title>ddns-scripts: add DNSimple DNS provider and bump to v2.8.6</title>
<updated>2026-11-17T06:46:31Z</updated>
<author>
<name>Jorge Gallegos</name>
</author>
<published>2026-06-09T19:29:45Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=cff8bc38b5b611309cddc3d78561ed3c6ab0a7b8'/>
<id>urn:sha1:cff8bc38b5b611309cddc3d78561ed3c6ab0a7b8</id>
<content type='text'>
Add DDNS update support for DNSimple DNS via their REST API.
Authentication is performed via API Token.

Will attempt to create a new or edit an existing A or AAAA record for the
given lookup host and domain. "password" configuration should be set to
DNSimple API token. "username" should be set to the DNSimple account ID.
"domain" should be set to the DNSimple zone. Optionally, "param_opt" can
be set to an existing DNSimple record.

Based it off the porkbun script, as it behaves very similar.

Signed-off-by: Jorge Gallegos &lt;kad@blegh.net&gt;
</content>
</entry>
<entry>
<title>ddns-scripts: remove cnkuai.cn</title>
<updated>2026-11-12T14:36:03Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-11-11T11:37:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=10460f5df7f36b15609dd5775e1fa91a2326dbd4'/>
<id>urn:sha1:10460f5df7f36b15609dd5775e1fa91a2326dbd4</id>
<content type='text'>
The cnkuai.cn update script logs in to the cp.cnkuai.cn control panel
and reads the login captcha by piping it through gif2rgb.

This no longer works. Every plain HTTP request to cp.cnkuai.cn gets a
308 redirect to https://cp.cnkuai.cn without the original path. The
script calls curl without following redirects, so gif2rgb receives the
redirect page instead of the captcha and the update fails at the first
request. Moving the URLs to HTTPS is not enough either. The captcha is
now a 72x18 BMP image, gif2rgb rejects it with "Data is not in GIF
format", and the decoder in the script expects a 48 pixel wide GIF.

Fixing this needs a new captcha decoder and a cnkuai.cn account to test
it with. Remove the ddns-scripts-cnkuai package, its update script and
the provider definition.

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
</content>
</entry>
<entry>
<title>ddns-scripts: apply HTTPS settings to https:// URLs</title>
<updated>2026-11-12T14:35:22Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-11-11T12:40:42Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=9ae6abf62ac6b6bede554161f5276f45dcee7013'/>
<id>urn:sha1:9ae6abf62ac6b6bede554161f5276f45dcee7013</id>
<content type='text'>
do_transfer() applies the cacert option and checks that the transfer
program supports HTTPS only when use_https is enabled. Many provider
definitions use https:// update URLs, and a custom update_url or ip_url
can do the same. With use_https disabled, such a transfer ignores
cacert, including IGNORE. On a device without HTTPS support the
transfer is still attempted and retried, although it cannot succeed.

Treat a transfer as HTTPS when use_https is enabled or the URL starts
with https://. Without HTTPS support in uclient-fetch, curl or BusyBox
wget, the update now stops with the matching error message, as it
already does with use_https enabled. A cacert value left in a
hand-written configuration with use_https disabled now applies to
https:// URLs. LuCI removes cacert on save when use_https is disabled.

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
</content>
</entry>
<entry>
<title>ddns-scripts: use retry interval on error 127</title>
<updated>2026-11-10T07:40:13Z</updated>
<author>
<name>Andy Chiang</name>
</author>
<published>2026-11-07T03:58:43Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=3b8bb883c2b4980b06e4bd220d572ae7e6f80f42'/>
<id>urn:sha1:3b8bb883c2b4980b06e4bd220d572ae7e6f80f42</id>
<content type='text'>
`send_update()` returns `127` when the IP to be sent is private, ULA
or otherwise invalid (and "allow non-public IP" is disabled). In this
case nothing is sent to the DDNS provider.

This can happen right after boot when the interface used to obtain the
IP address (e.g. `br-lan`) only has a ULA address yet, because the GUA
(e.g. from prefix delegation) has not been assigned. Currently the
updater then waits a full `Check Interval` (10 minutes by default)
before trying again.

Since no request was sent to the provider, retrying early is safe and
does not risk the rate limiting that the `Check Interval` is meant to
prevent. Use the `Retry Interval` when `send_update()` returns `127`,
and keep using the `Check Interval` for all other cases.

Signed-off-by: Andy Chiang &lt;AndyChiang_git@outlook.com&gt;
</content>
</entry>
<entry>
<title>ddns-scripts: fix debug log for interface IP</title>
<updated>2026-11-10T07:40:13Z</updated>
<author>
<name>Andy Chiang</name>
</author>
<published>2026-11-07T04:10:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=52e2e9bd97cecdfe07a71cdaf66a32c60b7f7576'/>
<id>urn:sha1:52e2e9bd97cecdfe07a71cdaf66a32c60b7f7576</id>
<content type='text'>
The debug log printed when detecting the IP address from an interface
did not include the IP family option, while the commands actually
executed use `-4` or `-6` depending on `use_ipv6`.

Include the family option in the log so that it matches the command
that is run.

Signed-off-by: Andy Chiang &lt;AndyChiang_git@outlook.com&gt;
</content>
</entry>
<entry>
<title>ddns-scripts: drop hostip support</title>
<updated>2026-10-31T09:19:26Z</updated>
<author>
<name>Sander van Deijck</name>
</author>
<published>2026-10-30T11:40:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=cfc52647b4ec8858b0688bb11640ac3e32360b98'/>
<id>urn:sha1:cfc52647b4ec8858b0688bb11640ac3e32360b98</id>
<content type='text'>
hostip was a subpackage of dnscrypt-proxy, which is removed in the
previous commit. Drop its detection and the lookup and parsing branches
in get_registered_ip(), so lookups fall through to BusyBox nslookup when
none of bind-host, knot-host or drill are installed.

Signed-off-by: Sander van Deijck &lt;sander@vandeijck.com&gt;
</content>
</entry>
<entry>
<title>ddns-scripts: fix updating IPv6 for netcup</title>
<updated>2026-09-25T06:18:06Z</updated>
<author>
<name>Martin Brodbeck</name>
</author>
<published>2026-09-13T12:07:10Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=55a465f3583b160258d735af063599324e6b7bff'/>
<id>urn:sha1:55a465f3583b160258d735af063599324e6b7bff</id>
<content type='text'>
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 &lt;martin@brodbeck-online.de&gt;
</content>
</entry>
<entry>
<title>ddns-scripts: add gandi pat support</title>
<updated>2026-09-01T06:26:59Z</updated>
<author>
<name>Keith T. Garner</name>
</author>
<published>2026-08-11T19:17:59Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=413aa843b066dd0314c6ab36449fc5638285a94e'/>
<id>urn:sha1:413aa843b066dd0314c6ab36449fc5638285a94e</id>
<content type='text'>
Gandi has deprecated Api Key for authentication and replaced it with
Personal Access Tokens. This adds a v2 gandi package containing a script
using the new authentication scheme while keeping the old version intact
for any existing API Key users. Additionally, it documents the old
version as deprecated and points users to v2.

Signed-off-by: Keith T. Garner &lt;kgarner@kgarner.com&gt;
</content>
</entry>
<entry>
<title>ddns-scripts: fix root command injection through ddns_dateformat</title>
<updated>2026-07-30T09:43:04Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2026-07-26T16:08:10Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=7364629d70df51f2f618a867e901151b6764ee5d'/>
<id>urn:sha1:7364629d70df51f2f618a867e901151b6764ee5d</id>
<content type='text'>
The date format read from the UCI option ddns.global.ddns_dateformat was
embedded into a command string that is later executed through "eval", both
for the recurring log timestamps

  DATE_PROG="date +'$ddns_dateformat'"
  ...
  write_log 5 "PID '$$' started at $(eval $DATE_PROG)"

and for the "last update" timestamp in the updater

  EPOCH_TIME="date -d @$EPOCH_TIME +'$ddns_dateformat'"
  write_log 7 "last update: $(eval $EPOCH_TIME)"

The value is only wrapped in single quotes, so a single quote inside it
closes that quote and starts a new shell word. A user who can write the ddns
configuration - a delegated DDNS operator who was never granted shell access
- can set

  ddns_dateformat="%F'; touch /tmp/pwned; '"

and have arbitrary commands run as root, because the updater runs as root.
The injection triggers on the next start of the updater, so in practice on
the next reconfiguration or reboot.

Stop building shell code from the option. Provide date_prog() as an ordinary
shell function and pass the format as a single quoted argument in both
places, which leaves no way for its content to be interpreted by the shell.
The remaining use of ddns_dateformat in dynamic_dns_updater.sh, for
NEXT_CHECK_TIME, already substituted it as a quoted argument without eval
and was not affected.

luci-app-ddns consumes the same option and is fixed separately in the LuCI
repository.

Reported-by: Matthew Hickey (Hacker Fantastic, https://hacker.house)
Fixes: 1c20dcb71a69 ("ddns-scripts: update to 2.7.6-1")
Assisted-by: Claude:claude-opus-5
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
</feed>
