Search squid archive

Re: squid and chroot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Henrik Nordstrom schrieb:
ons 2009-08-19 klockan 13:34 +0200 skrev Tom Penndorf:

Ok, I've copied mime.conf, icons and errors to root, also the unlinkd, resolv.conf and nsswitch.conf. Now i can start squid, but it can't do dns lookups, it repreats the following error on startup:

2009/08/19 13:26:23| Starting Squid Cache version 3.0.STABLE8 for x86_64-pc-linux-gnu...
2009/08/19 13:26:23| Process ID 26190
2009/08/19 13:26:23| With 1024 file descriptors available
2009/08/19 13:26:23| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.

Probably it doesn't find any dns servers. Try copying /etc/resolv.conf
or specify the dns servers in squid.conf.


Regards
Henrik


That was also my first thought, so i'd already copied the file, no change. Now, i've specified the dns-servers in the config, but the error remains the same. But after some strace, i've found the reason. You need to copy the /lib/libnss_dns.so.2 to the chroot-directory.

Now it runs. :)

Thanks,

Tom


--
Viele Grüße

Tom Penndorf
//SEIBERT/MEDIA/SYSTEMS

--
//SEIBERT/MEDIA GmbH / Rheingau Palais
 Söhnleinstraße 8 / 65201 Wiesbaden
 GF: J.Seibert und M.Seibert / AG Wiesbaden: HRB11502

 T.+49-611-20570-26 / F.+49-611-20570-70
 tpenndorf@xxxxxxxxxxxxxxxxx
www.seibert-media.net / http://blog.seibert-media.net
 --
Consulting / Design / Technologies / Systems



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux