class Resolv
TCP fallback support, redux. A broken version of this made it into Ruby 1.9.2 in October 2010. <bugs.ruby-lang.org/issues/3835> That version would fail when trying a second TCP nameserver. This improved version fixes that. Filed upstream as <bugs.ruby-lang.org/issues/8285>.
Fix for (unreported) “nil can't be coerced into Fixnum” TypeError exception caused by truncated (or otherwise malformed) answer packets.
Patch to expose timeout and NXDOMAIN errors to the ultimate caller of Resolv::DNS
rather than swallowing them silently and returning an empty result set.