Hi Michal,
I'd suggest to make DNS caching configurable. If the user
wishes so,
keep the cached DNS info, otherwise resolve host names each time a connection is established (or every xx minutes or whatever).
Since stunnel 4.00 you can use "delay=yes" to enable delayed resolver. 8-)
Umm, what exactly does that option do? My problem is that STunnel does not resolve hostnames every time a connection is established (at least it seems like that), instead it remembers the previously valid IP for that hostname... (Which now is invalid due to a newly assigned IP.)
Best regards, Andre