Hi,
On 24/11/2025 03:19, Carlos Henrique Lima Melara wrote:
On Mon, Nov 17, 2025 at 01:35:15PM +0100, Alessandro Vesely wrote:
511-north:~$ curl --dns-ipv4-addr 127.0.0.1 http://example.com/
curl: option --dns-ipv4-addr: the installed libcurl version does not support
this
curl: try 'curl --help' or 'curl --manual' for more information
512-north:~$ curl --manual|grep dns-ipv4-addr
[...7 lines...]
Ack, maybe wishlist would be better though?
Yeah, maybe. I see it more as a flaw in the documentation.
Indeed we do not build with c-ares, there was some back and forth
enabling this around 2010 but it was ultimately disabled for stability
reasons (no longer explanation in the changelog). Well, this is the
first time we hear about it in 15 years, so maybe it's not a popular
option?
The point is to align the manual with the actual functionality. BTW, I
can't imagine a case where it's necessary to specify a different DNS
interface than those in resolv.conf. The case in bug #820775 can be
handled by configuring different DNS resolver views so that internal
queries can resolve internal network names. This would work seamlessly
with all tools, not just curl.
If --dns-ipv4-addr had been omitted from the manual, I would have read
further and found the correct option to use.
Best
Ale