Don't change Rcode in cached responses

This commit is contained in:
folbrich
2020-06-08 17:06:40 -06:00
parent 87075f18b1
commit d8a86f4fd7
+1 -1
View File
@@ -107,7 +107,7 @@ func (r *Cache) answerFromCache(q *dns.Msg) (*dns.Msg, bool) {
if answer == nil {
return nil, false
}
answer.SetReply(q)
answer.Id = q.Id
// Calculate the time the record spent in the cache. We need to
// subtract that from the TTL of each answer record.