<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">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">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">service.example.com:4680</a><br><br>[service-server]<br>client = no<br>accept = <a href="http://10.10.0.16:4680">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">service.example.com</a>.</div><div>;; ANSWER SECTION:<br><a href="http://service.example.com">service.example.com</a>.        5       IN      A       10.10.0.16<br><a href="http://service.example.com">service.example.com</a>.        5       IN      A       10.10.0.8<br></div><div><br></div><div><br></div></div>