On Thu, Nov 21, 2002 at 10:28:00AM +0100, Frank Sackewitz wrote:
Hi,
Hi!
I´ve to apologize to the proxy-suite-team. The mistake was sitting in front of the screen.
ftp-proxy works fine if I start it out of my chroot. Running in my chroot-envir ftp-proxy is unable to resolve IP-Addresses via bind. Via host it works.
What functions uses ftp-proxy to resolve addresses via bind? Does it call any binary?
No, it uses normal glibc functions gethostname, gethostbyname
and inet_aton, inet_ntoa. No direct resolver calls are used.
The glibc is using the NSS stuff (name service switch), i.e.
/etc/nsswitch.conf, /etc/resolv.conf, libnss_dns, libnsl,
libresolv. You need them all - config+libs - in your chroot.
Note also: if you do any changes to these files, you have to
restart/reload the nscd (name service caching daemon).
Try to strace it. Start the proxy, connect using the clinent,
find out the pid of the child process and attach strace to it:
strace -f -o filename -p PID
After strace is running, login using MagicChar with hostname.
You should be able to see, what happens / fails.
Kind regards,
Marius Tomaschewski