Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option --dns-servers not supported #59

Open
mschaefers opened this issue Jul 5, 2024 · 1 comment
Open

Option --dns-servers not supported #59

mschaefers opened this issue Jul 5, 2024 · 1 comment

Comments

@mschaefers
Copy link

docker run --rm mirror.gcr.io/curlimages/curl:latest curl --dns-servers 8.8.8.8 https://google.com

fails with

curl: option --dns-servers: the installed libcurl version doesn't support this
curl: try 'curl --help' or 'curl --manual' for more information

man page states --dns-servers requires that the underlying libcurl was built to support c-ares.

was c-ares support dropped on purpose? Does a workaround or an alternative image exist?

@ahmadalkhansa
Copy link

ahmadalkhansa commented Aug 21, 2024

It seems that the image was built using enabled threaded resolver instead. According to the dependencies section in the everything curl book, threaded resolver is a substitute to c-ares that does all the asynchronous name resolution within the same thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants