Using Resolv library and Ruby 1.9.2