Skip to content

Commit

Permalink
Carry on if the record can't be cached
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Jan 10, 2025
1 parent 982401e commit db3699a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rex/proto/dns/cached_resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def send(argument, type = Dnsruby::Types::A, cls = Dnsruby::Classes::IN)
resolved = super(resolve, type)
req.instance_variable_set(:@answer, (req.answer + resolved.answer).uniq)
resolved.answer.each do |ans|
self.cache.cache_record(ans)
self.cache.cache_record(ans) rescue nil
end
end
# Finalize answers in response
Expand Down

0 comments on commit db3699a

Please sign in to comment.