curl 'name look up timeout' error

wd <[email protected]>
Newsgroups gmane.comp.web.curl.php
Message-ID <[email protected]>
hi,

I use curl_exec in php to get some date from a url like '
http://abc.com/page/1' on an linux server.

abc.com is not exists, I set it in /etc/hosts like '123.23.2.3 abc.com', I
can ping this hostname correctly, and never lost any ping package.

But when I use curl_exec in php, randomly got error like this mail title
said. The error code is 6.

Then I try to use curl in command line like 'curl http://abc.com/page/1',
the same error randomly occur.

The curl version on that server is curl-devel-7.15.5-2.el5 and
curl-7.15.5-2.el5. I've tried download and compile a curl by hand, and the
error still there.

Why does this happen? Any response would be welcome. thx.

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.