Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1021345: ddclient: makes use of "ifconfig" which isn't available in recent installations

378 views
Skip to first unread message

Uwe Kleine-König

unread,
Oct 6, 2022, 6:50:03 AM10/6/22
to
Package: ddclient
Version: 3.9.1-7
Severity: normal
X-Debbugs-Cc: ukle...@debian.org

Hello,

root@sleazy:~# /usr/sbin/ddclient -query
Can't exec "ifconfig": No such file or directory at /usr/sbin/ddclient line 1540.
WARNING: cannot connect to ipdetect.dnspark.com:80 socket: IO::Socket::INET: Bad hostname 'ipdetect.dnspark.com'
WARNING: found neither ipv4 nor ipv6 address
use=web, web=dnspark address is NOT FOUND
use=web, web=dyndns address is xx.xx.xx.xx
use=web, web=loopia address is xx.xx.xx.xx

Using something like

ip -json a show dev $if

as source would be more appropriate as the iproute2 package (which
provides the ip command) has "Priority: important". Compared to that
net-tools (which provides ifconfig) has only "Priority: optional".

Also a Recommends on the package in use would be suitable IMHO.

Best regards
Uwe

-- System Information:
Debian Release: 11.5
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable'), (1, 'experimental')
Architecture: arm64 (aarch64)

Kernel: Linux 5.16.0-rc4-arm64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CRAP, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ddclient depends on:
ii debconf [debconf-2.0] 1.5.77
ii init-system-helpers 1.60
ii libdata-validate-ip-perl 0.30-1
ii lsb-base 11.1.0
ii perl 5.32.1-4+deb11u2

Versions of packages ddclient recommends:
pn libdigest-sha-perl <none>
ii libio-socket-inet6-perl 2.72-2.1
ii libio-socket-ssl-perl 2.069-1
ii perl [libjson-pp-perl] 5.32.1-4+deb11u2

ddclient suggests no packages.

-- debconf information excluded

Richard Hansen

unread,
Nov 28, 2022, 1:50:04 AM11/28/22
to
On 10/6/22 06:39, Uwe Kleine-König wrote:
> Using something like
>
> ip -json a show dev $if
>
> as source would be more appropriate

It does use the `ip` command; it just attempts `ifconfig` first, and falls back to `ip` if `ifconfig` fails: <https://github.com/ddclient/ddclient/blob/v3.9.1/ddclient#L2227-L2228>. The command not found error is benign and can be ignored.

(Note: ddclient v3.10.0 changed the behavior. It now attempts `ip` before falling back to `ifconfig`, and it doesn't print an error if the command doesn't exist: <https://github.com/ddclient/ddclient/commit/e3a6cbf1b64c1c74d98e19624bf5ea23fe384847>. I have not yet updated the Debian package to v3.10.0. I will do that soon.)

OpenPGP_signature
0 new messages