Package: libresolv-wrapper Version: 1.1.8-2+b1 Severity: normal Tags: upstream X-Debbugs-Cc: debian.a...@manchmal.in-ulm.de
Greetings, while looking for a way to overload hostname resolution as non-root (part of a test suite and/or autopkgtest), I came across your package. However, *nothing* works, not even in the stable releases. Assuming this is rather a "you're holding it wrong" than a grave bug in libresolv-wrapper, I guess usage is not as easy as it seems. So can you please provide an as-simple-as-possible example, in the tradition of "Hello, world"? It could be like echo "A server1.example.com 192.0.2.1" >/tmp/hosts LD_PRELOAD=libresolv_wrapper.so \ RESOLV_WRAPPER_HOSTS=/tmp/hosts \ $MAGIC where the output signalizes the hostname server1.example.com was indeed resolved into the given IP address. These are the things I've tried without success: * getent hosts server1.example.com * host server1.example.com * wget -O /dev/null http://server1.example.com/ * the actual application, using a gnutls linkage According to strace, libresolv_wrapper.so is loaded but there is no access to the mocked hosts file. According to ltrace, none of the RESOLV_WRAPPER_* variables are checked via getenv. Not a big surpise then: Setting RESOLV_WRAPPER_DEBUGLEVEL had no effect either. Using <https://github.com/figiel/hosts>, the above checks work except for the second one. However, this project is not in Debian. Christoph -- System Information: Debian Release: trixie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 6.6.22 (SMP w/8 CPU threads) 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) Versions of packages libresolv-wrapper depends on: ii libc6 2.37-15.1 libresolv-wrapper recommends no packages. libresolv-wrapper suggests no packages. -- no debconf information
signature.asc
Description: PGP signature