Subject: Re: Adding TTL information to gethostbyname() and friends
To: Ian Lance Taylor <ian@airs.com>
From: Andrew Brown <atatat@atatdot.net>
List: tech-net
Date: 06/01/2003 23:39:10
>One of the long standing drawbacks to the BSD sockets API is that
>there is no reasonable way to get the TTL of a DNS entry.

i don't see that this is a failing of the sockets api, per se...though
perhaps it is of the name service functions.

then again, the name service functions aren't really designed for
people who want caching.  imho, people who want caching should do dns
themselves, probably using routines no more complex than res_mkquery()
and dn_expand().  those people that want a simple interface should use
it as that, and trust some other component (local name server, nscd,
lwresd, or whatever) to do the caching.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."