Subject: TTL for reverse lookups

TTL for reverse lookups

From: Clemens Kolbitsch <kolbitsch_at_lastline.com>
Date: Tue, 29 Nov 2011 18:06:58 -0800

Hi guys,

I'm using the asynchronous features of ares to resolve IP addresses back to
domain names (ares_gethostbyaddr). Is there a way to get the reply TTL of
an IP directly in the callback?

On a related note, IIRC I read somewhere in the documentation that "the
library respects TTL and does caching" (I hope that was not in that other
library I was looking into ;-) ). If so, can I get the TTL from the
ares-channel struct somehow?

thanks,
Clemens
Received on 2011-11-30