net/dns.lua
changeset 7062 7ec52755622f
parent 7059 7b0651e4534f
child 7064 eda0feeaf759
child 7096 388281be2bc7
equal deleted inserted replaced
7061:e9f07febafb3 7062:7ec52755622f
   860 					and self.active[response.header.id][response.question.raw] then
   860 					and self.active[response.header.id][response.question.raw] then
   861 					--print('received response');
   861 					--print('received response');
   862 					--self.print(response);
   862 					--self.print(response);
   863 
   863 
   864 					for j,rr in pairs(response.answer) do
   864 					for j,rr in pairs(response.answer) do
   865 						self:remember(rr, response.question[1].type)
   865 						if rr.name:sub(-#response.question[1].name, -1) == response.question[1].name then
       
   866 							self:remember(rr, response.question[1].type)
       
   867 						end
   866 					end
   868 					end
   867 
   869 
   868 					-- retire the query
   870 					-- retire the query
   869 					local queries = self.active[response.header.id];
   871 					local queries = self.active[response.header.id];
   870 					queries[response.question.raw] = nil;
   872 					queries[response.question.raw] = nil;