Opened 11 years ago

Closed 10 years ago

#329 closed defect (fixed)

resolver: incorrect TTL used with A+CNAME response

Reported by: Sergey Kandaurov Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.3.x
Keywords: resolver Cc:
uname -a:
nginx -V: n/a


By default, nginx caches responses using the TTL value of a response.

The resolver doesn't fully operate correctly on multiple entries
received together in one DNS response.
For example, when the received answer contains multiple records as follows:
upstream 60 CNAME cname1
cname1 86400 A

Here the CNAME resolution stage would be "skipped", and the resolver cache
will store for "upstream" a finally resolved address with TTL 86400.


Change History (3)

comment:1 by maxim, 11 years ago

The original reporter created ticket #331, already closed as a duplicate.

comment:2 by Ruslan Ermilov <ru@…>, 10 years ago

In 8958656a8060ff395b3f1a417266ebf261136625/nginx:

Resolver: use minimum TTL for caching (ticket #329).

comment:3 by Ruslan Ermilov, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.