<div dir="ltr">My guess is it only does dns.lookup() function, on a restart/reload...<div><br></div><div>Hopefully I'm wrong but if i'm right it would not automagically look up the address and notice changes.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><table width="550px" style="color:rgb(63,63,63);font-size:medium;border-spacing:0px;font-family:sans-serif;margin:0px;width:550px"><tbody><tr><td style="padding:0px;font-size:0px"><div width="230px" style="padding-top:15px;width:230px;display:inline-block;vertical-align:top"><table width="100%" style="border-spacing:0px;font-family:sans-serif;width:230px;font-size:14px"><tbody><tr><td style="padding:0px"><h1 style="font-weight:300;margin-bottom:0px;color:rgb(220,35,35);font-size:15px">Aaron West</h1><p style="margin:5px 0px;font-size:12px">Loadbalancer.org Ltd.</p><a href="https://www.loadbalancer.org/?gclid=ES2017" style="color:rgb(220,35,35)" target="_blank">www.loadbalancer.org</a></td></tr><tr><td><div style="display:inline-block;vertical-align:middle;height:43px"><table width="100%" style="border-spacing:0px;font-family:sans-serif;height:43px"><tbody><tr><td style="padding:0px"><table style="border-spacing:0px;font-family:sans-serif"><tbody><tr><td><a href="https://plus.google.com/+LoadbalancerOrg" style="color:rgb(255,255,255);padding-right:3px" target="_blank"><img src="https://www.loadbalancer.org/public/images/signiture/googleplus@2x.png" width="25px" height="25px" style="border-width:0px;width:25px;height:25px"> </a><a href="https://twitter.com/loadbalancerorg" style="color:rgb(255,255,255);padding-right:3px" target="_blank"><img src="https://www.loadbalancer.org/public/images/signiture/twitter@2x.png" width="25px" height="25px" style="border-width:0px;width:25px;height:25px"> </a><a href="http://www.linkedin.com/company/3191352?trk=prof-exp-company-name" style="color:rgb(255,255,255);padding-right:3px" target="_blank"><img src="https://www.loadbalancer.org/public/images/signiture/linkedin@2x.png" width="25px" height="25px" style="border-width:0px;width:25px;height:25px"> </a><a href="https://www.loadbalancer.org/?category=company&post-name=overview&?gclid=ES2017" style="color:rgb(255,255,255);padding-right:3px" target="_blank"><img src="https://www.loadbalancer.org/public/images/signiture/loadbalancer-website@2x.png" width="25px" height="25px" style="border-width:0px;width:25px;height:25px"></a></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></tbody></table></div><div width="300px" style="width:300px;display:inline-block;vertical-align:top"><table width="100%" style="border-spacing:0px"><tbody><tr><td style="padding:0px"><a href="https://www.loadbalancer.org/?gclid=ES2017" style="color:rgb(220,35,35)" target="_blank"><img src="https://www.loadbalancer.org/public/images/signiture/logo-red-black.png" width="285px" style="border-width:0px;width:285px;margin-top:25px;height:auto"></a></td></tr></tbody></table></div></td></tr><tr><td style="padding:0px;font-size:0px;border-top:2px solid rgb(241,241,241);border-bottom:2px solid rgb(241,241,241)"><div width="285px" style="width:285px;display:inline-block;vertical-align:middle;height:37px"><table width="100%" style="border-spacing:0px;font-family:sans-serif;height:37px"><tbody><tr><td style="padding:0px"><table style="border-spacing:0px;font-family:sans-serif;width:285px;height:37px;font-size:12px"><tbody><tr><td><img src="https://www.loadbalancer.org/public/images/signiture/phone-contact.png" width="17px" style="width:17px;vertical-align:middle;padding-right:5px;display:inline;border-width:0px">+1 888 867 9504 / +44 (0)330 380 1064</td></tr></tbody></table></td></tr></tbody></table></div><div width="225px" style="width:225px;display:inline-block;vertical-align:middle;height:37px"><table width="100%" style="border-spacing:0px;font-family:sans-serif;height:37px"><tbody><tr><td style="padding:0px"><table style="border-spacing:0px;font-family:sans-serif;width:225px;height:37px;font-size:12px"><tbody><tr><td><a href="mailto:aaron@loadbalancer.org" style="color:rgb(63,63,63)" target="_blank"><img src="https://www.loadbalancer.org/public/images/signiture/at.png" width="17px" style="width:17px;vertical-align:middle;padding-right:5px;display:inline;border-width:0px" alt="">aaron@loadbalancer.org</a></td></tr></tbody></table></td></tr></tbody></table></div></td></tr><tr style="height:10px"><td style="padding:0px"></td></tr><tr><td style="padding:0px"><table width="100%" style="border-spacing:0px;font-family:sans-serif"><tbody><tr><td style="padding:0px;width:550px"><p style="font-size:14px;color:rgb(220,35,35);margin:0px"><a href="http://collector.reviews.io/loadbalancer-org-inc-/new-review" style="color:rgb(220,35,35);padding:0px 5px;text-transform:uppercase;letter-spacing:1px;font-size:11px" target="_blank">LEAVE A REVIEW</a> | <a href="https://www.loadbalancer.org/?category=resources&post-name=deployment-guides&?gclid=ES2017" style="color:rgb(220,35,35);padding:0px 5px;text-transform:uppercase;letter-spacing:1px;font-size:11px" target="_blank">DEPLOYMENT GUIDES</a> | <a href="https://www.loadbalancer.org/blog/?gclid=ES2017" style="color:rgb(220,35,35);padding:0px 5px;text-transform:uppercase;letter-spacing:1px;font-size:11px" target="_blank">BLOG</a></p></td></tr></tbody></table></td></tr></tbody></table><table align="center" style="border-spacing:0px;margin:0px;width:550px"></table></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 21 Aug 2020 at 22:30, Peter Zhao <<a href="mailto:pzhao@paymentus.com">pzhao@paymentus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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">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">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">service.example.com:4680</a><br><br>[service-server]<br>client = no<br>accept = <a href="http://10.10.0.16:4680" target="_blank">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">service.example.com</a>.</div><div>;; ANSWER SECTION:<br><a href="http://service.example.com" target="_blank">service.example.com</a>.        5       IN      A       10.10.0.16<br><a href="http://service.example.com" target="_blank">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">stunnel-users@stunnel.org</a><br>
<a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" rel="noreferrer" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br>
</blockquote></div>