socks5 with DNS-requests #26784

Open
opened 2026-02-21 14:29:04 -05:00 by deekerman · 2 comments
Owner

Originally created by @zeiha on GitHub (Jan 17, 2024).

Checklist

  • I'm reporting a feature request
  • I've verified that I'm running youtube-dl version 2021.12.17
  • I've searched the bugtracker for similar feature requests including closed ones

Description

Using SOCKS-proxy (e.g. socks5://) is already implemented meanwhile, but unfortunately it does not work with DNS-requests (e.g. socks5h://). Is there a possibility to include this "feature"...?

Originally created by @zeiha on GitHub (Jan 17, 2024). <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.12.17. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED. - Search the bugtracker for similar feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates. - Finally, put x into all relevant boxes (like this [x]) --> - [x] I'm reporting a feature request - [ ] I've verified that I'm running youtube-dl version **2021.12.17** - [ ] I've searched the bugtracker for similar feature requests including closed ones ## Description <!-- Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible. --> Using SOCKS-proxy (e.g. socks5://) is already implemented meanwhile, but unfortunately it does not work with DNS-requests (e.g. socks5h://). Is there a possibility to include this "feature"...?
Author
Owner

@dirkf commented on GitHub (Jan 17, 2024):

Basically we rely on the proxy support in the standard library. I suspect that this is not supported with the modules that we use and would be hard to implement. You might be able to achieve what you want by configuring a separate web proxy that understands socks5h as the proxy for yt-dl.

@dirkf commented on GitHub (Jan 17, 2024): Basically we rely on the proxy support in the standard library. I suspect that this is not supported with the modules that we use and would be hard to implement. You might be able to achieve what you want by configuring a separate web proxy that understands socks5h as the proxy for yt-dl.
Author
Owner

@dirkf commented on GitHub (Mar 22, 2024):

I'd be happy to consider a PR based on https://github.com/SeaHOH/extproxy as an optional dependency.

This could also address #32549 and some other historic proxy issues.

@dirkf commented on GitHub (Mar 22, 2024): I'd be happy to consider a PR based on https://github.com/SeaHOH/extproxy as an optional dependency. This could also address #32549 and some other historic proxy issues.
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/youtube-dl-ytdl-org#26784
No description provided.