[stunnel-users] Problem with name resolving when using delay option
Maksymilian Kowalik
bass100 at wp.pl
Mon Apr 6 14:56:02 CEST 2009
Hi,
theese extract from strace may say something:
15871 open("/etc/resolv.conf", O_RDONLY) = -1 ENOENT (No such file or
directory)
15871 uname({sys="Linux", node="host1", ...}) = 0
15871 open("/etc/hosts", O_RDONLY) = -1 ENOENT (No such file or
directory)
15871 open("/etc/hosts", O_RDONLY) = -1 ENOENT (No such file or
directory)
15871 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 8
15871 connect(8, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("0.0.0.0")}, 28) = 0
When DNS lookup is tried to be done from inside chroot it fails due to
the inaccessibility of /etc/resolv.conf
So the workaround was as simple as creating etc directory inside chroot
and putting resolv.conf there. But still don't know whose bug it is
glibc's or stunnel's?
Best regards,
Maks K.
----------------------------------------------------
Hospicja w całej Polsce pomagają osobom umierającym i ich bliskim.
Ty też możesz pomóc.
Przekaż 1% podatku Fundacji Hospicyjnej (KRS 0000201002).
http://klik.wp.pl/?adr=www.httz.pl&sid=685
More information about the stunnel-users
mailing list