添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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.

It would be better to explain why you're writing about apt-get here. I couldn't understand your answer if not by reading the other answer provided. Please make your answer standalone or explicitly refering to the other answer if you want to credit it or you think it is useful. – Lætitia Jan 14, 2014 at 18:18