cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 9 Apr 2015 20:32:51 +0200 (CEST)

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
Received on 2015-04-09