Re: getaddrinfo and TTL

2012-08-05 Thread Martin McCormick
Phil Mayers writes: > If you want TTL, you will need to use DNS-specific functions like the > res_* > API. You need to be sure you are querying the master, otherwise the TTL > will be the one from cache, not the "real" value. I appreciate this information as it sounds like I am using the

Re: getaddrinfo and TTL

2012-08-04 Thread Phil Mayers
On 08/03/2012 05:48 PM, Martin McCormick wrote: Can one read the TTL for a given lookup in getaddrinfo? I don't believe so. Better yet, is there a listing of the entire range of values one can read from all the structures? The getaddrinfo() interface is specified in RFC 349

getaddrinfo and TTL

2012-08-03 Thread Martin McCormick
Can one read the TTL for a given lookup in getaddrinfo? Better yet, is there a listing of the entire range of values one can read from all the structures? I wrote an application years ago to let us change the name of a host. The old code uses zone transfer to pull in the w