[GH-ISSUE #1606] youtube-dl domain name resolution does not work if --external-downloader is used #1073

Closed
opened 2026-05-05 07:25:06 -06:00 by gitea-mirror · 9 comments
Owner

Originally created by @Ryujinra on GitHub (Oct 14, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1606

youtube-dl cannot resolve domain names unless I disable the protocol filter. Does the filter break local DNS resolvers?

UPDATE: This does not appear to be an issue with the DNS resolver, but an issue with --external-downloaders flag in youtube-dl in combination with the protocol filter.

Originally created by @Ryujinra on GitHub (Oct 14, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1606 youtube-dl cannot resolve domain names unless I disable the protocol filter. Does the filter break local DNS resolvers? UPDATE: This does not appear to be an issue with the DNS resolver, but an issue with --external-downloaders flag in youtube-dl in combination with the protocol filter.
Author
Owner

@SkewedZeppelin commented on GitHub (Oct 14, 2017):

Which DNS resolver are you using? systemd-resolved? NetworkManager internal? NetworkManager dnsmasq?

If you're using systemd-resolved can you try building from source

<!-- gh-comment-id:336668779 --> @SkewedZeppelin commented on GitHub (Oct 14, 2017): Which DNS resolver are you using? systemd-resolved? NetworkManager internal? NetworkManager dnsmasq? If you're using systemd-resolved can you try building from source
Author
Owner

@Ryujinra commented on GitHub (Oct 14, 2017):

I am using the NetworkManager. I used the AUR package to build from source and still have the issue. I should mention that I was referring to resolvers that are located on the local network and not necessarily on localhost.

<!-- gh-comment-id:336669138 --> @Ryujinra commented on GitHub (Oct 14, 2017): I am using the NetworkManager. I used the AUR package to build from source and still have the issue. I should mention that I was referring to resolvers that are located on the local network and not necessarily on localhost.
Author
Owner

@reinerh commented on GitHub (Oct 15, 2017):

Strange, for me it's working with the profile from 0.9.50.

<!-- gh-comment-id:336707939 --> @reinerh commented on GitHub (Oct 15, 2017): Strange, for me it's working with the profile from 0.9.50.
Author
Owner

@Ryujinra commented on GitHub (Oct 15, 2017):

I found the source of the issue. This only occurs when you use an external downloader. Try doing:

youtube-dl --external-downloader aria2c [URL]

<!-- gh-comment-id:336739873 --> @Ryujinra commented on GitHub (Oct 15, 2017): I found the source of the issue. This only occurs when you use an external downloader. Try doing: `youtube-dl --external-downloader aria2c [URL]`
Author
Owner

@reinerh commented on GitHub (Oct 20, 2017):

Seems to be related to aria2c. With wget and curl it's working.

<!-- gh-comment-id:338268373 --> @reinerh commented on GitHub (Oct 20, 2017): Seems to be related to aria2c. With wget and curl it's working.
Author
Owner

@reinerh commented on GitHub (Oct 20, 2017):

Name resolution with aria2c doesn't seem to work:

$ firejail --profile=/etc/firejail/youtube-dl.profile aria2c https://example.com

10/20 19:18:12 [NOTICE] Downloading 1 item(s)

10/20 19:18:12 [ERROR] CUID#7 - Download aborted. URI=https://example.com
Exception: [AbstractCommand.cc:351] errorCode=19 URI=https://example.com
  -> [AbstractCommand.cc:801] errorCode=19 CUID#7 - Name resolution for example.com failed:No address returned

10/20 19:18:12 [NOTICE] Download GID#35dbef234ceece60 not complete: 

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
35dbef|ERR |        n/a|https://example.com

Status Legend:
(ERR):error occurred.

<!-- gh-comment-id:338268890 --> @reinerh commented on GitHub (Oct 20, 2017): Name resolution with aria2c doesn't seem to work: ``` $ firejail --profile=/etc/firejail/youtube-dl.profile aria2c https://example.com 10/20 19:18:12 [NOTICE] Downloading 1 item(s) 10/20 19:18:12 [ERROR] CUID#7 - Download aborted. URI=https://example.com Exception: [AbstractCommand.cc:351] errorCode=19 URI=https://example.com -> [AbstractCommand.cc:801] errorCode=19 CUID#7 - Name resolution for example.com failed:No address returned 10/20 19:18:12 [NOTICE] Download GID#35dbef234ceece60 not complete: Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= 35dbef|ERR | n/a|https://example.com Status Legend: (ERR):error occurred. ```
Author
Owner

@veloute commented on GitHub (Nov 15, 2018):

i ran into this problem today and found that sending the argument "--async-dns=false" to aria2 fixed the name resolution problem.
example of what i mean:
youtube-dl -f best --external-downloader aria2c --external-downloader-args "-x 16 -s 16 --async-dns=false" https://www.youtube.com/watch\?v\=xcJtL7QggTI

<!-- gh-comment-id:438902119 --> @veloute commented on GitHub (Nov 15, 2018): i ran into this problem today and found that sending the argument "--async-dns=false" to aria2 fixed the name resolution problem. example of what i mean: `youtube-dl -f best --external-downloader aria2c --external-downloader-args "-x 16 -s 16 --async-dns=false" https://www.youtube.com/watch\?v\=xcJtL7QggTI`
Author
Owner

@chiraag-nataraj commented on GitHub (May 20, 2019):

Is this still an issue?

<!-- gh-comment-id:494087207 --> @chiraag-nataraj commented on GitHub (May 20, 2019): Is this still an issue?
Author
Owner

@matu3ba commented on GitHub (Jun 21, 2019):

@chiraag-nataraj For me it works, also without --async-dns. Should be closed.

<!-- gh-comment-id:504603513 --> @matu3ba commented on GitHub (Jun 21, 2019): @chiraag-nataraj For me it works, also without --async-dns. Should be closed.
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: github-starred/firejail#1073
No description provided.