Opened 12 years ago

Closed 11 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

Description

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 10.10.10.10

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

References: http://mailman.nginx.org/pipermail/nginx-ru/2013-April/050744.html

Change History (3)

comment:1 by maxim, 12 years ago

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

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

In 8958656a8060ff395b3f1a417266ebf261136625/nginx:

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

comment:3 by Ruslan Ermilov, 11 years ago

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