>On Sun, 1 Aug 2004, Jun-ichiro itojun Hagino wrote:
>>      getaddrinfo() is not a DNS-only function; it can lookup hostname-to
>>      address using /etc/hosts, NIS, LDAP, whatever you have.  what value
>>      would you put in to ai_ttl when the lookup is done by non-DNS method?
>
>-1, unless something else is provided?

        then what do you expect application to do with the data?  when does
        it expire?  any fabricated value (-1, 0, whatever) in ai_ttl is
        problematical to TTL-aware application, IMHO.  what i'm suggesting
        is to use DNS-only API like getrrrsetbyname() if you want TTL.

itojun
.
dnsop resources:_____________________________________________________
web user interface: http://darkwing.uoregon.edu/~llynch/dnsop.html
mhonarc archive: http://darkwing.uoregon.edu/~llynch/dnsop/index.html

Reply via email to