delay DNS lookup for the connect option
This option is useful for dynamic DNS, or when DNS is not available during stunnel startup (road warrior VPN, dial-up configurations).
Delayed resolver mode is automatically engaged when stunnel fails to resolve on startup any of the connect targets for a service.
Delayed resolver inflicts failover = prio.
| ||
| ||
Failover= re option would help you_______________________________________________On Fri, Aug 21, 2020, 22:30 Peter Zhao <pzhao@paymentus.com> wrote:Hi,_______________________________________________We are trying to use DNS load balance in a stunnel client with round-robin algorithm. service.example.com is mapping to two ips. But when we update DNS to remove one of ips for service.example.com stunnel client still forward requests to both ips. How to make stunnel client to resolve domain name and refresh its cache?Here is stunnel configuration.sslVersion=TLSv1.2
cert = /etc/stunnel/stunnel.pem
output=/var/log/stunnel.log
[service-client]
client = yes
accept = localhost:4680
connect = service.example.com:4680
[service-server]
client = no
accept = 10.10.0.16:4680
connect = loclhost:80Here is the resolving result for service.example.com.
stunnel-users mailing list
stunnel-users@stunnel.org
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
stunnel-users mailing list
stunnel-users@stunnel.org
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users