Skip to content

Instantly share code, notes, and snippets.

Created January 4, 2013 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4455902 to your computer and use it in GitHub Desktop.
Save anonymous/4455902 to your computer and use it in GitHub Desktop.
Illustrates that Resolv.getaddress appears to not work in JRuby 1.7.1.
>rvm 1.9
>ruby -e "require 'resolv'; puts Resolv.getaddress 'cnn.com'"
157.166.255.19
>rvm jruby # 1.7.1
>ruby -e "require 'resolv'; puts Resolv.getaddress 'cnn.com'"
Resolv::ResolvError: no address for cnn.com
getaddress at /Users/keithb/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/resolv.rb:93
getaddress at /Users/keithb/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/resolv.rb:43
(root) at -e:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment