On Tue, Feb 12, 2019 at 12:04:54PM +0100, tom wrote:
Hello,
I've installed stunnel-4.56-6.el7.x86_64 on my Centos 7. I can't establish a connection. Seems to be something wrong with the name resolution, because if I use the IP derect, the tunnel works.
Feb 12 11:58:00 server stunnel[52445]: LOG7[52445:139984526436416]: Service [cs] accepted (FD=3) from 127.0.0.1:10866
[snip]
Error resolving 'foobar.remote.site': System error returned in errno (EAI_SYSTEM) Feb 12 11:58:00 server stunnel[52445]: LOG3[52445:139984526432000]: No host resolved
[snip]
stunnel.conf:
[snip]
chroot = /var/run/stunnel setuid = stunnel setgid = stunnel
Do you have a /var/run/stunnel/etc/resolv.conf file? (and yes, this means that if you intend for the chroot to be (re)created every time the system boots, you'll also need to put the /etc/resolv.conf file there every time)
Hope that helps!
G'luck, Peter