cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: pycurl/libcurl/c-ares dynamic /etc/resolv.conf

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 26 May 2010 00:25:51 +0200 (CEST)

On Tue, 25 May 2010, Dima Tisnek wrote:

> The long-running process tries to access the server, the lookup fails Later
> when a wireless network is discovered, I'd like to be able to get libcurl to
> talk to the server, but alas! the resolv data is cached somewhere and I
> can't get through to c-ares (or libc?) to re-read /etc/resolv.conf.

libc usally provides such a function for the stock resolver, but c-ares
doesn't.

This is a problem that we're aware of but it has not been solved yet...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-26