[Bug 3700] Unresponsive domain names freeze SSH connection when using SOCKS proxy

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Jun 17 01:43:19 AEST 2024


https://bugzilla.mindrot.org/show_bug.cgi?id=3700

--- Comment #2 from timothy_holt123 at yahoo.co.uk ---
(In reply to Damien Miller from comment #1)
> It sounds like you want non-blocking DNS requests in the SOCKS proxy
> code. This would be great to have, but unfortunately there is no
> cross-platform libc API we can rely on to do this and we're
> generally loath to pick up additional libraries except when strictly
> necessary.
> 
> Another possibility is implementing asynchronous DNS resolution via
> a forked subprocess, which is portable but would complicate the
> channels code fairly significantly.
> 
> You could probably avoid this by disabling the "Proxy DNS when using
> SOCKS5" setting in firefox.

This really has hit me hard. I have a configured /etc/hosts on the
server so I need DNS through the proxy and the popular browsers (Edge
and Chrome) seem to enforce remote DNS when using the proxy anyway.

SOCKS is just not fit for purpose in my case with this issue present. I
really can't believe it's that difficult to resolve this issue. It
seems the libc API is so badly designed.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list