# HG changeset patch # User Matthew Wild # Date 1432592171 -3600 # Node ID 88d54bec26b7164bb75fb1027a7b743bb7f45b79 # Parent 509b70437035464a1b923670e1e06ce872c100e5 net.dns: Unconditionally cache records found in answers diff -r 509b70437035 -r 88d54bec26b7 net/dns.lua --- a/net/dns.lua Thu Aug 20 09:14:15 2015 +0200 +++ b/net/dns.lua Mon May 25 23:16:11 2015 +0100 @@ -855,9 +855,7 @@ --self.print(response); for j,rr in pairs(response.answer) do - if rr.name:sub(-#response.question[1].name, -1) == response.question[1].name then - self:remember(rr, response.question[1].type) - end + self:remember(rr, response.question[1].type) end -- retire the query