Package: auto-apt-proxy Version: 14.1 Severity: normal Dear Maintainer,
Hello, in my environment the name `apt-proxy` resolves to both an IPv4 and an IPv6 address. In `/usr/bin/auto-apt-proxy` the hostname `apt-proxy` is resolved via the following command: getent hosts apt-proxy But the above command omits all IPv4 addresses, if at least one IPv6 address is found. This seems to be the quirky - but intended - behavior of the `getent hosts` command: https://sourceware.org/bugzilla/show_bug.cgi?id=10859 This prevents `auto-apt-proxy` from working in environments, where IPv6 is disabled for some reason (e.g. a docker instance started by gitlab-runner configured for IPv4-only). There, IPv6 addresses are returnd by `getent hosts`, but the IPv4-only network setup renders these addresses unreachable. Maybe something like the following command could be useful instead? getent ahosts ix.de | awk '{print $1}' | sort --reverse | uniq This should return all IPv4 and IPv6 addresses for a given hostname. `--reverse` seems to result in IPv6 addresses being on top. Cheers, Lars -- System Information: Debian Release: trixie/sid APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.5.0-2-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages auto-apt-proxy depends on: ii apt 2.7.6 Versions of packages auto-apt-proxy recommends: ii busybox 1:1.36.1-3.1 ii iproute2 6.5.0-4 auto-apt-proxy suggests no packages. -- no debconf information