[ntp:questions] ***SPAM*** Re: Re: Bad NTP servers jeopardizing the pool.ntp.org initiative
mayer at ntp.isc.org
Wed Mar 28 01:33:00 UTC 2007
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.
More information about the questions