cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Reverse URL lookup

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Tue, 20 Apr 2004 17:29:16 +0200

"Jesse Noller" <jnoller_at_archivas.com> wrote:

> Quick question: Using Curl and Libcurl, when a connection is started,
> curl seems to do a reverse lookup of the url (or IP address). Is there a
> reason why it does this reverse lookup on every connection - and is
> there a way to disable this?
>
> The reason I ask is that we are doing a fair amount of work in
> situations where we will not have a reverse zone, and the time out time
> adds about 2 minutes to each transaction.

It only happens for ftp in passive mode AFAICS. The reason may be to
tell you when you've been redirected off the original host (in response to
the PASV command). But I'm not really sure why, Daniel?

So don't use "--verbose" (or -v) in curl. Alternatively temporary toggle
CURLOPT_VERBOSE to off state in your program using libcurl.

--gv
Received on 2004-04-20