Page 1 of 1

LAMPP's cURL unable to resolve hosts

PostPosted: 22. July 2009 04:22
by bkanber
Hey guys,

I'm having some trouble with curl on a LAMPP install. I'm running Ubuntu Jaunty. I have a similar install, and it all worked fine.

My "normal" curl (ie, the one installed from apt-get) works fine when I run, say "curl google.com" from the command line.

However, running curl EITHER from PHP or from the following command: "/opt/lampp/bin/curl google.com" returns "curl: (6) Couldn't resolve host 'google.com'".

I don't know where to look, really (I'm just a lowly programmer, not really a sysadmin). My /etc/resolv.conf looks something like:
# Generated by NetworkManager
domain rnxn4ps
search rnxn4ps
nameserver 208.67.222.222
nameserver 4.2.2.2

Anyone have any ideas?

Thanks in advance,
Burak

Re: LAMPP's cURL unable to resolve hosts

PostPosted: 01. August 2009 22:32
by caltuna