getaddrinfo and TTL

Martin McCormick martin at dc.cis.okstate.edu
Fri Aug 3 16:48:18 UTC 2012


	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
whole zone, actually several zones in to a pile of A records. We
look for the old name, replace it with the new name and then do
a delete and add.

	If getaddrinfo contains this value, the replace
application can run much faster, just doing one lookup, and the
new record we write back will keep whatever value we originally
had.

Many thanks.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group



More information about the bind-users mailing list