Skip to content

curlFull: option --dns-servers: the installed libcurl version does not support this #451543

@jwfang

Description

@jwfang

Nixpkgs version

  • Unstable (25.11)

Describe the bug

curl --dns-servers 8.8.8.8 https://google.com
curl: option --dns-servers: the installed libcurl version does not support this
curl: try 'curl --help' for more information

curl -V
curl 8.16.0 (x86_64-pc-linux-gnu) libcurl/8.16.0 OpenSSL/3.5.2 zlib/1.3.1 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.8 libpsl/0.21.5
 libssh2/1.11.1 nghttp2/1.67.1 ngtcp2/1.15.1 nghttp3/1.11.0 librtmp/2.3 libgsasl/2.2.2 OpenLDAP/2.6.9
Release-Date: 2025-09-10
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp sm
b smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli gsasl GSS-API HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM PSL SPNEG
O SSL threadsafe TLS-SRP UnixSockets zstd

Steps to reproduce

nix-channel --list
home-manager https://github.com/nix-community/home-manager/archive/release-25.05.tar.gz
nixos-unstable https://mirrors.tuna.tsinghua.edu.cn/nix-channels/nixos-unstable-small

nix-shell -I nixpkgs=channel:nixos-unstable -p curlFull

curl --dns-servers 8.8.8.8 https://google.com
curl: option --dns-servers: the installed libcurl version does not support this
curl: try 'curl --help' for more information

Expected behaviour

support --dns-servers option

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.21.2-microsoft-standard-WSL2+, NixOS, 25.05 (Warbler), 25.05.809625.f8bded8df5ad`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.28.5`
 - channels(root): `"nixos-25.05-small, nixos-wsl"`
 - nixpkgs: `/nix/store/42gwm9w4rjm2b9zr3kbxk1kw3skda06p-nixos-25.05-small/nixos`

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions