Skip to content

add --dns-servers option support #167

Description

@XhstormR

Currently, curl in conda forge does not support the --dns-servers option. We need to add the --enable-ares parameter during compilation to use c-ares to add --dns-servers option support.

└──❯ curl -V
curl 8.20.0 (aarch64-apple-darwin20.0.0) libcurl/8.20.0 OpenSSL/3.6.2 zlib/1.3.2 zstd/1.5.7 libssh2/1.11.1 nghttp2/1.68.1 mit-krb5/1.22.2
Release-Date: 2026-04-29
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt mqtts pop3 pop3s rtsp scp sftp smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

└──❯ curl --dns-servers 127.0.0.1 http://www.qq.com
curl: option --dns-servers: the installed libcurl version does not support this
curl: try 'curl --help' or 'curl --manual' for more information

FYI: curl/curl#8551

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions