Re: DNS - TTL problem with Solaris 9

From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 12/22/03


Date: Mon, 22 Dec 2003 21:49:34 GMT

In article <7929f375.0312212045.39973a1b@posting.google.com>,
 abhi88@yahoo.com (Abhinav Anand) wrote:

> This would enable the disable the caching, but my problem is that I
> want my application to respect the TTL value returned in the DNS
> response. i.e. Launch a query again on expiry of the TTL. Is there a
> way I can get the TTL value at the application level or better still
> configure Solaris to launch a query on TTL expiry ..?

The gethostbyXXX*() API in Unix doesn't return TTL information; an
application can't "respect" information it can't see.

So your best bet is to disable local caching, and depend on the caching
in your DNS server (which should respect the TTL values).

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA


Relevant Pages

  • Re: External DNS queries
    ... the server does respond to a dns query for www.yahoo.com. ... TTL 172800 ...
    (microsoft.public.windows.server.dns)
  • Re: IIS and DNS rond robbin
    ... I need to have a backup ISP for my Internet apps. ... the record from query to query. ... disabled DNS will alternate the order the order of the record ... This is affected by the TTL of the records, ...
    (microsoft.public.windows.server.dns)
  • Re: Stub Zone and Cache Issue
    ... cache on the production DC was 1 minute also and the record got flushed right ... sure how to correct it, is that when the query gets made to the stub zone, it ... the primary zone on that server. ... Right now the record going into the cache has a TTL of 1 ...
    (microsoft.public.windows.server.dns)
  • Re: cant input into form
    ... In query design view, you pressed the Total button on the toolbar, so the ... rather than allenbrowne at mvps dot org. ... > The numbers are category numbers ie that contain Currency info. ... > for a ttl and the ttl of some make up just the bldg. ...
    (microsoft.public.access.queries)
  • Re: Can I change the public IP of a website on dual wan router without losing customers?
    ... TTL settings on the zone or individual records ... clients (both other DNS servers and client machines) ... It is in additional to the TTL. ...
    (microsoft.public.windows.server.dns)