cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Trying to connect to 1.0.0.0

From: jayjwa <jayjwa_at_atr2.ath.cx>
Date: Tue, 20 Sep 2005 20:54:21 -0400

On Tue, 20 Sep 2005, Michael Morris wrote:

-> For some reason curl is trying to connect to 1.0.0.0 for any entered domain
-> name
->
-> $ curl -v www.google.com
-> * About to connect() to www.google.com port 80
-> * Trying 1.0.0.0... ^C

-> It will only properly resolve the ip address after digging the site or
-> specifying it in /etc/hosts.
-> All other system utilities correctly resolve domain names, which lead me to
-> believe it might be a curl specific problem, though perhaps not. Any hints
-> or suggestions would be appreciated.

Really odd. Assuming it built correctly (if you built it), did you check
your nsswitch.conf, resolv.conf has good nameservers? Maybe a bad
/etc/hosts entry someplace? If you run nscd or another DNS cache, maybe
clear it (nscd -i hosts)/restart/stop it?

Maybe strace it, if you have strace or something similar and see what's
occuring.

-- 
*Tired of DNSBL/RBL's?* | "Using an RBL on your server to try
Spam arrives WITH email |  to stop SPAM is like using dynamite
   RBL use STOPS email   |  for a leaky faucet."
   Which one is worse?   |-------------------------------------
Running count of friends/family contact lost due to RBL's: [3]
Received on 2005-09-21