Re: Problem with name resolving on Centos 7
Peter Pentchev <[email protected]> Tue, 12 Feb 2019 13:12:19 +0200
| Newsgroups | gmane.network.stunnel.user |
|---|---|
| Message-ID | <[email protected]> |
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
--
Peter Pentchev roam@{ringlet.net,debian.org,FreeBSD.org} [email protected]
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
_______________________________________________
stunnel-users mailing list
[email protected]
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAlxiqg0ACgkQZR7vsCUn 3xOEEA/+I2ph/ob3cOHbO6KVMvlFtzazmECMDujXkJPXgSjiOCBqrhrYCSkSx23w HMV/wGqiTwYr9aYgppK4EX08lj4iPiEwQ+OZZWHXz6RF1CK9aoz27XnGg4+BPSsb eR6XU6dq4tokWTtn8RlzMaOzuRGNwaK5FjSgf/GOyGAmE7ejJhcCqW5JW6eWKMsG sUBiAMpSIs8DUsqGY+g20XQ6E6QEGbSjSKvbF7WLvmFiYZhtW1cneri4XCE0oPvM laC+0ddxP/3Uao4LqX4wR+1B6GVDcHtqVXY42xB9o0wvPaFsmc48+JwOz9cWJ2HQ 7FdLvwdFnvRcqoSVAxOfTuqtP13moFNOiR/iX6/XMaDQ5Z68ClIGiFxFrdjm0JvB qus5ZutljKBkXzuft7PZ12sYaBZAyRjDiY17n6YYAk7sSnWv6qQD9HOoP2mWrJM5 HLOFRfY0uHvgU7Vy1v2i4iMOU+xkc4OPbIrdwqGQHCMqjkFtmHHMlvmOwVcxOWrH wvF7vw5/IeYf6V6EsjuRzHChkM5t7AaRj6t2qjBBx9qxH2Wn5w4mNyfrSSzW4k0N Qc4bugRZC+A6TPhKd8s5D0EohIF8hs6S653owrstp4f4d85218rQD4UJUCgPhM0J gH9+iWDnRHKLqNt6qFcQoS7Az5S/FN+fahjkhOwkX4mt7T08CyQ= =kX5F -----END PGP SIGNATURE-----