[GH-ISSUE #144] Request: Add an option to let the parent proxy resolve hostnames if it can. #77

Closed
opened 2026-02-27 23:15:20 +03:00 by kerem · 3 comments
Owner

Originally created by @phantomcraft on GitHub (Sep 14, 2018).
Original GitHub issue: https://github.com/snail007/goproxy/issues/144

If the parent socks5/http proxy has builtin DNS resolution, instead of sending an external resolver like 8.8.8.8, why not just send the host name (such as github.com) to the proxy and ask it for resolve and return the IP?

Curl has this feature: https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS_PROXY.html

Useful for use with Tor.

  • Sorry for my bad English.
Originally created by @phantomcraft on GitHub (Sep 14, 2018). Original GitHub issue: https://github.com/snail007/goproxy/issues/144 If the parent socks5/http proxy has builtin DNS resolution, instead of sending an external resolver like 8.8.8.8, why not just send the host name (such as github.com) to the proxy and ask it for resolve and return the IP? Curl has this feature: https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS_PROXY.html Useful for use with Tor. * Sorry for my bad English.
kerem closed this issue 2026-02-27 23:15:20 +03:00
Author
Owner

@snail007 commented on GitHub (Sep 14, 2018):

dns https://github.com/snail007/goproxy#8dns-anti-pollution-server

Tips: SOCKS5 proxy, support CONNECT, UDP protocol and don't support BIND and support username password authentication.

<!-- gh-comment-id:421507381 --> @snail007 commented on GitHub (Sep 14, 2018): dns https://github.com/snail007/goproxy#8dns-anti-pollution-server Tips: SOCKS5 proxy, support CONNECT, UDP protocol and don't support BIND and support username password authentication.
Author
Owner

@phantomcraft commented on GitHub (Sep 16, 2018):

What I mean is remote hostname resolution using the DNS servers of the proxy instead of passing an external resolver (8.8.8.8. 1.1.1.1 and others) to it.

<!-- gh-comment-id:421659388 --> @phantomcraft commented on GitHub (Sep 16, 2018): What I mean is remote hostname resolution using the DNS servers of the proxy instead of passing an external resolver (8.8.8.8. 1.1.1.1 and others) to it.
Author
Owner

@snail007 commented on GitHub (Sep 16, 2018):

in default , proxy using dns server of system to resolve hostbame,unless you passing --dns-address argument instead of system's dns
, client send whatever hostname proxy will send it
to parent as it is without resolution.

<!-- gh-comment-id:421713787 --> @snail007 commented on GitHub (Sep 16, 2018): in default , proxy using dns server of system to resolve hostbame,unless you passing --dns-address argument instead of system's dns , client send whatever hostname proxy will send it to parent as it is without resolution.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#77
No description provided.