cURL / Mailing Lists / curl-library / Single Mail


Re: FTP operation timeout when public DNS Server is used

From: Daniel Stenberg <>
Date: Tue, 3 May 2016 14:18:04 +0200 (CEST)

On Tue, 3 May 2016, Ison wrote:

> echo nameserver > /etc/resolv.conf
> The file is getting updated and the operation exits with error "Timeout was
> reached".

Sorry, but is that the error message from curl when it fails?

> I am able to "ping" and "ping my_ftp_server" with as
> the only entry in the resolv.conf file, but the curl operation fails.

Which libcurl version? On Linux? What name resolver backend does your libcurl
use? 'curl -V' shows.

Can you please be more specific about the exact error message and return code
you get from libcurl?

As Dan Fandrich already asked you on curl-users: Can you use the Google DNS
server manually? e.g. does "host" or "dig @" return anything?

List admin:
Received on 2016-05-03