Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including
Stack Overflow
, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this community
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Questions must be relevant to
professional
system administration.
Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the
Help Center
for more information.
Closed
9 years ago
.
i can't resolve domain names in chrooted environment - in the normal shell it works fine.
i'm using plesk 11.5 and my chroot environment contains the following:
https://gist.github.com/xarem/5356ca94367ea8666e23
my resolv.conf:
search company.ch
nameserver 8.8.8.8
nameserver 8.8.4.4
my nsswitch.conf:
passwd: compat
group: compat
shadow: compat
hosts: dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
i tried to port nslookup into the chrooted env, but that didn't work and i can't find a solution for this:
usr@srv:/$ nslookup google.com
(null): dst_lib_init: openssl failure
Can someone help me? Thank you very much.
If apt-get is not available in the jail it's also possible by just copying the openssl libs into the chroot jail.
cp -R /usr/lib/x86_64-linux-gnu/openssl-1.0.0 /<chroot>/usr/lib/x86_64-linux-gnu/
Remember to set permissions correctly.
–