<div dir="auto">Failover= re option would help you</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 21, 2020, 22:30 Peter Zhao <<a href="mailto:pzhao@paymentus.com">pzhao@paymentus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>We are trying to use DNS load balance in a stunnel client with round-robin algorithm.
<a href="http://service.example.com" target="_blank" rel="noreferrer">service.example.com</a> is mapping to two ips. But when we update DNS to remove one of ips for
<a href="http://service.example.com" target="_blank" rel="noreferrer">service.example.com</a> stunnel client still forward requests to both ips. How to make stunnel client to resolve domain name and refresh its cache? </div><div><br></div><div><br></div><div>Here is stunnel configuration.</div><div>sslVersion=TLSv1.2<br>cert = /etc/stunnel/stunnel.pem<br>output=/var/log/stunnel.log<br><br>[service-client]<br>client = yes<br>accept = localhost:4680<br>connect = <a href="http://service.example.com:4680" target="_blank" rel="noreferrer">service.example.com:4680</a><br><br>[service-server]<br>client = no<br>accept = <a href="http://10.10.0.16:4680" target="_blank" rel="noreferrer">10.10.0.16:4680</a><br>connect = loclhost:80<br></div><div><br></div><div>Here is the resolving result for <a href="http://service.example.com" target="_blank" rel="noreferrer">service.example.com</a>.</div><div>;; ANSWER SECTION:<br><a href="http://service.example.com" target="_blank" rel="noreferrer">service.example.com</a>. 5 IN A 10.10.0.16<br><a href="http://service.example.com" target="_blank" rel="noreferrer">service.example.com</a>. 5 IN A 10.10.0.8<br></div><div><br></div><div><br></div></div>
_______________________________________________<br>
stunnel-users mailing list<br>
<a href="mailto:stunnel-users@stunnel.org" target="_blank" rel="noreferrer">stunnel-users@stunnel.org</a><br>
<a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" rel="noreferrer noreferrer" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br>
</blockquote></div>