net.dns: Unconditionally cache records found in answers
authorMatthew Wild <mwild1@gmail.com>
Mon, 25 May 2015 23:16:11 +0100
changeset 6866 88d54bec26b7
parent 6800 509b70437035
child 6867 0129ffcaa7ab
net.dns: Unconditionally cache records found in answers
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