ruby-dns / net-dns

Net::DNS is a DNS library written in Ruby.
http://net-dns.rubyforge.org
Other
165 stars 43 forks source link

Fix undefined method 'size' errors #81

Closed stanhu closed 1 year ago

stanhu commented 5 years ago

When the list of nameservers is exhausted, previously Resolver#query_tcp was returning the list of nameservers. Fix this by returning the last received payload from the server.

Closes #46

stanhu commented 5 years ago

@weppos Could you review this? I think the build failing is unrelated.

stanhu commented 5 years ago

I guess https://github.com/bluemonk/net-dns/pull/63/files is a duplicate of this.