In a recent PR #201, we started to support CACHE_FLUSH bit in a RR (resource record). I'm wondering what should happen if the RR received is a response to RR refresh.
In RFC 6762 section 5.2, it says:
The querier should plan to issue a query at 80% of the record
lifetime, and then if no answer is received, at 85%, 90%, and 95%.
If an answer is received, then the remaining TTL is reset to the
value given in the answer, and this process repeats for as long as
the Multicast DNS querier has an ongoing interest in the record.
It seems to me that it suggests that when an answer received, the existing record should be updated with TTL reset to the new value.
However, suppose rrdata is the same, what if the answer has CACHE_FLUSH bit set? Should we expire the existing record as required by CACHE_FLUSH, or update the existing record?
(I also have a similar question about interaction between record refresh and know-answer suppression, but that's a different issue)
In a recent PR #201, we started to support CACHE_FLUSH bit in a RR (resource record). I'm wondering what should happen if the RR received is a response to RR refresh.
In RFC 6762 section 5.2, it says:
It seems to me that it suggests that when an answer received, the existing record should be updated with TTL reset to the new value.
However, suppose rrdata is the same, what if the answer has CACHE_FLUSH bit set? Should we expire the existing record as required by CACHE_FLUSH, or update the existing record?
(I also have a similar question about interaction between record refresh and know-answer suppression, but that's a different issue)