From: Andy Chiang Date: Sun, 7 Jun 2026 02:52:00 +0000 (+0700) Subject: ddns-scripts: fix log noise X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=52b5b8e6552d2e845e2b11db571baf4d493409b9;p=openwrt-packages.git ddns-scripts: fix log noise When fetching the IP via a URL with `force_ipversion` enabled, a `Busybox nslookup - no support to 'force IP Version' (ignored)` log is generated periodically. This log is redundant, in this scenario `force_ipversion` only affects the results fetched by wget/uclient-fetch/curl. It is perfectly fine for nslookup to query both A/AAAA records simultaneously. Signed-off-by: Andy Chiang --- diff --git a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh index 94d3a5b8c..72c5bb052 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh @@ -1022,8 +1022,6 @@ get_registered_ip() { write_log 14 "Busybox nslookup - no support for 'DNS over TCP'" [ -n "$NSLOOKUP_MUSL" -a -n "$dns_server" ] && \ write_log 14 "Busybox compiled with musl - nslookup don't support the use of DNS Server" - [ $force_ipversion -ne 0 ] && \ - write_log 5 "Busybox nslookup - no support to 'force IP Version' (ignored)" __RUNPROG="$NSLOOKUP $lookup_host $dns_server >$DATFILE 2>$ERRFILE" __PROG="BusyBox nslookup"