From 05b70955fafbd15f7f9d0d395ba644b98e5bb227 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 8 Jan 2016 13:01:27 +0000 Subject: Backout 88d54bec26b7 prior to release, as it certainly requires more testing --- net/dns.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'net/dns.lua') diff --git a/net/dns.lua b/net/dns.lua index 49958ed7..f56157d0 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -862,7 +862,9 @@ function resolver:receive(rset) -- - - - - - - - - - - - - - - - - receive --self.print(response); for j,rr in pairs(response.answer) do - self:remember(rr, response.question[1].type) + if rr.name:sub(-#response.question[1].name, -1) == response.question[1].name then + self:remember(rr, response.question[1].type) + end end -- retire the query -- cgit v1.2.3