Subject: Ares on mobile devices / IP address changes / DNS server changes

Ares on mobile devices / IP address changes / DNS server changes

From: Daniel Pocock <daniel_at_pocock.com.au>
Date: Wed, 31 Jul 2013 11:19:04 +0200

Hi,

Ares is used in reSIProcate. I'm just looking at how it can/should work
for IP address changes (e.g. when a mobile client goes from GSM to Wifi).

Presumably:

- if the old IP is gone for good, all asynchronous operations need to
stop (as they won't receive any reply on the new IP address) and
potentially be restarted, ideally without the application needing to
know about it. Does c-ares support this in any way?

- if the application knows the IP changed, is there a way it can tell
Ares to re-initialize and restart any outstanding operations?

- if the application discovers new DNS servers (or if Ares has a way of
discovering them), then this needs to go into the running Ares context.
Can this be done safely without completely re-initializing Ares and
maybe even while other operations are in progress?

Regards,

Daniel
Received on 2013-07-31