Carl Byington wrote:
> On Mon, 26 Mar 2007 09:41:31 -0700, Wolfgang S. Rupprecht wrote:
> 
> 
>> It has always bothered me that the TTL in the DNS record is stripped off
>> by the resolver code. 
> 
> The resolver code with headers in <arpa/nameser.h> allows one to look at
> the raw data in the dns responses, including the TTL and everything else.
> 

You need to start with getaddrinfo as a starting point. Yes, you can get
to the raw data if you want to but now you are crafting custom solutions
that only work for DNS calls. The O/S implementations of getaddrinfo()
encompass more than just DNS. Look at Solaris for example. I don't
believe that the TTL is the best solution to this problem, BTW.

Danny
_______________________________________________
questions mailing list
[email protected]
https://lists.ntp.isc.org/mailman/listinfo/questions

Reply via email to