Hi, I'm trying to setup some kind of DNS-encryption with the usage of stunnel: https://www.privacyfoundation.de/wiki/HTTPS-DNS/TLS-DNS .
This setup is working but pretty pretty slow. One DNS-request takes really long, about 5-6 seconds! I'm wondering why this happens.
On the server is running stunnel 4.22 and on the client stunnel 4.25. The config is as described in the link above.
What happens in the logs when I do one dns-request, you can see in the attachments of this mail.
Something interesting is, if I do a:
dig @localhost google.com
it takes 5-6 seconds to finish. But if I execute it, abort it directly and execute it again, I get immediatly an answer! This works reproducably.
Have you any idea? Could the error be with open/closed connections or some timeouts in stunnel?
greetings D-503