Re: Re: Re: USER-WRN bad 'USER@' dest
Marius Tomaschewski <[email protected]> Fri, 22 Nov 2002 11:18:30 +0100
| Newsgroups | gmane.linux.suse.proxy-suite |
|---|---|
| Organization | SuSE Product Developement |
| Message-ID | <[email protected]> |
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 <[email protected]> -- SuSE Linux AG, Nürnberg -- Product Developement PGP public key on: http://www.suse.de/~mt/mt.pgp DF17 271A AD15 006A 5BB9 6C96 CA2F F3F7 373A 1CC0 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]