On Wed, May 14, 2014 at 18:57, Denis Fondras wrote: > Hello all, > > I am burning my last neurons with a behavior I can't explain. I wonder > why getaddrinfo() fails when called after chroot() with root user.
After chroot, /etc/resolv.conf is no longer available. > If this an expected behavior, what would be the preferred way to resolve > a name from a chrooted process ? I am extending OpenBGPd and I need to > resolve domain names and connect to a service (no BGP protocol). I am > currently using the "session" process to handle the connection part but > I am stuck on name resolution for now. Other daemons like ntpd have a helper process that runs outside chroot and does all of the DNS resolution for them.