cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Cann't use the `--dns-servers' option with curl.

From: Hongyi Zhao <hongyi.zhao_at_gmail.com>
Date: Fri, 10 Apr 2015 17:13:01 +0800

Got it. Thanks a lot.

Regards

2015-04-10 2:32 GMT+08:00 Daniel Stenberg <daniel_at_haxx.se>:

> On Thu, 9 Apr 2015, Hongyi Zhao wrote:
>
> When I use the `--dns-servers' option with curl, I meet the errors like
>> this:
>>
>> werner@debian:~$ curl --dns-servers 8.8.8.8 http://www.debian.org
>> curl: (4) A requested feature, protocol or option was not found built-in
>> in
>> this libcurl due to a build-time decision.
>>
>> Any hints to solve this issue?
>>
>
> There's a pretty good hint in the man page for this option: "This option
> requires that libcurl was built with a resolver backend that supports this
> operation. The c-ares backend is the only such one."
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-- 
Hongyi Zhao <hongyi.zhao_at_gmail.com>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-04-10