Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Add answer only if name is same as specified
Browse files Browse the repository at this point in the history
  • Loading branch information
otahi committed Jan 30, 2015
1 parent c765728 commit b71fb5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec-dns/have_dns.rb
Expand Up @@ -136,7 +136,7 @@ def _records
if @zone_file
@_records = Dnsruby::Message.new
rrs = Dnsruby::ZoneReader.new(@zone_origin).process_file(@zone_file)
rrs.each { |rr| @_records.add_answer(rr) }
rrs.each { |rr| @_records.add_answer(rr) if @dns == rr.name.to_s }
end

@_records ||= begin
Expand Down

0 comments on commit b71fb5d

Please sign in to comment.