dns/tcp fix for old ruby versions

Use TCP queries instead of UDP if our Ruby version doesn't have support
for automatically falling back to TCP.

See proper fix here:
http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/29631/diff/lib/resolv.rb

Should be included in recent Ruby versions.