cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problems using libcurl with c-ares

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 28 Aug 2014 11:27:32 +0200 (CEST)

On Wed, 27 Aug 2014, Spork Schivago wrote:

> I think I found the problem possibly....I ran an example I found for c-ares
> that uses the ares_gethostbyaddr and it works on my host system but not on
> the PS3. I keep getting an error, ARES_ENOTFOUND, which means domain name
> not found. I started looking at the c-ares source code and I noticed in
> ares_private.h, PATH_RESOLV_CONF gets defined to /etc/resolv.conf,
> PATH_HOSTS gets defined to /etc/hosts. Those files don't exist on the PS3.
> I wonder if I can hard code some values in c-ares some how.

Yes, c-ares needs to know how to find your DNS servers and possibly other
resolver options so you should update that info for your build.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-08-28