Skip to content

Conversation

@clue
Copy link
Member

@clue clue commented Jul 8, 2019

This PR implements a whole new CachingExecutor and deprecates the existing CachedExecutor because it is broken beyond repair. As part of this changeset, we now ensure that we cache the whole respone message including all records from the RRset (fxies #119). Additionally, we no longer cache truncated response messages as per the RFC.

This initial implements always uses a 60s cache TTL for each response message, irrespective of the TTL indicated for each record (see #81). We believe this is a reasonable compromise as an initial version that should not affect most common use cases. A follow-up PR should implement a more sophisticated TTL logic in the future and should respect the TTL values for each record (within reasonable limits as discussed in #81 and #116).
This implements now respects the TTL indicated for each record (see #81) and uses a 60s cache TTL for negative messages.

Resolves #119
Resolves #81
Builds on top of #127

@clue clue added this to the v0.4.18 milestone Jul 8, 2019
@WyriHaximus WyriHaximus requested review from WyriHaximus and jsor July 8, 2019 10:56
Copy link
Member

@WyriHaximus WyriHaximus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@clue
Copy link
Member Author

clue commented Jul 8, 2019

@WyriHaximus I've just updated this to respect the TTL values given in each record 👍

@WyriHaximus
Copy link
Member

@clue awesome!

@WyriHaximus WyriHaximus self-requested a review July 8, 2019 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DNS Cache is not used when the type of the response record is CNAME DNS cache should properly limit TTL

3 participants